|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| __construct ($data) | |
| handleXmlErrors ($errno, $errstr, $errfile=null, $errline=null, array $errcontext=null) | |
| toValue (SimpleXMLElement $value) | |
| __get ($name) | |
| __call ($method, $args) | |
| __isset ($name) | |
| getIterator () | |
| getStatus () | |
| isError () | |
| isSuccess () | |
| __toString () | |
Protected Attributes | |
| $_sxml | |
| $_errstr | |
Definition at line 30 of file Result.php.
| __construct | ( | $ | data | ) |
Constructor
| string | $data | XML Result |
Definition at line 48 of file Result.php.
| __call | ( | $ | method, |
| $ | args | ||
| ) |
Cast properties to PHP values
For arrays, loops through each element and casts to a value as well.
| string | $method | |
| array | $args |
Definition at line 126 of file Result.php.
| __get | ( | $ | name | ) |
Get Property Overload
| string | $name |
Definition at line 99 of file Result.php.
| __isset | ( | $ | name | ) |
| __toString | ( | ) |
toString overload
Be sure to only call this when the result is a single value!
Definition at line 222 of file Result.php.
| getIterator | ( | ) |
Implement IteratorAggregate::getIterator()
Definition at line 170 of file Result.php.
| getStatus | ( | ) |
| handleXmlErrors | ( | $ | errno, |
| $ | errstr, | ||
| $ | errfile = null, |
||
| $ | errline = null, |
||
| array $ | errcontext = null |
||
| ) |
Temporary error handler for parsing REST responses.
| int | $errno | |
| string | $errstr | |
| string | $errfile | |
| string | $errline | |
| array | $errcontext |
Definition at line 75 of file Result.php.
| isError | ( | ) |
Definition at line 195 of file Result.php.
| isSuccess | ( | ) |
Definition at line 205 of file Result.php.
| toValue | ( | SimpleXMLElement $ | value | ) |
Casts a SimpleXMLElement to its appropriate PHP value
| SimpleXMLElement | $value |
Definition at line 87 of file Result.php.
$_errstr [protected] |
Definition at line 40 of file Result.php.
$_sxml [protected] |
Definition at line 34 of file Result.php.