Edit File by line
/home/barbar84/www/wp-inclu.../IXR
File: class-IXR-clientmulticall.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* IXR_ClientMulticall
[2] Fix | Delete
*
[3] Fix | Delete
* @package IXR
[4] Fix | Delete
* @since 1.5.0
[5] Fix | Delete
*/
[6] Fix | Delete
class IXR_ClientMulticall extends IXR_Client
[7] Fix | Delete
{
[8] Fix | Delete
var $calls = array();
[9] Fix | Delete
[10] Fix | Delete
/**
[11] Fix | Delete
* PHP5 constructor.
[12] Fix | Delete
*/
[13] Fix | Delete
function __construct( $server, $path = false, $port = 80 )
[14] Fix | Delete
{
[15] Fix | Delete
parent::IXR_Client($server, $path, $port);
[16] Fix | Delete
$this->useragent = 'The Incutio XML-RPC PHP Library (multicall client)';
[17] Fix | Delete
}
[18] Fix | Delete
[19] Fix | Delete
/**
[20] Fix | Delete
* PHP4 constructor.
[21] Fix | Delete
*/
[22] Fix | Delete
public function IXR_ClientMulticall( $server, $path = false, $port = 80 ) {
[23] Fix | Delete
self::__construct( $server, $path, $port );
[24] Fix | Delete
}
[25] Fix | Delete
[26] Fix | Delete
/**
[27] Fix | Delete
* @since 1.5.0
[28] Fix | Delete
* @since 5.5.0 Formalized the existing `...$args` parameter by adding it
[29] Fix | Delete
* to the function signature.
[30] Fix | Delete
*/
[31] Fix | Delete
function addCall( ...$args )
[32] Fix | Delete
{
[33] Fix | Delete
$methodName = array_shift($args);
[34] Fix | Delete
$struct = array(
[35] Fix | Delete
'methodName' => $methodName,
[36] Fix | Delete
'params' => $args
[37] Fix | Delete
);
[38] Fix | Delete
$this->calls[] = $struct;
[39] Fix | Delete
}
[40] Fix | Delete
[41] Fix | Delete
/**
[42] Fix | Delete
* @since 1.5.0
[43] Fix | Delete
* @since 5.5.0 Formalized the existing `...$args` parameter by adding it
[44] Fix | Delete
* to the function signature.
[45] Fix | Delete
*
[46] Fix | Delete
* @return bool
[47] Fix | Delete
*/
[48] Fix | Delete
function query( ...$args )
[49] Fix | Delete
{
[50] Fix | Delete
// Prepare multicall, then call the parent::query() method
[51] Fix | Delete
return parent::query('system.multicall', $this->calls);
[52] Fix | Delete
}
[53] Fix | Delete
}
[54] Fix | Delete
[55] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function