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


Public Member Functions | |
| run () | |
| exception_handler ($ex) | |
Protected Member Functions | |
| parse_request () | |
| send_response () | |
| send_error ($ex=null) | |
| session_cleanup ($exception=null) | |
| load_function_info () | |
| execute () | |
Protected Attributes | |
| $parameters = null | |
| $functionname = null | |
| $function = null | |
| $returns = null | |
Web Service server base class, this class handles both simple and token authentication.
| exception_handler | ( | $ | ex | ) |
| execute | ( | ) | [protected] |
| load_function_info | ( | ) | [protected] |
| parse_request | ( | ) | [abstract, protected] |
This method parses the request input, it needs to get: 1/ user authentication - username+password or token 2/ function name 3/ function parameters
Reimplemented in webservice_rest_server.

| run | ( | ) |
Process request from client.
Implements webservice_server_interface.
Definition at line 1342 of file lib.php.

| send_error | ( | $ | ex = null | ) | [abstract, protected] |
Send the error information to the WS client.
| exception | $ex |
Reimplemented in webservice_rest_server.

| send_response | ( | ) | [abstract, protected] |
Send the result of function call to the WS client.
Reimplemented in webservice_rest_server.

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