API Documentation

XmlRpc/Fault.php

Includes Classes 
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_XmlRpc
subpackage
Server
version
$Id: Fault.php 20208 2010-01-11 22:37:37Z lars $
Classes
Zend_XmlRpc_Fault

Description

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.

Zend_XmlRpc_Fault

category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_XmlRpc
Properties
$_code
$_encoding
$_message
$_internal
Methods
__construct
setCode
getCode
setMessage
getMessage
setEncoding
getEncoding
loadXml
isFault
saveXml
__toString

Description

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.

Properties

$_code

int $_code = ''

Fault code

Details

$_code
int
visibility
protected
default
final
false
static
false

$_encoding

string $_encoding = 'UTF-8'

Fault character encoding

Details

$_encoding
string
visibility
protected
default
UTF-8
final
false
static
false

$_internal

array $_internal = 'array'

Internal fault codes => messages

Details

$_internal
array
visibility
protected
default
array
final
false
static
false

$_message

string $_message = ''

Fault message

Details

$_message
string
visibility
protected
default
final
false
static
false

Methods

__construct

__construct(  $code = 404,  $message ) : Zend_XmlRpc_Fault

Constructor

Arguments
$code
$message
Details
visibility
public
final
false
static
false

__toString

__toString( ) : string

Return XML fault response

Output
string
Details
visibility
public
final
false
static
false

getCode

getCode( ) : int

Return fault code

Output
int
Details
visibility
public
final
false
static
false

getEncoding

getEncoding( ) : string

Retrieve current fault encoding

Output
string
Details
visibility
public
final
false
static
false

getMessage

getMessage( ) : string

Retrieve fault message

Output
string
Details
visibility
public
final
false
static
false

isFault

isFault( string $xml ) : boolean

Determine if an XML response is an XMLRPC fault

Arguments
$xml
string
Output
boolean
Details
visibility
public
final
false
static
true

loadXml

loadXml( string $fault ) : boolean

Load an XMLRPC fault from XML

Arguments
$fault
string
Output
boolean
Returns true if successfully loaded fault response, false if response was not a fault response
Details
visibility
public
final
false
static
false
throws
if no or faulty XML provided, or if fault response does not contain either code or message

saveXml

saveXml( ) : string

Serialize fault to XML

Output
string
Details
visibility
public
final
false
static
false

setCode

setCode( int $code ) : Zend_XmlRpc_Fault

Set the fault code

Arguments
$code
int
Details
visibility
public
final
false
static
false

setEncoding

setEncoding( string $encoding ) : Zend_XmlRpc_Fault

Set encoding to use in fault response

Arguments
$encoding
string
Details
visibility
public
final
false
static
false

setMessage

setMessage(  $message ) : Zend_XmlRpc_Fault

Retrieve fault message

Arguments
$message
string
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.