|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct () | |
| setEncoding ($encoding) | |
| getEncoding () | |
| returnResponse ($flag=null) | |
| handle ($request=false) | |
| setClass ($classname, $namespace= '', $argv=array()) | |
| fault ($exception=null, $code=null) | |
| getHeaders () | |
| addFunction ($function, $namespace= '') | |
| getFunctions () | |
| loadFunctions ($functions) | |
| setPersistence ($mode) | |
Static Public Member Functions | |
| static | lowerCase (&$value, &$key) |
Protected Member Functions | |
| _handleStruct ($struct) | |
| _structValue ($struct, DOMDocument $dom, DOMElement $parent) | |
| _handleScalar ($value) | |
| _callStaticMethod ($class, array $args) | |
| _callObjectMethod ($class, array $args) | |
Protected Attributes | |
| $_args = array() | |
| $_encoding = 'UTF-8' | |
| $_functions = array() | |
| $_headers = array() | |
| $_method | |
| $_reflection = null | |
| $_returnResponse = false | |
Static Protected Attributes | |
| static | $magicMethods |
Definition at line 45 of file Server.php.
| __construct | ( | ) |
Constructor
Definition at line 105 of file Server.php.
| _callObjectMethod | ( | $ | class, |
| array $ | args | ||
| ) | [protected] |
Call an instance method of an object
| string | $class | |
| array | $args |
| Zend_Rest_Server_Exception | For invalid class name |
Definition at line 592 of file Server.php.


| _callStaticMethod | ( | $ | class, |
| array $ | args | ||
| ) | [protected] |
Call a static class method and return the result
| string | $class | |
| array | $args |
Definition at line 574 of file Server.php.


| _handleScalar | ( | $ | value | ) | [protected] |
Handle a single value
| string | int | boolean | $value | Result value |
Definition at line 391 of file Server.php.


| _handleStruct | ( | $ | struct | ) | [protected] |
Handle an array or object result
| array | object | $struct | Result Value |
Definition at line 312 of file Server.php.


| _structValue | ( | $ | struct, |
| DOMDocument $ | dom, | ||
| DOMElement $ | parent | ||
| ) | [protected] |
Recursively iterate through a struct
Recursively iterates through an associative array or object's properties to build XML response.
| mixed | $struct | |
| DOMDocument | $dom | |
| DOMElement | $parent |
Definition at line 358 of file Server.php.

| addFunction | ( | $ | function, |
| $ | namespace = '' |
||
| ) |
Implement Zend_Server_Interface::addFunction()
| string | $function | Function Name |
| string | $namespace | Function namespace (unused) |
Implements Zend_Server_Interface.
Definition at line 521 of file Server.php.
| fault | ( | $ | exception = null, |
| $ | code = null |
||
| ) |
Implement Zend_Server_Interface::fault()
Creates XML error response, returning DOMDocument with response.
| string | Exception | $fault | Message |
| int | $code | Error Code |
Implements Zend_Server_Interface.
Definition at line 443 of file Server.php.


| getEncoding | ( | ) |
Get XML encoding
Definition at line 128 of file Server.php.

| getFunctions | ( | ) |
Implement Zend_Server_Interface::getFunctions()
Implements Zend_Server_Interface.
Definition at line 542 of file Server.php.
| getHeaders | ( | ) |
Retrieve any HTTP extra headers set by the server
Definition at line 510 of file Server.php.
| handle | ( | $ | request = false | ) |
Implement Zend_Server_Interface::handle()
| array | $request |
| Zend_Rest_Server_Exception |
Implements Zend_Server_Interface.
Definition at line 176 of file Server.php.

| loadFunctions | ( | $ | functions | ) |
Implement Zend_Server_Interface::loadFunctions()
| array | $functions |
Implements Zend_Server_Interface.
Definition at line 553 of file Server.php.
| static lowerCase | ( | &$ | value, |
| &$ | key | ||
| ) | [static] |
Lowercase a string
Lowercase's a string by reference
| string | $value | |
| string | $key |
Definition at line 142 of file Server.php.
| returnResponse | ( | $ | flag = null | ) |
Whether or not to return a response
If called without arguments, returns the value of the flag. If called with an argument, sets the flag.
When 'return response' is true, handle() will not send output, but will instead return the response from the dispatched function/method.
| boolean | $flag |
Definition at line 159 of file Server.php.

Implement Zend_Server_Interface::setClass()
| string | $classname | Class name |
| string | $namespace | Class namespace (unused) |
| array | $argv | An array of Constructor Arguments |
Implements Zend_Server_Interface.
Definition at line 298 of file Server.php.
| setEncoding | ( | $ | encoding | ) |
Set XML encoding
| string | $encoding |
Definition at line 117 of file Server.php.
| setPersistence | ( | $ | mode | ) |
Implement Zend_Server_Interface::setPersistence()
| int | $mode |
Implements Zend_Server_Interface.
Definition at line 563 of file Server.php.
$_args = array() [protected] |
Definition at line 51 of file Server.php.
$_encoding = 'UTF-8' [protected] |
Definition at line 56 of file Server.php.
$_functions = array() [protected] |
Definition at line 61 of file Server.php.
$_headers = array() [protected] |
Definition at line 66 of file Server.php.
$_method [protected] |
Definition at line 89 of file Server.php.
$_reflection = null [protected] |
Definition at line 94 of file Server.php.
$_returnResponse = false [protected] |
Definition at line 100 of file Server.php.
$magicMethods [static, protected] |
array( '__construct', '__destruct', '__get', '__set', '__call', '__sleep', '__wakeup', '__isset', '__unset', '__tostring', '__clone', '__set_state', )
Definition at line 71 of file Server.php.