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

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

+ Inheritance diagram for fpoirotte\XRL\EncoderInterface:

Public Member Functions

 encodeError (\Exception $error)
 
 encodeRequest (\fpoirotte\XRL\Request $request)
 
 encodeResponse ($response)
 

Detailed Description

Interface for an XML-RPC encoder.

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

Definition at line 20 of file EncoderInterface.php.

Member Function Documentation

fpoirotte\XRL\EncoderInterface::encodeError ( \Exception  $error)

Encode an exception as an XML-RPC failure.

Parameters
Exception$errorThe exception to encode.
Return values
stringThe exception, encoded as a XML-RPC failure in serialized form.

Implemented in fpoirotte\XRL\NativeEncoder, and fpoirotte\XRL\Encoder.

fpoirotte\XRL\EncoderInterface::encodeRequest ( \fpoirotte\XRL\Request  $request)

Encode an XML-RPC request.

Parameters
fpoirotte::XRL::Request$requestThe XML-RPC request to encode.
Return values
stringThe XML-RPC request, encoded as serialized XML.

Implemented in fpoirotte\XRL\NativeEncoder, and fpoirotte\XRL\Encoder.

fpoirotte\XRL\EncoderInterface::encodeResponse (   $response)

Encode an XML-RPC response.

Parameters
mixed$responseThe XML-RPC response to encode.
Return values
stringThe XML-RPC reponse, encoded as serialized XML.

Implemented in fpoirotte\XRL\NativeEncoder, and fpoirotte\XRL\Encoder.


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