Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
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 {@link getInstance()} factory to instantiate a Zend_XmlRpc_Server_Fault.
int $_code = ''Fault code
Detailsstring $_encoding = 'UTF-8'Fault character encoding
Detailsarray $_internal = 'array'Internal fault codes => messages
Detailsstring $_message = ''Fault message
Details__construct(
$code
=
404, $message
)
:
Zend_XmlRpc_FaultConstructor
Details__toString(
)
:
stringReturn XML fault response
DetailsgetCode(
)
:
intReturn fault code
DetailsgetEncoding(
)
:
stringRetrieve current fault encoding
DetailsgetMessage(
)
:
stringRetrieve fault message
DetailsisFault(
string $xml
)
:
booleanDetermine if an XML response is an XMLRPC fault
DetailsloadXml(
string $fault
)
:
booleanLoad an XMLRPC fault from XML
DetailssaveXml(
)
:
stringSerialize fault to XML
DetailssetCode(
int $code
)
:
Zend_XmlRpc_FaultSet the fault code
DetailssetEncoding(
string $encoding
)
:
Zend_XmlRpc_FaultSet encoding to use in fault response
DetailssetMessage(
$message
)
:
Zend_XmlRpc_FaultRetrieve fault message
Details