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


Public Member Functions | |
| __construct ($authmethod, $zend_class) | |
| run () | |
| exception_handler ($ex) | |
Static Public Member Functions | |
| static | cast_objects_to_array ($param) |
Protected Member Functions | |
| init_service_class () | |
| get_virtual_method_code ($function) | |
| get_phpdoc_type ($keydesc) | |
| generate_simple_struct_class (external_single_structure $structdesc) | |
| service_class_method_body ($function, $params) | |
| init_zend_server () | |
| parse_request () | |
| send_headers () | |
| send_error ($ex=null) | |
| session_cleanup ($exception=null) | |
Protected Attributes | |
| $zend_class | |
| $zend_server | |
| $service_class | |
Special abstraction of our srvices that allows interaction with stock Zend ws servers.
| __construct | ( | $ | authmethod, |
| $ | zend_class | ||
| ) |
| static cast_objects_to_array | ( | $ | param | ) | [static] |
| exception_handler | ( | $ | ex | ) |
| generate_simple_struct_class | ( | external_single_structure $ | structdesc | ) | [protected] |
Reimplemented in webservice_soap_server.
Definition at line 1147 of file lib.php.

| get_phpdoc_type | ( | $ | keydesc | ) | [protected] |
| get_virtual_method_code | ( | $ | function | ) | [protected] |
| init_service_class | ( | ) | [protected] |
Load virtual class needed for Zend api
Reimplemented in webservice_amf_server.
Definition at line 949 of file lib.php.


| init_zend_server | ( | ) | [protected] |
Set up zend service class
Reimplemented in webservice_amf_server, webservice_soap_server, and webservice_xmlrpc_server.
Definition at line 1207 of file lib.php.

| parse_request | ( | ) | [protected] |
This method parses the $_POST and $_GET superglobals and looks for the following information: 1/ user authentication - username+password or token (wsusername, wspassword and wstoken parameters)
Reimplemented in webservice_soap_server.
Definition at line 1218 of file lib.php.

| run | ( | ) |
Process request from client.
| bool | $simple | use simple authentication |
Implements webservice_server_interface.
Definition at line 899 of file lib.php.

| send_error | ( | $ | ex = null | ) | [protected] |
Send the error information to the WS client formatted as XML document.
| exception | $ex |
Reimplemented in webservice_soap_server.
Definition at line 1276 of file lib.php.


| send_headers | ( | ) | [protected] |
| service_class_method_body | ( | $ | function, |
| $ | params | ||
| ) | [protected] |
You can override this function in your child class to add extra code into the dynamically created service class. For example it is used in the amf server to cast types of parameters and to cast the return value to the types as specified in the return value description.
| stdClass | $function | |
| array | $params |
Reimplemented in webservice_amf_server.
Definition at line 1159 of file lib.php.

| session_cleanup | ( | $ | exception = null | ) | [protected] |