Validate Safe Exam Browser access keys.
- Source:
- Copyright:
- 2021 Catalyst IT
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Members
(static, constant) init
Initialize the process of fetching the keys.
Methods
(inner) isKeyEmpty(key) → {boolean}
Check if the key is not yet set.
Parameters:
Name | Type | Description |
---|---|---|
key |
string | config key or browser exam key. |
Returns:
- Type
- boolean
(inner) isQuizAccessValid(cmid) → {Promise}
Validate keys in Moodle backend.
Parameters:
Name | Type | Description |
---|---|---|
cmid |
init | Value of course module id of the quiz. |
Returns:
- Type
- Promise
(inner) reconfigureSafeExamBrowser(cmid)
Reload Safe Exam Browser with current quiz configuration.
Parameters:
Name | Type | Description |
---|---|---|
cmid |
init | Value of course module id of the quiz. |
(inner) safeExamBrowserKeysUpdated(cmid, autoreconfigure)
Once the keys are fetched, action checking access.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
cmid |
init | Value of course module id of the quiz. |
|
autoreconfigure |
boolean |
false
|
Value of Moodle setting: quizaccess_seb/autoreconfigureseb. |