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


Definition at line 58 of file Server.php.
| __construct | ( | ) |
The server constructor
Definition at line 137 of file Server.php.

| _buildDispatchTable | ( | ) | [protected] |
(Re)Build the dispatch table
The dispatch table consists of a an array of method name => Zend_Server_Reflection_Function_Abstract pairs
Definition at line 822 of file Server.php.

| _checkAcl | ( | $ | object, |
| $ | function | ||
| ) | [protected] |
Check if the ACL allows accessing the function or method
| string | object | $object | Object or class being accessed |
| string | $function | Function or method being accessed |
Definition at line 234 of file Server.php.


| _dispatch | ( | $ | method, |
| $ | params = null, |
||
| $ | source = null |
||
| ) | [protected] |
Loads a remote class or method and executes the function and returns the result
| string | $method | Is the method to execute |
| mixed | $param | values for the method |
| Zend_Amf_Server_Exception |
Definition at line 296 of file Server.php.


| _errorMessage | ( | $ | objectEncoding, |
| $ | message, | ||
| $ | description, | ||
| $ | detail, | ||
| $ | code, | ||
| $ | line | ||
| ) | [protected] |
Create appropriate error message
| int | $objectEncoding | Current AMF encoding |
| string | $message | Message that was being processed when error happened |
| string | $description | Error description |
| mixed | $detail | Detailed data about the error |
| int | $code | Error code |
| int | $line | Error line |
Definition at line 422 of file Server.php.


| _handle | ( | Zend_Amf_Request $ | request | ) | [protected] |
Takes the deserialized AMF request and performs any operations.
should implement and SPL observer pattern for custom AMF headers
DescribeService support
| Zend_Amf_Request | $request |
| Zend_Amf_server_Exception|Exception |
Definition at line 483 of file Server.php.


| _handleAuth | ( | $ | userid, |
| $ | password | ||
| ) | [protected] |
Handle AMF authentication
| string | $userid | |
| string | $password |
Definition at line 451 of file Server.php.


| _loadCommandMessage | ( | Zend_Amf_Value_Messaging_CommandMessage $ | message | ) | [protected] |
Handles each of the 11 different command message types.
A command message is a flex.messaging.messages.CommandMessage
| Zend_Amf_Value_Messaging_CommandMessage | $message |
Definition at line 375 of file Server.php.


| addDirectory | ( | $ | dir | ) |
Creates an array of directories in which services can reside. TODO: add support for prefixes?
| string | $dir |
Definition at line 799 of file Server.php.

| addFunction | ( | $ | function, |
| $ | namespace = '' |
||
| ) |
Attach a function to the server
Additional arguments to pass to the function at dispatch may be passed; any arguments following the namespace will be aggregated and passed at dispatch time.
| string | array | $function | Valid callback |
| string | $namespace | Optional namespace prefix |
| Zend_Amf_Server_Exception |
Implements Zend_Server_Interface.
Definition at line 767 of file Server.php.

| fault | ( | $ | fault = null, |
| $ | code = 404 |
||
| ) |
Raise a server fault
Unimplemented
| string | Exception | $fault |
Implements Zend_Server_Interface.
Reimplemented in Moodle_Amf_Server.
Definition at line 867 of file Server.php.
| getAcl | ( | ) |
| getAuth | ( | ) |
Get authentication adapter
Definition at line 158 of file Server.php.
| getDirectory | ( | ) |
Returns an array of directories that can hold services.
Definition at line 809 of file Server.php.

| getFunctions | ( | ) |
Returns a list of registered methods
Returns an array of dispatchables (Zend_Server_Reflection_Function, _Method, and _Class items).
Implements Zend_Server_Interface.
Definition at line 879 of file Server.php.
| getLoader | ( | ) | [protected] |
Get PluginLoader for the Server
Definition at line 278 of file Server.php.

| getRequest | ( | ) |
Return currently registered request object
Definition at line 665 of file Server.php.


| getResponse | ( | ) |
get a reference to the Zend_Amf_response instance
Definition at line 702 of file Server.php.


| handle | ( | $ | request = null | ) |
Handle an AMF call from the gateway.
| null | Zend_Amf_Request | $request | Optional |
Implements Zend_Server_Interface.
Definition at line 607 of file Server.php.

| isProduction | ( | ) |
Whether or not the server is in production
Definition at line 201 of file Server.php.

| isSession | ( | ) |
Whether of not the server is using sessions
Definition at line 222 of file Server.php.

| listMethods | ( | ) |
List all available methods
Returns an array of method names.
Definition at line 929 of file Server.php.
| loadFunctions | ( | $ | definition | ) |
Load server definition
Unimplemented
| array | $definition |
Implements Zend_Server_Interface.
Definition at line 904 of file Server.php.
| setAcl | ( | Zend_Acl $ | acl | ) |
Set ACL adapter
| Zend_Acl | $acl |
Definition at line 169 of file Server.php.
| setAuth | ( | Zend_Amf_Auth_Abstract $ | auth | ) |
Set authentication adapter
| Zend_Amf_Auth_Abstract | $auth |
Definition at line 148 of file Server.php.
| setClass | ( | $ | class, |
| $ | namespace = '', |
||
| $ | argv = null |
||
| ) |
Attach a class or object to the server
Class may be either a class name or an instantiated object. Reflection is done on the class or object to determine the available public methods, and each is attached to the server as and available method. If a $namespace has been provided, that namespace is used to prefix AMF service call.
| string | object | $class | |
| string | $namespace | Optional |
| mixed | $arg | Optional arguments to pass to a method |
| Zend_Amf_Server_Exception | on invalid input |
Implements Zend_Server_Interface.
Definition at line 726 of file Server.php.


| setClassMap | ( | $ | asClass, |
| $ | phpClass | ||
| ) |
Map ActionScript classes to PHP classes
| string | $asClass | |
| string | $phpClass |
Definition at line 915 of file Server.php.

| setPersistence | ( | $ | mode | ) |
Set server persistence
Unimplemented
| mixed | $mode |
Implements Zend_Server_Interface.
Definition at line 892 of file Server.php.
| setProduction | ( | $ | flag | ) |
Set production flag
| bool | $flag |
Definition at line 190 of file Server.php.
| setRequest | ( | $ | request | ) |
Set request object
| string | Zend_Amf_Request | $request |
Definition at line 644 of file Server.php.

| setResponse | ( | $ | response | ) |
Public access method to private Zend_Amf_Server_Response reference
| string | Zend_Amf_Server_Response | $response |
Definition at line 681 of file Server.php.

| setSession | ( | $ | namespace = 'Zend_Amf' | ) |
| namespace | of all incoming sessions defaults to Zend_Amf |
Definition at line 210 of file Server.php.

$_acl [protected] |
Definition at line 133 of file Server.php.
$_auth [protected] |
Definition at line 127 of file Server.php.
$_classAllowed = array() [protected] |
Definition at line 73 of file Server.php.
$_loader [protected] |
Definition at line 79 of file Server.php.
$_methods = array() [protected] |
Definition at line 64 of file Server.php.
$_production = true [protected] |
Definition at line 84 of file Server.php.
$_request = null [protected] |
Definition at line 90 of file Server.php.
$_response [protected] |
Definition at line 96 of file Server.php.
$_sesionNamespace = 'zend_amf' [protected] |
Definition at line 114 of file Server.php.
$_session = false [protected] |
Definition at line 108 of file Server.php.
$_sessionName = 'PHPSESSID' [protected] |
Definition at line 120 of file Server.php.
$_table = array() [protected] |
Definition at line 102 of file Server.php.