Rest/Client/Result.php

Show: PublicProtectedPrivateinherited
Table of Contents
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-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
Implements
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedstring $_errstr
error information
Details
Type
string
>VPropertyprotected\SimpleXMLElement $_sxml

Methods

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

Cast properties to PHP values

For arrays, loops through each element and casts to a value as well.
Parameters
NameTypeDescription
$methodstring
$argsarray
Returns
TypeDescription
mixed
methodpublic__construct(string $data) : void

Constructor

Parameters
NameTypeDescription
$datastring

XML Result

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

Get Property Overload

Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
null | \SimpleXMLElement | arrayNull if not found, SimpleXMLElement if only one value found, array of Zend_Rest_Client_Result objects otherwise
methodpublic__isset(string $name) : boolean

Isset Overload

Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
boolean
methodpublic__toString() : string

toString overload

Be sure to only call this when the result is a single value!
Returns
TypeDescription
string
methodpublicgetIterator() : \SimpleXMLIterator

Implement IteratorAggregate::getIterator()

Returns
TypeDescription
\SimpleXMLIterator
methodpublicgetStatus() : boolean

Get Request Status

Returns
TypeDescription
boolean
methodpublichandleXmlErrors(int $errno, string $errstr, string $errfile = null, string $errline = null, array $errcontext = null) : true

Temporary error handler for parsing REST responses.

Parameters
NameTypeDescription
$errnoint
$errstrstring
$errfilestring
$errlinestring
$errcontextarray
Returns
TypeDescription
true
methodpublicisError() : void

methodpublicisSuccess() : void

methodpublictoValue(\SimpleXMLElement $value) : mixed

Casts a SimpleXMLElement to its appropriate PHP value

Parameters
NameTypeDescription
$value\SimpleXMLElement
Returns
TypeDescription
mixed
Documentation was generated by phpDocumentor 2.2.0 .