Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
|
This is the external API for this tool. More...
Static Public Member Functions | |
static | call_external_functions ($requests) |
Call multiple external functions and return all responses. | |
static | call_external_functions_parameters () |
Returns description of method parameters. | |
static | call_external_functions_returns () |
Returns description of method result value. | |
static | get_autologin_key ($privatetoken) |
Creates an auto-login key for the current user. | |
static | get_autologin_key_parameters () |
Returns description of get_autologin_key() parameters. | |
static | get_autologin_key_returns () |
Returns description of get_autologin_key() result value. | |
static | get_config ($section='') |
Returns a list of site settings, filtering by section. | |
static | get_config_parameters () |
Returns description of get_config() parameters. | |
static | get_config_returns () |
Returns description of get_config() result value. | |
static | get_content ($component, $method, $args=array()) |
Returns a piece of content to be displayed in the Mobile app, it usually returns a template, javascript and other structured data that will be used to render a view in the Mobile app. | |
static | get_content_parameters () |
Returns description of get_content() parameters. | |
static | get_content_returns () |
Returns description of get_content() result value. | |
static | get_plugins_supporting_mobile () |
Returns a list of Moodle plugins supporting the mobile app. | |
static | get_plugins_supporting_mobile_parameters () |
Returns description of get_plugins_supporting_mobile() parameters. | |
static | get_plugins_supporting_mobile_returns () |
Returns description of get_plugins_supporting_mobile() result value. | |
static | get_public_config () |
Returns a list of the site public settings, those not requiring authentication. | |
static | get_public_config_parameters () |
Returns description of get_public_config() parameters. | |
static | get_public_config_returns () |
Returns description of get_public_config() result value. | |
static | get_tokens_for_qr_login ($qrloginkey, $userid) |
Returns a WebService token (and private token) for QR login. | |
static | get_tokens_for_qr_login_parameters () |
Returns description of get_tokens_for_qr_login() parameters. | |
static | get_tokens_for_qr_login_returns () |
Returns description of get_tokens_for_qr_login() result value. | |
static | validate_subscription_key (string $key) |
Check if the given site subscription key is valid. | |
static | validate_subscription_key_parameters () |
Returns description of validate_subscription_key() parameters. | |
static | validate_subscription_key_returns () |
Returns description of validate_subscription_key() result value. | |
This is the external API for this tool.
|
static |
Call multiple external functions and return all responses.
array | $requests | List of requests. |
array | Responses. |
|
static |
Returns description of method parameters.
external_function_parameters |
|
static |
|
static |
Creates an auto-login key for the current user.
Is created only in https sites and is restricted by time and ip address.
Please note that it only works if the request comes from the Moodle mobile or desktop app.
string | $privatetoken | the user private token for validating the request |
array | with the settings and warnings |
|
static |
Returns description of get_autologin_key() parameters.
external_function_parameters |
|
static |
Returns description of get_autologin_key() result value.
core_external\external_description |
|
static |
Returns a list of site settings, filtering by section.
string | $section | settings section name |
array | with the settings and warnings |
|
static |
Returns description of get_config() parameters.
external_function_parameters |
|
static |
Returns description of get_config() result value.
core_external\external_description |
|
static |
Returns a piece of content to be displayed in the Mobile app, it usually returns a template, javascript and other structured data that will be used to render a view in the Mobile app.
Callbacks (placed in $component\output\mobile) that are called by this web service are responsible for doing the appropriate security checks to access the information to be returned.
string | $component | name of the component. |
string | $method | function method name in class $component\output\mobile. |
array | $args | optional arguments for the method. |
array | HTML, JavaScript and other required data and information to create a view in the app. |
coding_exception |
|
static |
Returns description of get_content() parameters.
external_function_parameters |
|
static |
|
static |
|
static |
Returns description of get_plugins_supporting_mobile() parameters.
external_function_parameters |
|
static |
Returns description of get_plugins_supporting_mobile() result value.
core_external\external_description |
|
static |
Returns a list of the site public settings, those not requiring authentication.
array | with the settings and warnings |
|
static |
Returns description of get_public_config() parameters.
external_function_parameters |
|
static |
Returns description of get_public_config() result value.
core_external\external_description |
|
static |
Returns a WebService token (and private token) for QR login.
string | $qrloginkey | the user key generated and embedded into the QR code for validating the request |
int | $userid | the user the key belongs to |
array | with the tokens and warnings |
|
static |
Returns description of get_tokens_for_qr_login() parameters.
external_function_parameters |
|
static |
Returns description of get_tokens_for_qr_login() result value.
core_external\external_description |
|
static |
Check if the given site subscription key is valid.
string | $key | subscriptiion temporary key |
array | with the settings and warnings |
|
static |
Returns description of validate_subscription_key() parameters.
external_function_parameters |
|
static |
Returns description of validate_subscription_key() result value.
core_external\external_description |