Class Zend_Rest_Client_Result

Description

Implements interfaces:

  • IteratorAggregate (internal interface)

  • copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /Rest/Client/Result.php (line 30)


	
			
Variable Summary
 string $_errstr
 SimpleXMLElement $_sxml
Method Summary
 void __construct (string $data)
 SimpleXMLIterator getIterator ()
 boolean getStatus ()
 true handleXmlErrors (int $errno, string $errstr, [string $errfile = null], [string $errline = null], [ $errcontext = null])
 void isError ()
 void isSuccess ()
 mixed toValue ( $value)
 mixed __call (string $method, array $args)
 null|SimpleXMLElement|array __get (string $name)
 boolean __isset (string $name)
 string __toString ()
Variables
string $_errstr (line 40)

error information

  • access: protected
SimpleXMLElement $_sxml (line 34)
  • access: protected
Methods
Constructor __construct (line 48)

Constructor

  • access: public
void __construct (string $data)
  • string $data: XML Result
getIterator (line 170)

Implement IteratorAggregate::getIterator()

  • access: public
SimpleXMLIterator getIterator ()

Implementation of:
IteratorAggregate::getIterator
getStatus (line 180)

Get Request Status

  • access: public
boolean getStatus ()
handleXmlErrors (line 75)

Temporary error handler for parsing REST responses.

  • access: public
true handleXmlErrors (int $errno, string $errstr, [string $errfile = null], [string $errline = null], [ $errcontext = null])
  • int $errno
  • string $errstr
  • string $errfile
  • string $errline
  • array $errcontext
isError (line 195)
  • access: public
void isError ()
isSuccess (line 205)
  • access: public
void isSuccess ()
toValue (line 87)

Casts a SimpleXMLElement to its appropriate PHP value

  • access: public
mixed toValue ( $value)
  • SimpleXMLElement $value
__call (line 126)

Cast properties to PHP values

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

  • access: public
mixed __call (string $method, array $args)
  • string $method
  • array $args
__get (line 99)

Get Property Overload

  • return: Null if not found, SimpleXMLElement if only one value found, array of Zend_Rest_Client_Result objects otherwise
  • access: public
null|SimpleXMLElement|array __get (string $name)
  • string $name
__isset (line 150)

Isset Overload

  • access: public
boolean __isset (string $name)
  • string $name
__toString (line 222)

toString overload

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

  • access: public
string __toString ()

Documentation generated on Mon, 21 Jun 2010 15:42:31 -0400 by phpDocumentor 1.4.3