Moodle  2.2.1
http://www.collinsharper.com
Zend_XmlRpc_Client Class Reference
Inheritance diagram for Zend_XmlRpc_Client:

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

Detailed Description

Definition at line 77 of file Client.php.


Constructor & Destructor Documentation

__construct ( server,
Zend_Http_Client httpClient = null 
)

Create a new XML-RPC client to a remote server

Parameters:
string$serverFull address of the XML-RPC service (e.g. http://time.xmlrpc.com/RPC2)
Zend_Http_Client$httpClientHTTP Client to use for requests
Returns:
void

Definition at line 130 of file Client.php.


Member Function Documentation

_createRequest ( method,
params 
) [protected]

Create request object

Returns:
Zend_XmlRpc_Request

Definition at line 382 of file Client.php.

Here is the caller graph for this function:

call ( method,
params = array() 
)

Send an XML-RPC request to the service (for a specific method)

Parameters:
string$methodName of the method we want to call
array$paramsArray of parameters for the method
Returns:
mixed
Exceptions:
Zend_XmlRpc_Client_FaultException

Exception thrown when an XML-RPC fault is returned

See also:
Zend_XmlRpc_Client_FaultException

Reimplemented in webservice_xmlrpc_client.

Definition at line 308 of file Client.php.

Here is the call graph for this function:

doRequest ( request,
response = null 
)

Perform an XML-RPC request and return a response.

Parameters:
Zend_XmlRpc_Request$request
null | Zend_XmlRpc_Response$response
Returns:
void
Exceptions:
Zend_XmlRpc_Client_HttpException

Exception thrown when an HTTP error occurs

See also:
Zend_XmlRpc_Client_HttpException

Definition at line 256 of file Client.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Gets the HTTP client object.

Returns:
Zend_Http_Client

Definition at line 160 of file Client.php.

Here is the caller graph for this function:

Gets the introspection object.

Returns:
Zend_XmlRpc_Client_ServerIntrospection

Definition at line 183 of file Client.php.

Here is the caller graph for this function:

The request of the last method call

Returns:
Zend_XmlRpc_Request

Definition at line 194 of file Client.php.

The response received from the last method call

Returns:
Zend_XmlRpc_Response

Definition at line 205 of file Client.php.

getProxy ( namespace = '')

Returns a proxy object for more convenient method calls

Parameters:
$namespaceNamespace to proxy or empty string for none
Returns:
Zend_XmlRpc_Client_ServerProxy

Definition at line 217 of file Client.php.

Here is the caller graph for this function:

setHttpClient ( Zend_Http_Client httpClient)

Sets the HTTP client object to use for connecting the XML-RPC server.

Parameters:
Zend_Http_Client$httpClient
Returns:
Zend_Http_Client

Definition at line 149 of file Client.php.

Sets the object used to introspect remote servers

Parameters:
Zend_XmlRpc_Client_ServerIntrospection
Returns:
Zend_XmlRpc_Client_ServerIntrospection

Definition at line 172 of file Client.php.

setSkipSystemLookup ( flag = true)

Set skip system lookup flag

Parameters:
bool$flag
Returns:
Zend_XmlRpc_Client

Definition at line 232 of file Client.php.

Skip system lookup when determining if parameter should be array or struct?

Returns:
bool

Definition at line 243 of file Client.php.

Here is the caller graph for this function:


Field Documentation

$_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.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations