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

Public Member Functions

 __construct ($return=null, $type=null)
 setEncoding ($encoding)
 getEncoding ()
 setReturnValue ($value, $type=null)
 getReturnValue ()
 isFault ()
 getFault ()
 loadXml ($response)
 saveXml ()
 __toString ()

Protected Member Functions

 _getXmlRpcReturn ()

Protected Attributes

 $_return
 $_type
 $_encoding = 'UTF-8'
 $_fault = null

Detailed Description

Definition at line 42 of file Response.php.


Constructor & Destructor Documentation

__construct ( return = null,
type = null 
)

Constructor

Can optionally pass in the return value and type hinting; otherwise, the return value can be set via setReturnValue().

Parameters:
mixed$return
string$type
Returns:
void

Definition at line 78 of file Response.php.

Here is the call graph for this function:


Member Function Documentation

Return XML response

Returns:
string

Reimplemented in Zend_XmlRpc_Response_Http.

Definition at line 244 of file Response.php.

_getXmlRpcReturn ( ) [protected]

Retrieve the XMLRPC value for the return value

Returns:
Zend_XmlRpc_Value

Definition at line 136 of file Response.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Retrieve current response encoding

Returns:
string

Definition at line 101 of file Response.php.

Here is the caller graph for this function:

getFault ( )

Returns the fault, if any.

Returns:
null|Zend_XmlRpc_Fault

Definition at line 156 of file Response.php.

Retrieve the return value

Returns:
mixed

Definition at line 126 of file Response.php.

isFault ( )

Is the response a fault response?

Returns:
boolean

Definition at line 146 of file Response.php.

loadXml ( response)

Load a response from an XML response

Attempts to load a response from an XMLRPC response, autodetecting if it is a fault response.

Parameters:
string$response
Returns:
boolean True if a valid XMLRPC response, false if a fault response or invalid input

Definition at line 171 of file Response.php.

Here is the call graph for this function:

saveXml ( )

Return response as XML

Returns:
string

Definition at line 224 of file Response.php.

Here is the call graph for this function:

setEncoding ( encoding)

Set encoding to use in response

Parameters:
string$encoding
Returns:
Zend_XmlRpc_Response

Definition at line 89 of file Response.php.

setReturnValue ( value,
type = null 
)

Set the return value

Sets the return value, with optional type hinting if provided.

Parameters:
mixed$value
string$type
Returns:
void

Definition at line 115 of file Response.php.

Here is the caller graph for this function:


Field Documentation

$_encoding = 'UTF-8' [protected]

Definition at line 60 of file Response.php.

$_fault = null [protected]

Definition at line 66 of file Response.php.

$_return [protected]

Definition at line 48 of file Response.php.

$_type [protected]

Definition at line 54 of file Response.php.


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