See Release Notes
Long Term Support Release
Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 401 and 402] [Versions 401 and 403]
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 * Defines site config settings for the grader report 19 * 20 * @package gradereport_grader 21 * @copyright 2007 Moodle Pty Ltd (http://moodle.com) 22 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 23 */ 24 25 defined('MOODLE_INTERNAL') || die; 26 27 if ($ADMIN->fulltree) { 28 29 $strinherit = get_string('inherit', 'grades'); 30 $strpercentage = get_string('percentage', 'grades'); 31 $strreal = get_string('real', 'grades'); 32 $strletter = get_string('letter', 'grades'); 33 34 /// Add settings for this module to the $settings object (it's already defined) 35 $settings->add(new admin_setting_configtext('grade_report_studentsperpage', get_string('studentsperpage', 'grades'), 36 get_string('studentsperpage_help', 'grades'), 100, PARAM_INT)); 37 38 $settings->add(new admin_setting_configcheckbox('grade_report_showonlyactiveenrol', get_string('showonlyactiveenrol', 'grades'), 39 get_string('showonlyactiveenrol_help', 'grades'), 1)); 40 41 $settings->add(new admin_setting_configcheckbox('grade_report_quickgrading', get_string('quickgrading', 'grades'), 42 get_string('quickgrading_help', 'grades'), 1)); 43 44 $settings->add(new admin_setting_configcheckbox('grade_report_showquickfeedback', get_string('quickfeedback', 'grades'), 45 get_string('showquickfeedback_help', 'grades'), 0)); 46 47 $settings->add(new admin_setting_configselect('grade_report_meanselection', get_string('meanselection', 'grades'), 48 get_string('meanselection_help', 'grades'), GRADE_REPORT_MEAN_GRADED, 49 array(GRADE_REPORT_MEAN_ALL => get_string('meanall', 'grades'), 50 GRADE_REPORT_MEAN_GRADED => get_string('meangraded', 'grades')))); 51 52 $settings->add(new admin_setting_configcheckbox('grade_report_enableajax', get_string('enableajax', 'grades'), 53 get_string('enableajax_help', 'grades'), 0)); 54 55 $settings->add(new admin_setting_configcheckbox('grade_report_showcalculations', 56 get_string('showcalculations', 'grades'), 57 get_string('showcalculations_help', 'grades'), 1)); 58 59 $settings->add(new admin_setting_configcheckbox('grade_report_showeyecons', get_string('showeyecons', 'grades'), 60 get_string('showeyecons_help', 'grades'), 0)); 61 62 $settings->add(new admin_setting_configcheckbox('grade_report_showaverages', get_string('showaverages', 'grades'), 63 get_string('showaverages_help', 'grades'), 1)); 64 65 $settings->add(new admin_setting_configcheckbox('grade_report_showlocks', get_string('showlocks', 'grades'), 66 get_string('showlocks_help', 'grades'), 0)); 67 68 $settings->add(new admin_setting_configcheckbox('grade_report_showranges', get_string('showranges', 'grades'), 69 get_string('showranges_help', 'grades'), 0)); 70 71 $settings->add(new admin_setting_configcheckbox('grade_report_showanalysisicon', get_string('showanalysisicon', 'core_grades'), 72 get_string('showanalysisicon_desc', 'core_grades'), 1)); 73 74 $settings->add(new admin_setting_configcheckbox('grade_report_showuserimage', get_string('showuserimage', 'grades'), 75 get_string('showuserimage_help', 'grades'), 1)); 76 77 $settings->add(new admin_setting_configcheckbox('grade_report_showactivityicons', get_string('showactivityicons', 'grades'), 78 get_string('showactivityicons_help', 'grades'), 1)); 79 80 $settings->add(new admin_setting_configcheckbox('grade_report_shownumberofgrades', get_string('shownumberofgrades', 'grades'), 81 get_string('shownumberofgrades_help', 'grades'), 0)); 82 83 $settings->add(new admin_setting_configselect('grade_report_averagesdisplaytype', get_string('averagesdisplaytype', 'grades'), 84 get_string('averagesdisplaytype_help', 'grades'), GRADE_REPORT_PREFERENCE_INHERIT, 85 array(GRADE_REPORT_PREFERENCE_INHERIT => $strinherit, 86 GRADE_DISPLAY_TYPE_REAL => $strreal, 87 GRADE_DISPLAY_TYPE_PERCENTAGE => $strpercentage, 88 GRADE_DISPLAY_TYPE_LETTER => $strletter))); 89 90 $settings->add(new admin_setting_configselect('grade_report_rangesdisplaytype', get_string('rangesdisplaytype', 'grades'), 91 get_string('rangesdisplaytype_help', 'grades'), GRADE_REPORT_PREFERENCE_INHERIT, 92 array(GRADE_REPORT_PREFERENCE_INHERIT => $strinherit, 93 GRADE_DISPLAY_TYPE_REAL => $strreal, 94 GRADE_DISPLAY_TYPE_PERCENTAGE => $strpercentage, 95 GRADE_DISPLAY_TYPE_LETTER => $strletter))); 96 97 $settings->add(new admin_setting_configselect('grade_report_averagesdecimalpoints', get_string('averagesdecimalpoints', 'grades'), 98 get_string('averagesdecimalpoints_help', 'grades'), GRADE_REPORT_PREFERENCE_INHERIT, 99 array(GRADE_REPORT_PREFERENCE_INHERIT => $strinherit, 100 '0' => '0', 101 '1' => '1', 102 '2' => '2', 103 '3' => '3', 104 '4' => '4', 105 '5' => '5'))); 106 $settings->add(new admin_setting_configselect('grade_report_rangesdecimalpoints', get_string('rangesdecimalpoints', 'grades'), 107 get_string('rangesdecimalpoints_help', 'grades'), GRADE_REPORT_PREFERENCE_INHERIT, 108 array(GRADE_REPORT_PREFERENCE_INHERIT => $strinherit, 109 '0' => '0', 110 '1' => '1', 111 '2' => '2', 112 '3' => '3', 113 '4' => '4', 114 '5' => '5'))); 115 116 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body