xmlrpc_multicall

Versions
4.6
xmlrpc_multicall()

Perform multiple calls in one request if possible.

Parameters

$url An absolute URL of the XML-RPC server

$calls An array of calls. Each call is an array, where the first element is the method name, further elements are the arguments.

Return value

An array of results.

Code

includes/xmlrpc.inc, line 414

<?php
function xmlrpc_multicall() {
  $args = func_get_args();
  $url = $args[0];
  foreach ($args[1] as $call) {
    $method = array_shift($call);
    $calls[] = array(
      'methodName' => $method,
      'params' => $call
    );
  }
  return xmlrpc($url, 'system.multicall', $calls);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.