XmlRpc Response.
More...
XmlRpc Response.
Container for accessing an XMLRPC return value and creating the XML response.
__construct |
( |
|
$return = null , |
|
|
|
$type = null |
|
) |
| |
Constructor.
Can optionally pass in the return value and type hinting; otherwise, the return value can be set via setReturnValue().
- Parameters
-
Return XML response.
- Returns
- string
Retrieve current response encoding.
- Returns
- string
Returns the fault, if any.
- Returns
- null|
Retrieve the return value.
- Returns
- mixed
Retrieve the XMLRPC value for the return value.
- Returns
Is the response a fault response?
- Returns
- bool
Load a response from an XML response.
Attempts to load a response from an XMLRPC response, autodetecting if it is a fault response.
- Parameters
-
- Exceptions
-
Exception\ValueException | if invalid XML |
- Returns
- bool True if a valid XMLRPC response, false if a fault response or invalid input
Return response as XML.
- Returns
- string
Set encoding to use in response.
- Parameters
-
- Returns
setReturnValue |
( |
|
$value, |
|
|
|
$type = null |
|
) |
| |
Set the return value.
Sets the return value, with optional type hinting if provided.
- Parameters
-
- Returns
- void