|
Moodle
2.2.1
http://www.collinsharper.com
|

Public Member Functions | |
| __construct ($server, Zend_Http_Client $httpClient=null) | |
| setHttpClient (Zend_Http_Client $httpClient) | |
| getHttpClient () | |
| setIntrospector (Zend_XmlRpc_Client_ServerIntrospection $introspector) | |
| getIntrospector () | |
| getLastRequest () | |
| getLastResponse () | |
| getProxy ($namespace= '') | |
| setSkipSystemLookup ($flag=true) | |
| skipSystemLookup () | |
| doRequest ($request, $response=null) | |
| call ($method, $params=array()) | |
Protected Member Functions | |
| _createRequest ($method, $params) | |
Protected Attributes | |
| $_serverAddress | |
| $_httpClient = null | |
| $_introspector = null | |
| $_lastRequest = null | |
| $_lastResponse = null | |
| $_proxyCache = array() | |
| $_skipSystemLookup = false | |
Definition at line 77 of file Client.php.
| __construct | ( | $ | server, |
| Zend_Http_Client $ | httpClient = null |
||
| ) |
Create a new XML-RPC client to a remote server
| string | $server | Full address of the XML-RPC service (e.g. http://time.xmlrpc.com/RPC2) |
| Zend_Http_Client | $httpClient | HTTP Client to use for requests |
Definition at line 130 of file Client.php.
| _createRequest | ( | $ | method, |
| $ | params | ||
| ) | [protected] |
Create request object
Definition at line 382 of file Client.php.

Send an XML-RPC request to the service (for a specific method)
| string | $method | Name of the method we want to call |
| array | $params | Array of parameters for the method |
| Zend_XmlRpc_Client_FaultException |
Exception thrown when an XML-RPC fault is returned
Reimplemented in webservice_xmlrpc_client.
Definition at line 308 of file Client.php.

| doRequest | ( | $ | request, |
| $ | response = null |
||
| ) |
Perform an XML-RPC request and return a response.
| Zend_XmlRpc_Request | $request | |
| null | Zend_XmlRpc_Response | $response |
| Zend_XmlRpc_Client_HttpException |
Exception thrown when an HTTP error occurs
Definition at line 256 of file Client.php.


| getHttpClient | ( | ) |
Gets the HTTP client object.
Definition at line 160 of file Client.php.

| getIntrospector | ( | ) |
Gets the introspection object.
Definition at line 183 of file Client.php.

| getLastRequest | ( | ) |
The request of the last method call
Definition at line 194 of file Client.php.
| getLastResponse | ( | ) |
The response received from the last method call
Definition at line 205 of file Client.php.
| getProxy | ( | $ | namespace = '' | ) |
Returns a proxy object for more convenient method calls
| $namespace | Namespace to proxy or empty string for none |
Definition at line 217 of file Client.php.

| setHttpClient | ( | Zend_Http_Client $ | httpClient | ) |
Sets the HTTP client object to use for connecting the XML-RPC server.
| Zend_Http_Client | $httpClient |
Definition at line 149 of file Client.php.
| setIntrospector | ( | Zend_XmlRpc_Client_ServerIntrospection $ | introspector | ) |
Sets the object used to introspect remote servers
| Zend_XmlRpc_Client_ServerIntrospection |
Definition at line 172 of file Client.php.
| setSkipSystemLookup | ( | $ | flag = true | ) |
Set skip system lookup flag
| bool | $flag |
Definition at line 232 of file Client.php.
| skipSystemLookup | ( | ) |
Skip system lookup when determining if parameter should be array or struct?
Definition at line 243 of file Client.php.

$_httpClient = null [protected] |
Definition at line 90 of file Client.php.
$_introspector = null [protected] |
Definition at line 96 of file Client.php.
$_lastRequest = null [protected] |
Definition at line 102 of file Client.php.
$_lastResponse = null [protected] |
Definition at line 108 of file Client.php.
$_proxyCache = array() [protected] |
Definition at line 114 of file Client.php.
$_serverAddress [protected] |
Definition at line 84 of file Client.php.
$_skipSystemLookup = false [protected] |
Definition at line 120 of file Client.php.