category Zend
package Zend_Rest
subpackage Client
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Cast properties to PHP values

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

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

Parameters

$method

string

$args

array

Returns

mixed

Constructor

__construct(string $data) : void

Parameters

$data

string

XML Result

Get Property Overload

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

Parameters

$name

string

Returns

null\SimpleXMLElementarrayNull if not found, SimpleXMLElement if only one value found, array of Zend_Rest_Client_Result objects otherwise

Isset Overload

__isset(string $name) : boolean

Parameters

$name

string

Returns

boolean

toString overload

__toString() : string

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

Returns

string

Implement IteratorAggregate::getIterator()

getIterator() : \SimpleXMLIterator

Returns

\SimpleXMLIterator

Get Request Status

getStatus() : boolean

Returns

boolean

Temporary error handler for parsing REST responses.

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

Parameters

$errno

integer

$errstr

string

$errfile

string

$errline

string

$errcontext

array

Returns

true

isError()

isError() 

isSuccess()

isSuccess() 

Casts a SimpleXMLElement to its appropriate PHP value

toValue(\SimpleXMLElement $value) : mixed

Parameters

$value

\SimpleXMLElement

Returns

mixed

 Properties

 

error information

$_errstr : string

Default

 

$_sxml

$_sxml : \SimpleXMLElement

Default