XRL
latest
Simple XML-RPC Library (both client and server)
|
A decoder that transparently converts XML-RPC types to native PHP types. More...
Public Member Functions | |
__construct (\fpoirotte\XRL\DecoderInterface $decoder) | |
decodeRequest ($URI) | |
decodeResponse ($URI) | |
Protected Attributes | |
$decoder | |
Sub-decoder. | |
A decoder that transparently converts XML-RPC types to native PHP types.
Definition at line 21 of file NativeDecoder.php.
fpoirotte\XRL\NativeDecoder::__construct | ( | \fpoirotte\XRL\DecoderInterface | $decoder | ) |
Creates a new decoder.
fpoirotte::XRL::DecoderInterface | $decoder | Sub-decoder to use. |
Definition at line 32 of file NativeDecoder.php.
References fpoirotte\XRL\NativeDecoder\$decoder.
fpoirotte\XRL\NativeDecoder::decodeRequest | ( | $URI | ) |
Decode an XML-RPC request.
string | $URI | URI to XML-RPC request. |
fpoirotte::XRL::Request | An object representing an XML-RPC request. |
InvalidArgumentException | The given $data was invalid. For example, it wasn't a string, it didn"t contain any XML or the request was malformed. |
Implements fpoirotte\XRL\DecoderInterface.
Definition at line 38 of file NativeDecoder.php.
fpoirotte\XRL\NativeDecoder::decodeResponse | ( | $URI | ) |
Decode an XML-RPC response.
string | $URI | URI to the XML-RPC response. |
mixed | The return value represented by the XML-RPC response. |
fpoirotte::XRL::Exception | Thrown whenever the response described a failure. This exception's getCode() and getMessage() methods can be used to retrieve the original failure's code and description, respectively. |
InvalidArgumentException | The given $data was invalid. For example, it wasn't a string, it didn"t contain any XML or the request was malformed. |
Implements fpoirotte\XRL\DecoderInterface.
Definition at line 49 of file NativeDecoder.php.