. /** * Admin settings class for the quiz browser security option. * * @package mod_quiz * @copyright 2008 Tim Hunt * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); /** * Admin settings class for the quiz browser security option. * * Just so we can lazy-load the choices. * * @copyright 2011 The Open University * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class mod_quiz_admin_setting_browsersecurity extends admin_setting_configselect_with_advanced { public function load_choices() { global $CFG; if (is_array($this->choices)) { return true; } require_once($CFG->dirroot . '/mod/quiz/locallib.php'); $this->choices = quiz_access_manager::get_browser_security_choices(); return true; } }