Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
|
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\output |
| |
namespace | tool_mfa\plugininfo |
| |
namespace | tool_mfa\privacy |
| |
Classes | |
class | tool_mfa\event\user_deleted_factor |
class | tool_mfa\event\user_failed_mfa |
class | tool_mfa\event\user_passed_mfa |
class | tool_mfa\event\user_revoked_factor |
class | tool_mfa\event\user_setup_factor |
class | tool_mfa\hook\after_user_passed_mfa |
class | tool_mfa\local\admin_setting_managemfa |
class | tool_mfa\local\factor\fallback |
interface | tool_mfa\local\factor\object_factor |
class | tool_mfa\local\factor\object_factor_base |
class | tool_mfa\local\form\global_form_manager |
class | tool_mfa\local\form\login_form |
class | tool_mfa\local\form\reset_factor |
class | tool_mfa\local\form\revoke_factor_form |
class | tool_mfa\local\form\setup_factor_form |
class | tool_mfa\local\form\verification_field |
class | tool_mfa\local\secret_manager |
class | tool_mfa\manager |
class | tool_mfa\output\renderer |
class | tool_mfa\plugininfo\factor |
class | tool_mfa\privacy\provider |
Privacy provider. More... | |
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_pluginfile (stdClass $course, stdClass $cm, context $context, string $filearea, array $args, bool $forcedownload, array $options=[]) | |
Serves any files for the guidance page. | |
Variables | |
$capabilities | |
global | tool_mfa::$CFG |
$plugin = 2023100400 | |
$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 = 2023100900 |
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_pluginfile | ( | stdClass | $course, |
stdClass | $cm, | ||
context | $context, | ||
string | $filearea, | ||
array | $args, | ||
bool | $forcedownload, | ||
array | $options = [] ) |
Serves any files for the guidance page.
stdClass | $course | |
stdClass | $cm | |
context | $context | |
string | $filearea | |
array | $args | |
bool | $forcedownload | |
array | $options |
bool |
$capabilities |