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 [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Rest
- Subpackage
- Client
- Version
- $Id: Result.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Rest_Client_Result
- Implements
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
Methods

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

__construct(string $data) : voidConstructor
| Name | Type | Description |
|---|---|---|
| $data | string | XML Result |

__get(string $name) : null | \SimpleXMLElement | arrayGet Property Overload
| 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) : booleanIsset Overload
| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| boolean |

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

getIterator() : \SimpleXMLIteratorImplement IteratorAggregate::getIterator()
| Type | Description |
|---|---|
| \SimpleXMLIterator |

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

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