IXR_ClientMulticall

IXR_ClientMulticall.

Defined (1)

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

/bp-forums/bbpress/bb-includes/backpress/class.ixr.php  
  1. class IXR_ClientMulticall extends IXR_Client 
  2. var $calls = array(); 
  3.  
  4. function __construct($server, $path = false, $port = 80) 
  5. parent::__construct($server, $path, $port); 
  6. $this->useragent = 'The Incutio XML-RPC PHP Library (multicall client)'; 
  7.  
  8. function IXR_ClientMulticall($server, $path = false, $port = 80) 
  9. $this->__construct($server, $path, $port); 
  10.  
  11. function addCall() 
  12. $args = func_get_args(); 
  13. $methodName = array_shift($args); 
  14. $struct = array( 
  15. 'methodName' => $methodName,  
  16. 'params' => $args 
  17. ); 
  18. $this->calls[] = $struct; 
  19.  
  20. function query() 
  21. // Prepare multicall, then call the parent::query() method 
  22. return parent::query('system.multicall', $this->calls);