NXS_XMLRPC_ClientMulticall

NXS_XMLRPC_ClientMulticall.

Defined (1)

The class is defined in the following location(s).

/inc-cl/apis/xmlrpc-client.php  
  1. class NXS_XMLRPC_ClientMulticall extends NXS_XMLRPC_Client 
  2. var $calls = array(); 
  3.  
  4. function NXS_XMLRPC_ClientMulticall($server, $path = false, $port = 80) 
  5. parent::NXS_XMLRPC_Client($server, $path, $port); 
  6. $this->useragent = 'The Incutio XML-RPC PHP Library (multicall client)'; 
  7.  
  8. function addCall() 
  9. $args = func_get_args(); 
  10. $methodName = array_shift($args); 
  11. $struct = array( 
  12. 'methodName' => $methodName,  
  13. 'params' => $args 
  14. ); 
  15. $this->calls[] = $struct; 
  16.  
  17. function query() 
  18. // Prepare multicall, then call the parent::query() method 
  19. return parent::query('system.multicall', $this->calls);