XmlrpcEncoder
class XmlrpcEncoder (View source)
XML-RPC encoder
Main features:
- support for
Methods
Constructor method
Set encoding
Get encoding
Handle base64 and datetime values
Use
Encode an xmlrpc response
Encode an xmlrpc call
Encode an xmlrpc multicall
Encode an xmlrpc error
Details
at line 56
final
__construct()
Constructor method
at line 69
final XmlrpcEncoder
setEncoding(string $encoding)
Set encoding
at line 82
final string
getEncoding()
Get encoding
at line 96
final XmlrpcEncoder
setValueType(mixed $value, string $type)
Handle base64 and datetime values
at line 113
final XmlrpcEncoder
useExNil(bool $mode = true)
Use
at line 133
string
encodeResponse(mixed $data)
Encode an xmlrpc response
It expects a scalar, array or NULL as $data and will try to encode it as a valid xmlrpc response.
at line 192
string
encodeCall(string $method, array $data = array())
Encode an xmlrpc call
It expects an array of values as $data and will try to encode it as a valid xmlrpc call.
at line 253
string
encodeMulticall(array $data)
Encode an xmlrpc multicall
It expects in input a key->val array where key represent the method and val the parameters.
at line 289
string
encodeError(int $error_code, string $error_message)
Encode an xmlrpc error