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.

array
$_internal= 'array(
404 => 'Unknown Error''
Internal fault codes => messages
array(
404 => 'Unknown Error'
Details
isFault(
string $xml
)
:
boolean
Determine if an XML response is an XMLRPC fault
Name | Type | Description |
---|---|---|
$xml | string |
Type | Description |
---|---|
boolean |

loadXml(
string $fault
)
:
boolean
Load an XMLRPC fault from XML
Name | Type | Description |
---|---|---|
$fault | string |
Type | Description |
---|---|
boolean | Returns true if successfully loaded fault response, false if response was not a fault response |
Exception | Description |
---|---|
\Zend_XmlRpc_Exception | if no or faulty XML provided, or if fault response does not contain either code or message |