API Documentation

Zend/Rest/Client/Result.php

Show: inherited
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 license@zend.com 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 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Rest_Client_Result

Package: Zend\Rest\Client

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

Properties

Propertyprotectedstring  $_errstr= ''

error information

Details
Type
string
Propertyprotected\SimpleXMLElement  $_sxml= ''

Details
Type
\SimpleXMLElement

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
Name Type Description
$method string
$args array
Returns
Type Description
mixed
methodpublic__construct( string $data ) : void

Constructor

Parameters
Name Type Description
$data string

XML Result

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

Get Property Overload

Parameters
Name Type Description
$name string
Returns
Type Description
null|\SimpleXMLElement|array Null 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
Name Type Description
$name string
Returns
Type Description
boolean
methodpublic__toString( ) : string

toString overload

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

Returns
Type Description
string
methodpublicgetIterator( ) : \SimpleXMLIterator

Implement IteratorAggregate::getIterator()

Returns
Type Description
\SimpleXMLIterator
methodpublicgetStatus( ) : boolean

Get Request Status

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

Temporary error handler for parsing REST responses.

Parameters
Name Type Description
$errno int
$errstr string
$errfile string
$errline string
$errcontext array
Returns
Type Description
true
methodpublicisError( ) : void

methodpublicisSuccess( ) : void

methodpublictoValue( \SimpleXMLElement $value ) : mixed

Casts a SimpleXMLElement to its appropriate PHP value

Parameters
Name Type Description
$value \SimpleXMLElement
Returns
Type Description
mixed
Documentation was generated by DocBlox 0.15.1.