XRL  latest
Simple XML-RPC Library (both client and server)
fpoirotte\XRL\DecoderInterface Interface Reference

Interface for an XML-RPC decoder. More...

+ Inheritance diagram for fpoirotte\XRL\DecoderInterface:

Public Member Functions

 decodeRequest ($URI)
 
 decodeResponse ($URI)
 

Detailed Description

Interface for an XML-RPC decoder.

Authors
François Poirotte click.nosp@m.y@er.nosp@m.ebot..nosp@m.net

Definition at line 20 of file DecoderInterface.php.

Member Function Documentation

fpoirotte\XRL\DecoderInterface::decodeRequest (   $URI)

Decode an XML-RPC request.

Parameters
string$URIURI to XML-RPC request.
Return values
fpoirotte::XRL::RequestAn object representing an XML-RPC request.
Exceptions
InvalidArgumentExceptionThe given $data was invalid. For example, it wasn't a string, it didn"t contain any XML or the request was malformed.

Implemented in fpoirotte\XRL\Decoder, and fpoirotte\XRL\NativeDecoder.

fpoirotte\XRL\DecoderInterface::decodeResponse (   $URI)

Decode an XML-RPC response.

Parameters
string$URIURI to the XML-RPC response.
Return values
mixedThe return value represented by the XML-RPC response.
Exceptions
fpoirotte::XRL::ExceptionThrown 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.
InvalidArgumentExceptionThe given $data was invalid. For example, it wasn't a string, it didn"t contain any XML or the request was malformed.

Implemented in fpoirotte\XRL\Decoder, and fpoirotte\XRL\NativeDecoder.


The documentation for this interface was generated from the following file: