Rest/Client/Result.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Rest
- Subpackage
- Client
- Version
- $Id$
\Zend_Rest_Client_Result
Package: Zend_Rest\Client
Returns






- Implements
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
Methods


__call(string $method, array $args) : mixed
Cast properties to PHP values
For arrays, loops through each element and casts to a value as well.
ParametersName | Type | Description |
---|---|---|
$method | string | |
$args | array |
Type | Description |
---|---|
mixed |


__get(string $name) : null | \SimpleXMLElement | array
Get Property Overload
Parameters
Returns
Name | Type | Description |
---|---|---|
$name | string |
Type | Description |
---|---|
null | \SimpleXMLElement | array | Null if not found, SimpleXMLElement if only one value found, array of Zend_Rest_Client_Result objects otherwise |


__isset(string $name) : boolean
Isset Overload
Parameters
Returns
Name | Type | Description |
---|---|---|
$name | string |
Type | Description |
---|---|
boolean |


__toString() : string
toString overload
Be sure to only call this when the result is a single value!
ReturnsType | Description |
---|---|
string |


getIterator() : \SimpleXMLIterator
Implement IteratorAggregate::getIterator()
Returns
Type | Description |
---|---|
\SimpleXMLIterator |


handleXmlErrors(int $errno, string $errstr, string $errfile = null, string $errline = null, array $errcontext = null) : true
Temporary error handler for parsing REST responses.
Parameters
Returns
Name | Type | Description |
---|---|---|
$errno | int | |
$errstr | string | |
$errfile | string | |
$errline | string | |
$errcontext | array |
Type | Description |
---|---|
true |


toValue(\SimpleXMLElement $value) : mixed
Casts a SimpleXMLElement to its appropriate PHP value
Parameters
Returns
Name | Type | Description |
---|---|---|
$value | \SimpleXMLElement |
Type | Description |
---|---|
mixed |