[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Rest/Client/ -> Result.php (summary)

Zend Framework LICENSE

Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
Version: $Id$
File Size: 236 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Rest_Client_Result:: (11 methods):
  __construct()
  handleXmlErrors()
  toValue()
  __get()
  __call()
  __isset()
  getIterator()
  getStatus()
  isError()
  isSuccess()
  __toString()


Class: Zend_Rest_Client_Result  - X-Ref


__construct($data)   X-Ref
Constructor

param: string $data XML Result
return: void

handleXmlErrors($errno, $errstr, $errfile = null, $errline = null, array $errcontext = null)   X-Ref
Temporary error handler for parsing REST responses.

param: int    $errno
param: string $errstr
param: string $errfile
param: string $errline
param: array  $errcontext
return: true

toValue(SimpleXMLElement $value)   X-Ref
Casts a SimpleXMLElement to its appropriate PHP value

param: SimpleXMLElement $value
return: mixed

__get($name)   X-Ref
Get Property Overload

param: string $name
return: null|SimpleXMLElement|array Null if not found, SimpleXMLElement if only one value found, array of Zend_Rest_Client_Result objects otherwise

__call($method, $args)   X-Ref
Cast properties to PHP values

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

param: string $method
param: array $args
return: mixed

__isset($name)   X-Ref
Isset Overload

param: string $name
return: boolean

getIterator()   X-Ref
Implement IteratorAggregate::getIterator()

return: SimpleXMLIterator

getStatus()   X-Ref
Get Request Status

return: boolean

isError()   X-Ref
No description

isSuccess()   X-Ref
No description

__toString()   X-Ref
toString overload

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

return: string



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1