See Release Notes
Long Term Support Release
1 <?php 2 // This file is part of Moodle - http://moodle.org/ 3 // 4 // Moodle is free software: you can redistribute it and/or modify 5 // it under the terms of the GNU General Public License as published by 6 // the Free Software Foundation, either version 3 of the License, or 7 // (at your option) any later version. 8 // 9 // Moodle is distributed in the hope that it will be useful, 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 // GNU General Public License for more details. 13 // 14 // You should have received a copy of the GNU General Public License 15 // along with Moodle. If not, see <http://www.gnu.org/licenses/>. 16 17 /** 18 * Global configuration settings for the quizaccess_seb plugin. 19 * 20 * @package quizaccess_seb 21 * @author Andrew Madden <andrewmadden@catalyst-au.net> 22 * @author Dmitrii Metelkin <dmitriim@catalyst-au.net> 23 * @copyright 2019 Catalyst IT 24 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 25 */ 26 27 defined('MOODLE_INTERNAL') || die; 28 29 global $ADMIN; 30 31 if ($hassiteconfig) { 32 33 $settings->add(new admin_setting_heading( 34 'quizaccess_seb/supportedversions', 35 '', 36 $OUTPUT->notification(get_string('setting:supportedversions', 'quizaccess_seb'), 'warning'))); 37 38 $settings->add(new admin_setting_configcheckbox('quizaccess_seb/autoreconfigureseb', 39 get_string('setting:autoreconfigureseb', 'quizaccess_seb'), 40 get_string('setting:autoreconfigureseb_desc', 'quizaccess_seb'), 41 '1')); 42 43 $links = [ 44 'seb' => get_string('setting:showseblink', 'quizaccess_seb'), 45 'http' => get_string('setting:showhttplink', 'quizaccess_seb') 46 ]; 47 $settings->add(new admin_setting_configmulticheckbox('quizaccess_seb/showseblinks', 48 get_string('setting:showseblinks', 'quizaccess_seb'), 49 get_string('setting:showseblinks_desc', 'quizaccess_seb'), 50 $links, $links)); 51 52 $settings->add(new admin_setting_configtext('quizaccess_seb/downloadlink', 53 get_string('setting:downloadlink', 'quizaccess_seb'), 54 get_string('setting:downloadlink_desc', 'quizaccess_seb'), 55 'https://safeexambrowser.org/download_en.html', 56 PARAM_URL)); 57 58 $settings->add(new admin_setting_configcheckbox('quizaccess_seb/quizpasswordrequired', 59 get_string('setting:quizpasswordrequired', 'quizaccess_seb'), 60 get_string('setting:quizpasswordrequired_desc', 'quizaccess_seb'), 61 '0')); 62 63 $settings->add(new admin_setting_configcheckbox('quizaccess_seb/displayblocksbeforestart', 64 get_string('setting:displayblocksbeforestart', 'quizaccess_seb'), 65 get_string('setting:displayblocksbeforestart_desc', 'quizaccess_seb'), 66 '0')); 67 68 $settings->add(new admin_setting_configcheckbox('quizaccess_seb/displayblockswhenfinished', 69 get_string('setting:displayblockswhenfinished', 'quizaccess_seb'), 70 get_string('setting:displayblockswhenfinished_desc', 'quizaccess_seb'), 71 '1')); 72 } 73 74 if (has_capability('quizaccess/seb:managetemplates', context_system::instance())) { 75 $ADMIN->add('modsettingsquizcat', 76 new admin_externalpage( 77 'quizaccess_seb/template', 78 get_string('manage_templates', 'quizaccess_seb'), 79 new moodle_url('/mod/quiz/accessrule/seb/template.php'), 80 'quizaccess/seb:managetemplates' 81 ) 82 ); 83 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body