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
string $_encoding = 'UTF-8'
Fault character encoding
array $_internal = 'array'
Internal fault codes => messages
string $_message = ''
Fault message
__construct(
$code
=
404, $message
)
:
Zend_XmlRpc_Fault
Constructor
__toString(
)
:
string
Return XML fault response
getCode(
)
:
int
Return fault code
getEncoding(
)
:
string
Retrieve current fault encoding
getMessage(
)
:
string
Retrieve fault message
isFault(
string $xml
)
:
boolean
Determine if an XML response is an XMLRPC fault
loadXml(
string $fault
)
:
boolean
Load an XMLRPC fault from XML
saveXml(
)
:
string
Serialize fault to XML
setCode(
int $code
)
:
Zend_XmlRpc_Fault
Set the fault code
setEncoding(
string $encoding
)
:
Zend_XmlRpc_Fault
Set encoding to use in fault response
setMessage(
$message
)
:
Zend_XmlRpc_Fault
Retrieve fault message