(no description)
File Size: | 256 lines (9 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
factor:: (9 methods):
has_input()
get_all_user_factors()
get_state()
set_state()
possible_states()
global_definition_after_data()
global_submit()
post_pass_state()
calculate_expiry_time()
has_input() X-Ref |
Token implementation. {@inheritDoc} |
get_all_user_factors(stdClass $user) X-Ref |
Token implementation. This factor is a singleton, return single instance. param: stdClass $user the user to check against. return: array |
get_state() X-Ref |
Token implementation. Checks whether the user has selected roles in any context. {@inheritDoc} |
set_state($state) X-Ref |
Token Implementation. We can't get_state like the parent here or it will recurse forever. param: string $state the state constant to set return: bool |
possible_states(stdClass $user) X-Ref |
Token implementation. param: stdClass $user return: array |
global_definition_after_data($mform) X-Ref |
Token implementation. Inject a checkbox into every auth form if needed. param: \MoodleQuickForm $mform Form to inject global elements into. return: void |
global_submit($data) X-Ref |
Token implementation. Store information about the token status. param: object $data Data from the form. return: void |
post_pass_state() X-Ref |
Token implementation. Pass hook to set the cookie for use in subsequent auths. {@inheritDoc} |
calculate_expiry_time($basetime = null) X-Ref |
Calculate the expiry time of the token, based on configuration. param: integer|null $basetime time to use for calcalations. return: array |