Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_Rest_Client_Result Class Reference

Public Member Functions

 __construct ($data)
 Constructor.
 
 handleXmlErrors ($errno, $errstr, $errfile=null, $errline=null, array $errcontext=null)
 Temporary error handler for parsing REST responses.
 
 toValue (SimpleXMLElement $value)
 Casts a SimpleXMLElement to its appropriate PHP value.
 
 __get ($name)
 Get Property Overload.
 
 __call ($method, $args)
 Cast properties to PHP values.
 
 __isset ($name)
 Isset Overload.
 
 getIterator ()
 Implement IteratorAggregate::getIterator()
 
 getStatus ()
 Get Request Status.
 
 isError ()
 
 isSuccess ()
 
 __toString ()
 toString overload
 

Protected Attributes

 $_sxml
 
 $_errstr
 

Constructor & Destructor Documentation

__construct (   $data)

Constructor.

Parameters
string$dataXML Result
Returns
void

Member Function Documentation

__call (   $method,
  $args 
)

Cast properties to PHP values.

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

Parameters
string$method
array$args
Returns
mixed
__get (   $name)

Get Property Overload.

Parameters
string$name
Returns
null|SimpleXMLElement|array Null if not found, SimpleXMLElement if only one value found, array of Zend_Rest_Client_Result objects otherwise
__isset (   $name)

Isset Overload.

Parameters
string$name
Returns
boolean
__toString ( )

toString overload

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

Returns
string
getIterator ( )

Implement IteratorAggregate::getIterator()

Returns
SimpleXMLIterator
getStatus ( )

Get Request Status.

Returns
boolean
handleXmlErrors (   $errno,
  $errstr,
  $errfile = null,
  $errline = null,
array  $errcontext = null 
)

Temporary error handler for parsing REST responses.

Parameters
int$errno
string$errstr
string$errfile
string$errline
array$errcontext
Returns
true
isError ( )
isSuccess ( )
toValue ( SimpleXMLElement  $value)

Casts a SimpleXMLElement to its appropriate PHP value.

Parameters
SimpleXMLElement$value
Returns
mixed

Member Data Documentation

$_errstr
protected
$_sxml
protected