mixed decode(
SimpleXMLElement
$xml)
|
|
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.
Parameters:
string encode(
mixed
$param, [string
$encoding = 'iso-8859-1'])
|
|
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.
Parameters: