|
XRL
latest
Simple XML-RPC Library (both client and server)
|
This class represents the response to an XML-RPC request. More...
Inheritance diagram for fpoirotte\XRL\Response:Public Member Functions | |
| __construct ($xmlResult) | |
| __toString () | |
| publish () | |
Protected Member Functions | |
| addHeader ($header) | |
| finalize ($result) | |
Protected Attributes | |
| $result | |
| The response to an XML-RPC request, as serialized XML. | |
This class represents the response to an XML-RPC request.
Definition at line 21 of file Response.php.
| fpoirotte\XRL\Response::__construct | ( | $xmlResult | ) |
Create the response to an XML-RPC request.
| mixed | $xmlResult | The result of the request as a string, encoded using XML-RPC types. |
Definition at line 33 of file Response.php.
| fpoirotte\XRL\Response::__toString | ( | ) |
Return the XML-RPC response this object represents, as serialized XML.
| string | This XML-RPC response, as serialized XML. |
Implements fpoirotte\XRL\ResponseInterface.
Definition at line 43 of file Response.php.
References fpoirotte\XRL\Response\$result.
|
protected |
Adds an HTTP header to the current response.
| string | $header | Header to add. |
| fpoirotte::XRL::ResponseInterface | Returns this response. |
Definition at line 59 of file Response.php.
Referenced by fpoirotte\XRL\Response\publish().
|
protected |
A function that echoes its input and exits.
| string | $result | Some string to echo before exiting. |
Definition at line 73 of file Response.php.
References fpoirotte\XRL\Response\$result.
| fpoirotte\XRL\Response::publish | ( | ) |
Publish this XML-RPC response to a browser.
This method sets the proper HTTP headers and then sends the XML-RPC response to a browser.
Implements fpoirotte\XRL\ResponseInterface.
Definition at line 79 of file Response.php.
References fpoirotte\XRL\Response\$result, and fpoirotte\XRL\Response\addHeader().