API Documentation

Rest/Client/Result.php

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_Rest
subpackage
Client
version
$Id: Result.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Rest_Client_Result

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_Rest_Client_Result

Implements
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_Rest
subpackage
Client
Properties
$_sxml
$_errstr
Methods
__construct
handleXmlErrors
toValue
__get
__call
__isset
getIterator
getStatus
isError
isSuccess
__toString

Description

Properties

$_errstr

string $_errstr = ''

error information

Details

$_errstr
string
visibility
protected
default
final
false
static
false

$_sxml

SimpleXMLElement $_sxml = ''

Details

$_sxml
SimpleXMLElement
visibility
protected
default
final
false
static
false

Methods

__call

__call( string $method, array $args ) : mixed

Cast properties to PHP values

For arrays, loops through each element and casts to a value as well.

Arguments
$method
string
$args
array
Output
mixed
Details
visibility
public
final
false
static
false

__construct

__construct( string $data ) : void

Constructor

Arguments
$data
string
XML Result
Details
visibility
public
final
false
static
false

__get

__get( string $name ) : null|SimpleXMLElement|array

Get Property Overload

Arguments
$name
string
Output
null|SimpleXMLElement|array
Null if not found, SimpleXMLElement if only one value found, array of Zend_Rest_Client_Result objects otherwise
Details
visibility
public
final
false
static
false

__isset

__isset( string $name ) : boolean

Isset Overload

Arguments
$name
string
Output
boolean
Details
visibility
public
final
false
static
false

__toString

__toString( ) : string

toString overload

Be sure to only call this when the result is a single value!

Output
string
Details
visibility
public
final
false
static
false

getIterator

getIterator( ) : SimpleXMLIterator

Implement IteratorAggregate::getIterator()

Output
SimpleXMLIterator
Details
visibility
public
final
false
static
false

getStatus

getStatus( ) : boolean

Get Request Status

Output
boolean
Details
visibility
public
final
false
static
false

handleXmlErrors

handleXmlErrors( int $errno, string $errstr, string $errfile = null, string $errline = null, array $errcontext = null ) : true

Temporary error handler for parsing REST responses.

Arguments
$errno
int
$errstr
string
$errfile
string
$errline
string
$errcontext
array
Output
true
Details
visibility
public
final
false
static
false

isError

isError( ) :
Details
visibility
public
final
false
static
false

isSuccess

isSuccess( ) :
Details
visibility
public
final
false
static
false

toValue

toValue( SimpleXMLElement $value ) : mixed

Casts a SimpleXMLElement to its appropriate PHP value

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