Manage the access to the quiz.
More...
Manage the access to the quiz.
- Copyright
- 2020 Catalyst IT
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
quizaccess_seb\access_manager::__construct |
( |
quiz |
$quiz | ) |
|
The access_manager constructor.
- Parameters
-
quiz | $quiz | The details of the quiz. |
◆ can_bypass_seb()
quizaccess_seb\access_manager::can_bypass_seb |
( |
| ) |
|
Check if user has any capability to bypass the Safe Exam Browser requirement.
- Return values
-
bool | True if user can bypass check. |
◆ get_quiz()
quizaccess_seb\access_manager::get_quiz |
( |
| ) |
|
Getter for the quiz object.
- Return values
-
◆ get_received_browser_exam_key()
quizaccess_seb\access_manager::get_received_browser_exam_key |
( |
| ) |
|
Returns the Browser Exam Key hash.
- Return values
-
◆ get_received_config_key()
quizaccess_seb\access_manager::get_received_config_key |
( |
| ) |
|
Returns Safe Exam Browser Config Key hash.
- Return values
-
◆ get_seb_use_type()
quizaccess_seb\access_manager::get_seb_use_type |
( |
| ) |
|
Get type of SEB usage for the quiz.
- Return values
-
◆ get_valid_config_key()
quizaccess_seb\access_manager::get_valid_config_key |
( |
| ) |
|
Return expected SEB config key.
- Return values
-
◆ is_using_seb()
quizaccess_seb\access_manager::is_using_seb |
( |
| ) |
|
Check if using Safe Exam Browser.
- Return values
-
◆ seb_required()
quizaccess_seb\access_manager::seb_required |
( |
| ) |
|
Check if Safe Exam Browser is required to access quiz.
If quizsettings do not exist, then there is no requirement for using SEB.
- Return values
-
◆ should_validate_basic_header()
quizaccess_seb\access_manager::should_validate_basic_header |
( |
| ) |
|
Should validate basic header?
- Return values
-
◆ should_validate_browser_exam_key()
quizaccess_seb\access_manager::should_validate_browser_exam_key |
( |
| ) |
|
Should validate browser exam key?
- Return values
-
◆ should_validate_config_key()
quizaccess_seb\access_manager::should_validate_config_key |
( |
| ) |
|
Should validate SEB config key?
- Return values
-
◆ validate_basic_header()
quizaccess_seb\access_manager::validate_basic_header |
( |
| ) |
|
This is the basic check for the Safe Exam Browser previously used in the quizaccess_safebrowser plugin that managed basic Moodle interactions with SEB.
- Return values
-
◆ validate_browser_exam_keys()
quizaccess_seb\access_manager::validate_browser_exam_keys |
( |
| ) |
|
Check if the browser exam key hash in header matches one of the listed browser exam keys from quiz settings.
- Return values
-
bool | True if header key matches one of the saved keys. |
◆ validate_config_key()
quizaccess_seb\access_manager::validate_config_key |
( |
| ) |
|
Check if the config key hash in header matches quiz settings.
- Return values
-
bool | True if header key matches saved key. |
The documentation for this class was generated from the following file: