Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Trait for testing this plugin

Author: Mikhail Golenkov <golenkovm@gmail.com>
Author: Peter Burnett <peterburnett@catalyst-au.net>
Copyright: Catalyst IT
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 67 lines (2 kb)
Included or required: 3 times
Referenced: 0 times
Includes or requires: 1 file
 admin/tool/mfa/lib.php

Defines 2 functions


Functions that are not part of a class:

set_factor_state($factorname, $enabled = 0, $weight = 100)   X-Ref
Sets the state of the factor, in particular the weight and whether it is enabled

param: string $factorname
param: int $enabled
param: int $weight

set_factor_config($factor, $key, $value)   X-Ref
Sets config variable for given factor.

param: object $factor object of the factor class
param: string $key
param: mixed $value