class XmlrpcDecoder (View source)

XML-RPC decoder

Methods

__construct()

No description

array
decodeResponse(string $response)

Decode an xmlrpc response

isFault()

No description

array
decodeCall(string $request)

Decode an xmlrpc request.

array
decodeMulticall(string $request)

Decode an xmlrpc multicall

Details

__construct()

array decodeResponse(string $response)

Decode an xmlrpc response

Parameters

string $response

Return Value

array

Exceptions

XmlrpcException

isFault()

array decodeCall(string $request)

Decode an xmlrpc request.

Can handle single or multicall requests and return an array of: [method], [data]

WARNING: in case of multicall, it will not throw any exception for an invalid boxcarred request; a null value will be placed instead of array(method,params).

Parameters

string $request

Return Value

array

Exceptions

XmlrpcException

array decodeMulticall(string $request)

Decode an xmlrpc multicall

Parameters

string $request

Return Value

array

Exceptions

XmlrpcException