Dotclear 2.26
Loading...
Searching...
No Matches
xmlrpcClientMulticall Class Reference
Inheritance diagram for xmlrpcClientMulticall:
xmlrpcClient netHttp Socket

Public Member Functions

 addCall (string $method,... $args)
 
 query (string $method,... $args)
 
- Public Member Functions inherited from xmlrpcClient
 __construct (string $url)
 
 query (string $method,... $args)
 
- Public Member Functions inherited from netHttp
 __construct ($host, int $port=80, ?int $timeout=null)
 
 get (string $path, $data=false)
 
 post (string $path, $data, ?string $charset=null)
 
 getStatus ()
 
 getContent ()
 
 getHeaders ()
 
 getHeader ($header)
 
 getCookies ()
 
 getRequestURL ()
 
 setHost (string $host, int $port=80)
 
 setProxy ($host, int $port=8080)
 
 setTimeout (int $timeout)
 
 setUserAgent (string $user_agent)
 
 setAuthorization (?string $username, ?string $password)
 
 setMoreHeader (string $header)
 
 voidMoreHeaders ()
 
 setCookies (array $cookies)
 
 useSSL (bool $flag)
 
 useGzip (bool $flag)
 
 setPersistCookies (bool $flag)
 
 setPersistReferers (bool $flag)
 
 setHandleRedirects (bool $flag)
 
 setMaxRedirects (int $num)
 
 setHeadersOnly (bool $flag)
 
 setDebug (bool $flag)
 
 setOutput (?string $out)
 
- Public Member Functions inherited from Socket
 __construct (string $host, int $port, int $timeout=10)
 
 __destruct ()
 
 host (?string $host=null)
 
 port (?int $port=null)
 
 timeout (?int $timeout=null)
 
 setBlocking (bool $block)
 
 open ()
 
 close ()
 
 write ($data)
 
 flush ()
 
 isOpen ()
 

Protected Attributes

 $calls = []
 
- Protected Attributes inherited from xmlrpcClient
 $request
 
 $message
 
- Protected Attributes inherited from netHttp
 $host
 
 $port
 
 $path
 
 $method
 
 $postdata = ''
 
 $post_charset
 
 $cookies = []
 
 $referer
 
 $accept = 'text/xml,application/xml,application/xhtml+xml,text/html,text/plain,image/png,image/jpeg,image/gif,image/webp,*/*'
 
 $accept_encoding = 'gzip'
 
 $accept_language = 'en-us'
 
 $user_agent = 'Clearbricks HTTP Client'
 
 $more_headers = []
 
 $timeout = 10
 
 $use_ssl = false
 
 $use_gzip = false
 
 $persist_cookies = true
 
 $persist_referers = true
 
 $debug = false
 
 $handle_redirects = true
 
 $max_redirects = 5
 
 $headers_only = false
 
 $username
 
 $password
 
 $proxy_host
 
 $proxy_port
 
 $status
 
 $status_string
 
 $headers = []
 
 $content = ''
 
 $redirect_count = 0
 
 $cookie_host = ''
 
 $output = null
 
 $output_h = null
 
- Protected Attributes inherited from Socket
 $_host
 
 $_port
 
 $_transport = ''
 
 $_timeout
 
 $_handle
 

Additional Inherited Members

- Static Public Member Functions inherited from netHttp
static quickGet (string $url, ?string $output=null)
 
static quickPost (string $url, array $data, ?string $output=null)
 
static initClient (string $url, string &$path)
 
static readURL (string $url, bool &$ssl, string &$host, int &$port, string &$path, string &$user, string &$pass)
 
- Protected Member Functions inherited from xmlrpcClient
 buildRequest ()
 
- Protected Member Functions inherited from netHttp
 buildQueryString ($data)
 
 doRequest ()
 
 buildRequest ()
 
 outputOpen ()
 
 outputClose ()
 
 outputWrite ($content)
 
 debug (string $msg, $object=false)
 
- Protected Member Functions inherited from Socket
 iterator ()
 

Member Function Documentation

◆ addCall()

addCall ( string  $method,
  $args 
)

Add call to stack

This method adds a method call for the given query (first argument) to calls stack. All other arguments of this method are XML-RPC method arguments.

Example: $o = new xmlrpcClient('http://example.com/xmlrpc'); $o->addCall('method1','hello','world'); $o->addCall('method2','foo','bar'); $r = $o->query();

Parameters
string$method
mixed$args
Returns
mixed

References netHttp\$method.

◆ query()

query ( string  $method,
  $args 
)

XML-RPC Query

This method sends calls stack to XML-RPC system.multicall method. See xmlrpcBasicServer::multiCall() for details and links about it.

Parameters
string$method(not used, use addCall() before invoking query())
mixed$args
Returns
mixed

Reimplemented from xmlrpcClient.

Field Documentation

◆ $calls

$calls = []
protected

The documentation for this class was generated from the following file: