ILIAS
eassessment Revision 61809
|
Static Public Member Functions | |
static | encode ($param, $encoding= 'iso-8859-1') |
Encode a normal XML-RPC response, containing the provided value. | |
static | encodeFault ($code, $message, $encoding= 'iso-8859-1') |
Encode a fault XML-RPC response, containing the provided code and message. | |
static | decode (SimpleXMLElement $xml) |
Parse a response and either return the native PHP result. |
Definition at line 61 of file Response.php.
|
static |
Parse a response and either return the native PHP result.
This method receives an XML-RPC response document, in SimpleXML format, decodes it and returns the payload value.
SimpleXmlElement | $xml | The Transport XML |
XML_RPC2_FaultException | Signals the decoded response was an XML-RPC fault |
XML_RPC2_DecodeException | Signals an ill formed payload response section |
Definition at line 125 of file Response.php.
References XML_RPC2_Backend_Php_Value\createFromDecode(), and XML_RPC2_FaultException\createFromDecode().
Referenced by XML_RPC2_Backend_Php_Client\remoteCall___().
|
static |
Encode a normal XML-RPC response, containing the provided value.
You may supply a php-native value, or an XML_RPC2_Backend_Php_Value instance, to be returned. Usually providing a native value is more convenient. However, for some types, XML_RPC2_Backend_Php_Value::createFromNative can't properly choose the xml-rpc type. In these cases, constructing an XML_RPC2_Backend_Php_Value and using it as param here is the only way to return the desired type.
mixed | $param | The result value which the response will envelop |
string | $encoding | encoding |
Definition at line 80 of file Response.php.
References XML_RPC2_Backend_Php_Value\createFromNative().
Referenced by XML_RPC2_Backend_Php_Server\getResponse().
|
static |
Encode a fault XML-RPC response, containing the provided code and message.
int | $code | Response code |
string | $message | Response message |
string | $encoding | encoding |
Definition at line 102 of file Response.php.
Referenced by XML_RPC2_Backend_Php_Server\getResponse(), and XML_RPC2_Backend_Xmlrpcext_Server\getResponse().