Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
|
Namespaces | |
namespace | tool_mobile |
| |
namespace | tool_mobile\local\hooks\user |
| |
namespace | tool_mobile\output |
| |
namespace | tool_mobile\privacy |
| |
Classes | |
class | tool_mobile\api |
API exposed by tool_mobile, to be used mostly by external functions and the plugin settings. More... | |
class | tool_mobile\external |
This is the external API for this tool. More... | |
class | tool_mobile\hook_callbacks |
class | tool_mobile\local\hooks\user\after_user_passed_mfa |
class | tool_mobile\output\renderer |
Renderer class. More... | |
class | tool_mobile\output\subscription |
Subscription page. More... | |
class | tool_mobile\privacy\provider |
Privacy provider for tool_mobile. More... | |
Functions | |
tool_mobile_before_http_headers () | |
Callback to add headers before the HTTP headers are sent. | |
tool_mobile_before_standard_html_head () | |
Callback to add head elements. | |
tool_mobile_create_app_download_url () | |
Generate the app download url to promote moodle mobile. | |
tool_mobile_get_token ($userid) | |
Return the user mobile app WebService access token. | |
tool_mobile_myprofile_navigation (\core_user\output\myprofile\tree $tree, $user, $iscurrentuser) | |
User profile page callback. | |
tool_mobile_pre_processor_message_send ($procname, $data) | |
Callback to be able to change a message/notification data per processor. | |
tool_mobile_standard_footer_html () | |
Callback to add footer elements. | |
tool_mobile_user_has_token ($userid) | |
Checks if the given user has a mobile token (has used recently the app). | |
xmldb_tool_mobile_upgrade ($oldversion) | |
Upgrade the plugin. | |
Variables | |
$callbacks | |
$definitions | |
$functions | |
$plugin = 2023100400 | |
$plugin | component = 'tool_mobile' |
$plugin | dependencies |
$plugin | version = 2023100900 |
tool_mobile_before_standard_html_head | ( | ) |
tool_mobile_create_app_download_url | ( | ) |
Generate the app download url to promote moodle mobile.
moodle_url|void | App download moodle_url object or return if setuplink is not set. |
tool_mobile_get_token | ( | $userid | ) |
Return the user mobile app WebService access token.
int | $userid | the user to return the token from |
stdClass|false | the token or false if the token doesn't exists |
tool_mobile_myprofile_navigation | ( | \core_user\output\myprofile\tree | $tree, |
$user, | |||
$iscurrentuser ) |
User profile page callback.
Used add a section about the moodle mobile app.
core_user\output\myprofile\tree | $tree | My profile tree where the setting will be added. |
stdClass | $user | The user object. |
bool | $iscurrentuser | Is this the current user viewing |
void | Return if the mobile web services setting is disabled or if not the current user. |
tool_mobile_pre_processor_message_send | ( | $procname, | |
$data ) |
Callback to be able to change a message/notification data per processor.
str | $procname | processor name |
stdClass | $data | message or notification data |
tool_mobile_standard_footer_html | ( | ) |
tool_mobile_user_has_token | ( | $userid | ) |
Checks if the given user has a mobile token (has used recently the app).
int | $userid | the user to check |
bool | true if the user has a token, false otherwise. |
xmldb_tool_mobile_upgrade | ( | $oldversion | ) |
Upgrade the plugin.
int | $oldversion |
bool | always true |
$callbacks |
$definitions |
$plugin dependencies |