PHP Class Habari\XMLRPCUtils

Show file Open project: habari/system

Public Methods

Method Description
decode_args ( SimpleXMLElement $value ) : mixed Decode the value of a response parameter using the datatype specified in the XML element.
encode_arg ( SimpleXMLElement $params, mixed $arg ) Encode a variable value into the parameters of the XML tree

Method Details

decode_args() public static method

Decode the value of a response parameter using the datatype specified in the XML element.
public static decode_args ( SimpleXMLElement $value ) : mixed
$value SimpleXMLElement A "value" element from the XMLRPC response
return mixed The value of the element, decoded from the datatype specified in the xml element

encode_arg() public static method

Encode a variable value into the parameters of the XML tree
public static encode_arg ( SimpleXMLElement $params, mixed $arg )
$params SimpleXMLElement The parameter to add the value elements to.
$arg mixed The value to encode