ILIAS
Release_4_0_x_branch Revision 61816
|
Public Member Functions | |
remoteCall___ ($methodName, $parameters) | |
remoteCall executes the XML-RPC call, and returns the result | |
__call ($methodName, $parameters) | |
__call Catchall. |
Static Public Member Functions | |
static | create ($uri, $options=array()) |
Factory method to select, create and return a XML_RPC2_Client backend. |
Data Fields | |
const | VERSION = '1.0.4' |
Protected Member Functions | |
__construct ($uri, $options=array()) | |
Construct a new XML_RPC2_Client. | |
displayDebugInformations___ ($request, $body) | |
Display debug informations. | |
displayDebugInformations2___ ($result) | |
Display debug informations (part 2) | |
testMethodName___ ($methodName) | |
Return true is the given method name is ok with XML/RPC spec. |
Protected Attributes | |
$uri = null | |
$proxy = null | |
$prefix = null | |
$debug = false | |
$encoding = 'iso-8859-1' | |
$sslverify = true | |
$uglyStructHack = true | |
ugly hack flag to avoid http://bugs.php.net/bug.php?id=21949 |
Definition at line 72 of file Client.php.
|
protected |
Construct a new XML_RPC2_Client.
To create a new XML_RPC2_Client, a URI must be provided (e.g. http://xmlrpc.example.com/1.0/). Optionally, some options may be set as an associative array. Accepted keys are : 'prefix', 'proxy', 'debug' => see correspondant property to get more informations
string | URI for the XML-RPC server |
array | (optional) Associative array of options |
Reimplemented in XML_RPC2_Backend_Php_Client, and XML_RPC2_Backend_Xmlrpcext_Client.
Definition at line 153 of file Client.php.
References $uri, and testMethodName___().
XML_RPC2_Client::__call | ( | $methodName, | |
$parameters | |||
) |
__call Catchall.
This method catches remote method calls and provides for remote forwarding.
If the parameters are native types, this method will use XML_RPC_Value::createFromNative to convert it into an XML-RPC type. Whenever a parameter is already an instance of XML_RPC_Value it will be used as provided. It follows that, in situations when XML_RPC_Value::createFromNative proves inacurate – as when encoding DateTime values – you should present an instance of XML_RPC_Value in lieu of the native parameter.
string | Method name |
array | Parameters |
Definition at line 230 of file Client.php.
|
static |
Factory method to select, create and return a XML_RPC2_Client backend.
To create a new XML_RPC2_Client, a URI must be provided (e.g. http://xmlrpc.example.com/1.0/).
Optionally, some options may be set.
string | URI for the XML-RPC server |
array | (optional) associative array of options (see constructor) |
Definition at line 205 of file Client.php.
References $uri, XML_RPC2_Backend\getClientClassname(), and XML_RPC2_Backend\setBackend().
Referenced by ilRpcClientFactory\factory().
|
protected |
Display debug informations (part 2)
NB : The '___' at the end of the method name is to avoid collisions with XMLRPC __call()
mixed | $result | decoded server response |
Definition at line 270 of file Client.php.
References $result.
Referenced by XML_RPC2_Backend_Xmlrpcext_Client\remoteCall___(), and XML_RPC2_Backend_Php_Client\remoteCall___().
|
protected |
Display debug informations.
NB : The '___' at the end of the method name is to avoid collisions with XMLRPC __call()
string | $request | XML client request |
string | $body | XML server response |
Definition at line 248 of file Client.php.
Referenced by XML_RPC2_Backend_Xmlrpcext_Client\remoteCall___(), and XML_RPC2_Backend_Php_Client\remoteCall___().
|
abstract |
remoteCall executes the XML-RPC call, and returns the result
NB : The '___' at the end of the method name is to avoid collisions with XMLRPC __call()
string | Method name |
array | Parameters |
Reimplemented in XML_RPC2_Backend_Php_Client, and XML_RPC2_Backend_Xmlrpcext_Client.
|
protected |
Return true is the given method name is ok with XML/RPC spec.
NB : The '___' at the end of the method name is to avoid collisions with XMLRPC __call()
string | $methodName | method name |
Definition at line 290 of file Client.php.
Referenced by __construct().
|
protected |
Definition at line 103 of file Client.php.
|
protected |
Definition at line 110 of file Client.php.
|
protected |
Definition at line 96 of file Client.php.
|
protected |
Definition at line 89 of file Client.php.
|
protected |
Definition at line 117 of file Client.php.
|
protected |
ugly hack flag to avoid http://bugs.php.net/bug.php?id=21949
see XML_RPC2_Backend_Xmlrpcext_Value::createFromNative() from more infos
Definition at line 127 of file Client.php.
|
protected |
Definition at line 82 of file Client.php.
Referenced by XML_RPC2_Backend_Xmlrpcext_Client\__construct(), XML_RPC2_Backend_Php_Client\__construct(), __construct(), create(), XML_RPC2_Backend_Xmlrpcext_Client\remoteCall___(), and XML_RPC2_Backend_Php_Client\remoteCall___().
const XML_RPC2_Client::VERSION = '1.0.4' |
Definition at line 74 of file Client.php.
Referenced by XML_RPC2_Util_HTTPRequest\sendRequest().