|
Moodle PHP Documentation 4.5
Moodle 4.5.5+ (Build: 20250711) (ce34e8ff087)
|
Namespaces | |
| namespace | tool_mfa |
| | |
| namespace | tool_mfa\event |
| | |
| namespace | tool_mfa\hook |
| | |
| namespace | tool_mfa\local |
| | |
| namespace | tool_mfa\local\factor |
| | |
| namespace | tool_mfa\local\form |
| | |
| namespace | tool_mfa\local\hooks |
| | |
| namespace | tool_mfa\output |
| | |
| namespace | tool_mfa\plugininfo |
| | |
| namespace | tool_mfa\privacy |
| | |
Functions | |
| tool_mfa_after_config () | |
| Triggered as soon as practical on every moodle bootstrap after config has been loaded. | |
| tool_mfa_after_require_login ($courseorid=null, $autologinguest=null, $cm=null, $setwantsurltome=null, $preventredirect=null) | |
| Main hook. | |
| tool_mfa_bulk_user_actions () | |
| Any plugin typically an admin tool can add new bulk user actions. | |
| tool_mfa_extend_navigation_user_settings (navigation_node $navigation, stdClass $user, $usercontext, stdClass $course, $coursecontext) | |
| Extends navigation bar and injects MFA Preferences menu to user preferences. | |
| tool_mfa_output_fragment_factor_action_confirmation_form (array $args,) | |
| Fragment to confirm a factor action using the confirmation form. | |
| tool_mfa_pluginfile (stdClass|null $course, stdClass|null $cm, context $context, string $filearea, array $args, bool $forcedownload, array $options=[]) | |
| Serves any files for the guidance page. | |
Variables | |
| $callbacks | |
| $capabilities | |
| global | $CFG |
| global | tool_mfa::$CFG |
| $plugin = 2024100100 | |
| $renamedclasses | |
| $subplugins = (array) json_decode(file_get_contents($CFG->dirroot."/admin/tool/mfa/db/subplugins.json"))->plugintypes | |
| $plugin | component = 'tool_mfa' |
| $plugin | maturity = MATURITY_STABLE |
| $plugin | version = 2024100700 |
| tool_mfa_after_config | ( | ) |
Triggered as soon as practical on every moodle bootstrap after config has been loaded.
The $USER object is available at this point too.
| void |
| tool_mfa_after_require_login | ( | $courseorid = null, | |
| $autologinguest = null, | |||
| $cm = null, | |||
| $setwantsurltome = null, | |||
| $preventredirect = null ) |
Main hook.
e.g. Add permissions logic across a site or course
| mixed | $courseorid | |
| mixed | $autologinguest | |
| mixed | $cm | |
| mixed | $setwantsurltome | |
| mixed | $preventredirect |
| void |
| moodle_exception |
| tool_mfa_bulk_user_actions | ( | ) |
Any plugin typically an admin tool can add new bulk user actions.
| array |
| tool_mfa_extend_navigation_user_settings | ( | navigation_node | $navigation, |
| stdClass | $user, | ||
| $usercontext, | |||
| stdClass | $course, | ||
| $coursecontext ) |
Extends navigation bar and injects MFA Preferences menu to user preferences.
| navigation_node | $navigation | |
| stdClass | $user | |
| context_user | $usercontext | |
| stdClass | $course | |
| context_course | $coursecontext |
| mix | void or null |
| moodle_exception |
| tool_mfa_output_fragment_factor_action_confirmation_form | ( | array | $args | ) |
Fragment to confirm a factor action using the confirmation form.
| array | $args | Arguments to the form. |
| null|string | The rendered form. |
| tool_mfa_pluginfile | ( | stdClass|null | $course, |
| stdClass|null | $cm, | ||
| context | $context, | ||
| string | $filearea, | ||
| array | $args, | ||
| bool | $forcedownload, | ||
| array | $options = [] ) |
Serves any files for the guidance page.
| stdClass | null | $course | |
| stdClass | null | $cm | |
| context | $context | |
| string | $filearea | |
| array | $args | |
| bool | $forcedownload | |
| array | $options |
| bool |
| $callbacks |
| $capabilities |
| $renamedclasses |