Moodle  2.2.1
http://www.collinsharper.com
Zend_XmlRpc_Fault Class Reference
Inheritance diagram for Zend_XmlRpc_Fault:

Public Member Functions

 __construct ($code=404, $message= '')
 setCode ($code)
 getCode ()
 setMessage ($message)
 getMessage ()
 setEncoding ($encoding)
 getEncoding ()
 loadXml ($fault)
 saveXml ()
 __toString ()

Static Public Member Functions

static isFault ($xml)

Protected Attributes

 $_code
 $_encoding = 'UTF-8'
 $_message
 $_internal

Detailed Description

Definition at line 42 of file Fault.php.


Constructor & Destructor Documentation

__construct ( code = 404,
message = '' 
)

Constructor

Returns:
Zend_XmlRpc_Fault

Definition at line 105 of file Fault.php.

Here is the call graph for this function:


Member Function Documentation

Return XML fault response

Returns:
string

Definition at line 303 of file Fault.php.

getCode ( )

Return fault code

Returns:
int

Definition at line 135 of file Fault.php.

Here is the caller graph for this function:

Retrieve current fault encoding

Returns:
string

Definition at line 180 of file Fault.php.

Retrieve fault message

Returns:
string

Definition at line 157 of file Fault.php.

Here is the caller graph for this function:

static isFault ( xml) [static]

Determine if an XML response is an XMLRPC fault

Parameters:
string$xml
Returns:
boolean

Definition at line 261 of file Fault.php.

loadXml ( fault)

Load an XMLRPC fault from XML

Parameters:
string$fault
Returns:
boolean Returns true if successfully loaded fault response, false if response was not a fault response
Exceptions:
Zend_XmlRpc_Exceptionif no or faulty XML provided, or if fault response does not contain either code or message

Definition at line 194 of file Fault.php.

Here is the call graph for this function:

saveXml ( )

Serialize fault to XML

Returns:
string

Definition at line 279 of file Fault.php.

Here is the call graph for this function:

setCode ( code)

Set the fault code

Parameters:
int$code
Returns:
Zend_XmlRpc_Fault

Definition at line 124 of file Fault.php.

Here is the caller graph for this function:

setEncoding ( encoding)

Set encoding to use in fault response

Parameters:
string$encoding
Returns:
Zend_XmlRpc_Fault

Definition at line 168 of file Fault.php.

setMessage ( message)

Retrieve fault message

Parameters:
string
Returns:
Zend_XmlRpc_Fault

Definition at line 146 of file Fault.php.

Here is the caller graph for this function:


Field Documentation

$_code [protected]

Definition at line 48 of file Fault.php.

$_encoding = 'UTF-8' [protected]

Definition at line 54 of file Fault.php.

$_internal [protected]

Definition at line 66 of file Fault.php.

$_message [protected]

Definition at line 60 of file Fault.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations