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

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 | |
Definition at line 42 of file Response.php.
| __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().
| mixed | $return | |
| string | $type |
Definition at line 78 of file Response.php.

| __toString | ( | ) |
Return XML response
Reimplemented in Zend_XmlRpc_Response_Http.
Definition at line 244 of file Response.php.
| _getXmlRpcReturn | ( | ) | [protected] |
Retrieve the XMLRPC value for the return value
Definition at line 136 of file Response.php.


| getEncoding | ( | ) |
Retrieve current response encoding
Definition at line 101 of file Response.php.

| getFault | ( | ) |
Returns the fault, if any.
Definition at line 156 of file Response.php.
| getReturnValue | ( | ) |
| isFault | ( | ) |
| 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.
| string | $response |
Definition at line 171 of file Response.php.

| saveXml | ( | ) |
Return response as XML
Definition at line 224 of file Response.php.

| setEncoding | ( | $ | encoding | ) |
Set encoding to use in response
| string | $encoding |
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.
| mixed | $value | |
| string | $type |
Definition at line 115 of file Response.php.

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