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


Public Member Functions | |
| __construct ($authmethod) | |
Protected Member Functions | |
| authenticate_user () | |
| authenticate_by_token ($tokentype) | |
Protected Attributes | |
| $wsname = null | |
| $username = null | |
| $password = null | |
| $userid = null | |
| $authmethod | |
| $token = null | |
| $restricted_context | |
| $restricted_serviceid = null | |
| __construct | ( | $ | authmethod | ) |
Contructor
| integer | $authmethod | authentication method one of WEBSERVICE_AUTHMETHOD_* |
Reimplemented in webservice_soap_server, webservice_xmlrpc_server, and webservice_amf_server.
| authenticate_by_token | ( | $ | tokentype | ) | [protected] |
| authenticate_user | ( | ) | [protected] |
Authenticate user using username+password or token. This function sets up $USER global. It is safe to use has_capability() after this. This method also verifies user is allowed to use this server.
Definition at line 731 of file lib.php.

