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

Public Member Functions | |
| __construct ($method=null, $params=null) | |
| setEncoding ($encoding) | |
| getEncoding () | |
| setMethod ($method) | |
| getMethod () | |
| addParam ($value, $type=null) | |
| setParams () | |
| getParams () | |
| getTypes () | |
| loadXml ($request) | |
| isFault () | |
| getFault () | |
| saveXml () | |
| __toString () | |
Protected Member Functions | |
| _getXmlRpcParams () | |
Protected Attributes | |
| $_encoding = 'UTF-8' | |
| $_method | |
| $_xml | |
| $_params = array() | |
| $_fault = null | |
| $_types = array() | |
| $_xmlRpcParams = array() | |
Definition at line 48 of file Request.php.
| __construct | ( | $ | method = null, |
| $ | params = null |
||
| ) |
Create a new XML-RPC request
| string | $method | (optional) |
| array | $params | (optional) |
Definition at line 98 of file Request.php.

| __toString | ( | ) |
| _getXmlRpcParams | ( | ) | [protected] |
Retrieve method parameters as XMLRPC values
Definition at line 382 of file Request.php.


| addParam | ( | $ | value, |
| $ | type = null |
||
| ) |
Add a parameter to the parameter stack
Adds a parameter to the parameter stack, associating it with the type $type if provided
| mixed | $value | |
| string | $type | Optional; type hinting |
Definition at line 171 of file Request.php.

| getEncoding | ( | ) |
Retrieve current request encoding
Definition at line 128 of file Request.php.

| getFault | ( | ) |
Retrieve the fault response, if any
Definition at line 372 of file Request.php.
| getMethod | ( | ) |
Retrieve call method
Definition at line 156 of file Request.php.

| getParams | ( | ) |
Retrieve the array of parameters
Definition at line 277 of file Request.php.

| getTypes | ( | ) |
Return parameter types
Definition at line 287 of file Request.php.

| isFault | ( | ) |
Does the current request contain errors and should it return a fault response?
Definition at line 362 of file Request.php.
| loadXml | ( | $ | request | ) |
Load XML and parse into request components
| string | $request |
Definition at line 298 of file Request.php.


| saveXml | ( | ) |
Create XML request
Definition at line 405 of file Request.php.

| setEncoding | ( | $ | encoding | ) |
Set encoding to use in request
| string | $encoding |
Definition at line 116 of file Request.php.
| setMethod | ( | $ | method | ) |
Set method to call
| string | $method |
Definition at line 139 of file Request.php.


| setParams | ( | ) |
Set the parameters array
If called with a single, array value, that array is used to set the parameters stack. If called with multiple values or a single non-array value, the arguments are used to set the parameters stack.
Best is to call with array of the format, in order to allow type hinting when creating the XMLRPC values for each parameter: $array = array( array( 'value' => $value, 'type' => $type )[, ... ] );
public
Definition at line 208 of file Request.php.


$_encoding = 'UTF-8' [protected] |
Definition at line 54 of file Request.php.
$_fault = null [protected] |
Definition at line 78 of file Request.php.
$_method [protected] |
Definition at line 60 of file Request.php.
$_params = array() [protected] |
Definition at line 72 of file Request.php.
$_types = array() [protected] |
Definition at line 84 of file Request.php.
$_xml [protected] |
Reimplemented in Zend_XmlRpc_Request_Http, and Zend_XmlRpc_Request_Stdin.
Definition at line 66 of file Request.php.
$_xmlRpcParams = array() [protected] |
Definition at line 90 of file Request.php.