(no description)
File Size: | 271 lines (10 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
admin_setting_managemfa:: (7 methods):
__construct()
get_setting()
write_setting()
output_html()
define_manage_mfa_table()
define_factor_combinations_table()
get_factor_combinations()
Class: admin_setting_managemfa - X-Ref
Admin setting for MFA.__construct() X-Ref |
Calls parent::__construct with specific arguments |
get_setting() X-Ref |
Always returns true return: bool |
write_setting($data) X-Ref |
Always returns '' and doesn't write anything param: mixed $data return: string Always returns '' |
output_html($data, $query='') X-Ref |
Returns XHTML to display Manage MFA admin page. param: mixed $data Unused param: string $query return: string highlight |
define_manage_mfa_table() X-Ref |
Defines main table with configurable factors. return: string HTML code |
define_factor_combinations_table() X-Ref |
Defines supplementary table that shows available combinations of factors enough for successful authentication. return: string HTML code |
get_factor_combinations($allfactors, $start = 0, $end = 0,$totalweight = 0, $combination = [], $result = []) X-Ref |
Recursive method to get all possible combinations of given factors. Output is filtered by combination total weight (should be greater than 100). param: array $allfactors initial array of factor objects param: int $start start position in initial array param: int $end end position in initial array param: int $totalweight total weight of combination param: array $combination combination candidate param: array $result array that includes combination total weight and subarray of factors combination return: array |