|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Data Structures | |
| class | restricted_context_exception |
| class | external_api |
| class | external_description |
| class | external_value |
| class | external_single_structure |
| class | external_multiple_structure |
| class | external_function_parameters |
Namespaces | |
| namespace | core |
Functions | |
| external_function_info ($function, $strictness=MUST_EXIST) | |
| external_generate_token ($tokentype, $serviceorid, $userid, $contextorid, $validuntil=0, $iprestriction='') | |
| external_create_service_token ($servicename, $context) | |
| external_create_service_token | ( | $ | servicename, |
| $ | context | ||
| ) |
Create and return a session linked token. Token to be used for html embedded client apps that want to communicate with the Moodle server through web services. The token is linked to the current session for the current page request. It is expected this will be called in the script generating the html page that is embedding the client app and that the returned token will be somehow passed into the client app being embedded in the page.
| string | $servicename | name of the web service. Service name as defined in db/services.php |
| int | $context | context within which the web service can operate. |
Definition at line 486 of file externallib.php.

| external_function_info | ( | $ | function, |
| $ | strictness = MUST_EXIST |
||
| ) |
Returns detailed function information
| string | object | $function | name of external function or record from external_function |
| int | $strictness | IGNORE_MISSING means compatible mode, false returned if record not found, debug message if more found; MUST_EXIST means throw exception if no record or multiple records found |
Definition at line 36 of file externallib.php.


| external_generate_token | ( | $ | tokentype, |
| $ | serviceorid, | ||
| $ | userid, | ||
| $ | contextorid, | ||
| $ | validuntil = 0, |
||
| $ | iprestriction = '' |
||
| ) |
Definition at line 433 of file externallib.php.

