API Documentation

XmlRpc/Response.php

Includes Classes 
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_Controller
Classes
Zend_XmlRpc_Response

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_Response

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
version
$Id: Response.php 20208 2010-01-11 22:37:37Z lars $
Properties
$_return
$_type
$_encoding
$_fault
Methods
__construct
setEncoding
getEncoding
setReturnValue
getReturnValue
_getXmlRpcReturn
isFault
getFault
loadXml
saveXml
__toString

Description

XmlRpc Response

Container for accessing an XMLRPC return value and creating the XML response.

Properties

$_encoding

string $_encoding = 'UTF-8'

Response character encoding

Details

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

$_fault

null|Zend_XmlRpc_Fault $_fault = 'null'

Fault, if response is a fault response

Details

$_fault
null|Zend_XmlRpc_Fault
visibility
protected
default
null
final
false
static
false

$_return

mixed $_return = ''

Return value

Details

$_return
mixed
visibility
protected
default
final
false
static
false

$_type

string $_type = ''

Return type

Details

$_type
string
visibility
protected
default
final
false
static
false

Methods

__construct

__construct( mixed $return = null, string $type = null ) : void

Constructor

Can optionally pass in the return value and type hinting; otherwise, the return value can be set via {@link setReturnValue()}.

Arguments
$return
mixed
$type
string
Details
visibility
public
final
false
static
false

__toString

__toString( ) : string

Return XML response

Output
string
Details
visibility
public
final
false
static
false

_getXmlRpcReturn

_getXmlRpcReturn( ) : Zend_XmlRpc_Value

Retrieve the XMLRPC value for the return value

Details
visibility
protected
final
false
static
false

getEncoding

getEncoding( ) : string

Retrieve current response encoding

Output
string
Details
visibility
public
final
false
static
false

getFault

getFault( ) : null|Zend_XmlRpc_Fault

Returns the fault, if any.

Output
null|Zend_XmlRpc_Fault
Details
visibility
public
final
false
static
false

getReturnValue

getReturnValue( ) : mixed

Retrieve the return value

Output
mixed
Details
visibility
public
final
false
static
false

isFault

isFault( ) : boolean

Is the response a fault response?

Output
boolean
Details
visibility
public
final
false
static
false

loadXml

loadXml( string $response ) : boolean

Load a response from an XML response

Attempts to load a response from an XMLRPC response, autodetecting if it is a fault response.

Arguments
$response
string
Output
boolean
True if a valid XMLRPC response, false if a fault response or invalid input
Details
visibility
public
final
false
static
false

saveXml

saveXml( ) : string

Return response as XML

Output
string
Details
visibility
public
final
false
static
false

setEncoding

setEncoding( string $encoding ) : Zend_XmlRpc_Response

Set encoding to use in response

Arguments
$encoding
string
Details
visibility
public
final
false
static
false

setReturnValue

setReturnValue( mixed $value, string $type = null ) : void

Set the return value

Sets the return value, with optional type hinting if provided.

Arguments
$value
mixed
$type
string
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.