Zend Framework
3.0
|
XMLRPC Faults. More...
Public Member Functions | |
__construct ($code=404, $message= '') | |
Constructor. | |
setCode ($code) | |
Set the fault code. | |
getCode () | |
Return fault code. | |
setMessage ($message) | |
Retrieve fault message. | |
getMessage () | |
Retrieve fault message. | |
setEncoding ($encoding) | |
Set encoding to use in fault response. | |
getEncoding () | |
Retrieve current fault encoding. | |
loadXml ($fault) | |
Load an XMLRPC fault from XML. | |
saveXml () | |
Serialize fault to XML. | |
__toString () | |
Return XML fault response. | |
Static Public Member Functions | |
static | isFault ($xml) |
Determine if an XML response is an XMLRPC fault. | |
Protected Attributes | |
$code | |
$encoding = 'UTF-8' | |
$message | |
$internal | |
XMLRPC Faults.
Container for XMLRPC faults, containing both a code and a message; additionally, has methods for determining if an XML response is an XMLRPC fault, as well as generating the XML for an XMLRPC fault response.
To allow method chaining, you may only use the getInstance() factory to instantiate a Zend.
__construct | ( | $code = 404 , |
|
$message = '' |
|||
) |
Constructor.
int | $code | |
string | $message |
__toString | ( | ) |
Return XML fault response.
getCode | ( | ) |
Return fault code.
getEncoding | ( | ) |
Retrieve current fault encoding.
getMessage | ( | ) |
Retrieve fault message.
|
static |
Determine if an XML response is an XMLRPC fault.
string | $xml |
loadXml | ( | $fault | ) |
Load an XMLRPC fault from XML.
string | $fault |
Exception\ExceptionInterface | if no or faulty XML provided, or if fault response does not contain either code or message |
saveXml | ( | ) |
Serialize fault to XML.
setCode | ( | $code | ) |
setEncoding | ( | $encoding | ) |
setMessage | ( | $message | ) |
|
protected |
|
protected |
|
protected |
|
protected |