MDL-21695 Replaced grade/showranges.html
[moodle.git] / grade / report / grader / settings.php
CommitLineData
e060e33d 1<?php
8ad36f4c 2
e060e33d 3// This file is part of Moodle - http://moodle.org/
4//
5// Moodle is free software: you can redistribute it and/or modify
6// it under the terms of the GNU General Public License as published by
7// the Free Software Foundation, either version 3 of the License, or
8// (at your option) any later version.
9//
10// Moodle is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15// You should have received a copy of the GNU General Public License
16// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
284abb09 17
32b97bb2 18$strinherit = get_string('inherit', 'grades');
19$strpercentage = get_string('percentage', 'grades');
20$strreal = get_string('real', 'grades');
21$strletter = get_string('letter', 'grades');
28e2c556 22
23/// Add settings for this module to the $settings object (it's already defined)
56cef27d 24$settings->add(new admin_setting_configtext('grade_report_studentsperpage', get_string('studentsperpage', 'grades'),
9ecd4386 25 get_string('configstudentsperpage', 'grades'), 100));
56cef27d 26
27$settings->add(new admin_setting_configcheckbox('grade_report_quickgrading', get_string('quickgrading', 'grades'),
98462a90 28 get_string('quickgrading_help', 'grades'), 1));
56cef27d 29
2ca093fa 30$settings->add(new admin_setting_configcheckbox('grade_report_showquickfeedback', get_string('quickfeedback', 'grades'),
9b600fd2 31 get_string('showquickfeedback_help', 'grades'), 0));
56cef27d 32
203b7e2e 33$settings->add(new admin_setting_configcheckbox('grade_report_fixedstudents', get_string('fixedstudents', 'grades'),
34 get_string('configfixedstudents', 'grades'), 0));
35
02d1e2cf 36$settings->add(new admin_setting_configselect('grade_report_meanselection', get_string('meanselection', 'grades'),
ad01096c 37 get_string('meanselection_help', 'grades'), GRADE_REPORT_MEAN_GRADED,
c2efb501 38 array(GRADE_REPORT_MEAN_ALL => get_string('meanall', 'grades'),
39 GRADE_REPORT_MEAN_GRADED => get_string('meangraded', 'grades'))));
6e30bd44 40
b244b9b7 41$settings->add(new admin_setting_configcheckbox('grade_report_enableajax', get_string('enableajax', 'grades'),
b47566d9 42 get_string('enableajax_help', 'grades'), 0));
56cef27d 43
a69e7335 44$settings->add(new admin_setting_configcheckbox('grade_report_showcalculations', get_string('showcalculations', 'grades'),
82d38280 45 get_string('showcalculations_help', 'grades'), 0));
6e30bd44 46
82b4da86 47$settings->add(new admin_setting_configcheckbox('grade_report_showeyecons', get_string('showeyecons', 'grades'),
20c35d89 48 get_string('showeyecons_help', 'grades'), 0));
6e30bd44 49
36e53792 50$settings->add(new admin_setting_configcheckbox('grade_report_showaverages', get_string('showaverages', 'grades'),
f4d1f97d 51 get_string('showaverages_help', 'grades'), 1));
6e30bd44 52
82b4da86 53$settings->add(new admin_setting_configcheckbox('grade_report_showlocks', get_string('showlocks', 'grades'),
a78f1e29 54 get_string('showlocks_help', 'grades'), 0));
6e30bd44 55
61649211 56$settings->add(new admin_setting_configcheckbox('grade_report_showranges', get_string('showranges', 'grades'),
a7698208 57 get_string('showranges_help', 'grades'), 0));
6e30bd44 58
bb384a8e 59$settings->add(new admin_setting_configcheckbox('grade_report_showuserimage', get_string('showuserimage', 'grades'),
60 get_string('configshowuserimage', 'grades'), 1));
61
9d35e66e 62$settings->add(new admin_setting_configcheckbox('grade_report_showuseridnumber', get_string('showuseridnumber', 'grades'),
63 get_string('configshowuseridnumber', 'grades'), 0));
64
1815b45c 65$settings->add(new admin_setting_configcheckbox('grade_report_showactivityicons', get_string('showactivityicons', 'grades'),
c3af84eb 66 get_string('showactivityicons_help', 'grades'), 1));
1815b45c 67
098042ba 68$settings->add(new admin_setting_configcheckbox('grade_report_shownumberofgrades', get_string('shownumberofgrades', 'grades'),
69558ec3 69 get_string('shownumberofgrades_help', 'grades'), 0));
098042ba 70
56cef27d 71$settings->add(new admin_setting_configselect('grade_report_averagesdisplaytype', get_string('averagesdisplaytype', 'grades'),
775fa8c2 72 get_string('averagesdisplaytype_help', 'grades'), GRADE_REPORT_PREFERENCE_INHERIT,
e0724506 73 array(GRADE_REPORT_PREFERENCE_INHERIT => $strinherit,
3126103b 74 GRADE_DISPLAY_TYPE_REAL => $strreal,
1796708d 75 GRADE_DISPLAY_TYPE_PERCENTAGE => $strpercentage,
76 GRADE_DISPLAY_TYPE_LETTER => $strletter)));
56cef27d 77
78$settings->add(new admin_setting_configselect('grade_report_rangesdisplaytype', get_string('rangesdisplaytype', 'grades'),
39017135 79 get_string('rangesdisplaytype_help', 'grades'), GRADE_REPORT_PREFERENCE_INHERIT,
e0724506 80 array(GRADE_REPORT_PREFERENCE_INHERIT => $strinherit,
3126103b 81 GRADE_DISPLAY_TYPE_REAL => $strreal,
1796708d 82 GRADE_DISPLAY_TYPE_PERCENTAGE => $strpercentage,
83 GRADE_DISPLAY_TYPE_LETTER => $strletter)));
6e30bd44 84
e50ce569 85$settings->add(new admin_setting_configselect('grade_report_averagesdecimalpoints', get_string('averagesdecimalpoints', 'grades'),
92dc9e7f 86 get_string('averagesdecimalpoints_help', 'grades'), GRADE_REPORT_PREFERENCE_INHERIT,
e0724506 87 array(GRADE_REPORT_PREFERENCE_INHERIT => $strinherit,
e50ce569 88 '0' => '0',
89 '1' => '1',
90 '2' => '2',
91 '3' => '3',
92 '4' => '4',
93 '5' => '5')));
94$settings->add(new admin_setting_configselect('grade_report_rangesdecimalpoints', get_string('rangesdecimalpoints', 'grades'),
b339c45d 95 get_string('rangesdecimalpoints_help', 'grades'), GRADE_REPORT_PREFERENCE_INHERIT,
e0724506 96 array(GRADE_REPORT_PREFERENCE_INHERIT => $strinherit,
e50ce569 97 '0' => '0',
98 '1' => '1',
99 '2' => '2',
100 '3' => '3',
101 '4' => '4',
102 '5' => '5')));
103
6e1d5e04 104
6c3ef410 105