| [ Index ] |
PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008] |
[Summary view] [Print] [Text view]
1 <?php // $Id: settings.php,v 1.34.2.6 2008/03/03 07:27:07 nicolasconnault Exp $ 2 3 /////////////////////////////////////////////////////////////////////////// 4 // // 5 // NOTICE OF COPYRIGHT // 6 // // 7 // Moodle - Modular Object-Oriented Dynamic Learning Environment // 8 // http://moodle.com // 9 // // 10 // Copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com // 11 // // 12 // This program is free software; you can redistribute it and/or modify // 13 // it under the terms of the GNU General Public License as published by // 14 // the Free Software Foundation; either version 2 of the License, or // 15 // (at your option) any later version. // 16 // // 17 // This program is distributed in the hope that it will be useful, // 18 // but WITHOUT ANY WARRANTY; without even the implied warranty of // 19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // 20 // GNU General Public License for more details: // 21 // // 22 // http://www.gnu.org/copyleft/gpl.html // 23 // // 24 /////////////////////////////////////////////////////////////////////////// 25 26 $strinherit = get_string('inherit', 'grades'); 27 $strpercentage = get_string('percentage', 'grades'); 28 $strreal = get_string('real', 'grades'); 29 $strletter = get_string('letter', 'grades'); 30 $strinherit = get_string('inherit', 'grades'); 31 32 /// Add settings for this module to the $settings object (it's already defined) 33 $settings->add(new admin_setting_configtext('grade_report_studentsperpage', get_string('studentsperpage', 'grades'), 34 get_string('configstudentsperpage', 'grades'), 100)); 35 36 $settings->add(new admin_setting_configcheckbox('grade_report_quickgrading', get_string('quickgrading', 'grades'), 37 get_string('configquickgrading', 'grades'), 1)); 38 39 $settings->add(new admin_setting_configcheckbox('grade_report_showquickfeedback', get_string('quickfeedback', 'grades'), 40 get_string('configshowquickfeedback', 'grades'), 0)); 41 42 $settings->add(new admin_setting_configselect('grade_report_aggregationview', get_string('aggregationview', 'grades'), 43 get_string('configaggregationview', 'grades'), GRADE_REPORT_AGGREGATION_VIEW_FULL, 44 array(GRADE_REPORT_AGGREGATION_VIEW_FULL => get_string('full', 'grades'), 45 GRADE_REPORT_AGGREGATION_VIEW_AGGREGATES_ONLY => get_string('aggregatesonly', 'grades'), 46 GRADE_REPORT_AGGREGATION_VIEW_GRADES_ONLY => get_string('gradesonly', 'grades')))); 47 48 $settings->add(new admin_setting_configselect('grade_report_meanselection', get_string('meanselection', 'grades'), 49 get_string('configmeanselection', 'grades'), GRADE_REPORT_MEAN_GRADED, 50 array(GRADE_REPORT_MEAN_ALL => get_string('meanall', 'grades'), 51 GRADE_REPORT_MEAN_GRADED => get_string('meangraded', 'grades')))); 52 53 // $settings->add(new admin_setting_configcheckbox('grade_report_enableajax', get_string('enableajax', 'grades'), 54 // get_string('configenableajax', 'grades'), 0)); 55 56 $settings->add(new admin_setting_configcheckbox('grade_report_showcalculations', get_string('showcalculations', 'grades'), 57 get_string('configshowcalculations', 'grades'), 0)); 58 59 $settings->add(new admin_setting_configcheckbox('grade_report_showeyecons', get_string('showeyecons', 'grades'), 60 get_string('configshoweyecons', 'grades'), 0)); 61 62 $settings->add(new admin_setting_configcheckbox('grade_report_showaverages', get_string('showaverages', 'grades'), 63 get_string('configshowaverages', 'grades'), 1)); 64 65 $settings->add(new admin_setting_configcheckbox('grade_report_showgroups', get_string('showgroups', 'grades'), 66 get_string('configshowgroups', 'grades'), 0)); 67 68 $settings->add(new admin_setting_configcheckbox('grade_report_showlocks', get_string('showlocks', 'grades'), 69 get_string('configshowlocks', 'grades'), 0)); 70 71 $settings->add(new admin_setting_configcheckbox('grade_report_showranges', get_string('showranges', 'grades'), 72 get_string('configshowranges', 'grades'), 0)); 73 74 $settings->add(new admin_setting_configcheckbox('grade_report_showuserimage', get_string('showuserimage', 'grades'), 75 get_string('configshowuserimage', 'grades'), 1)); 76 77 $settings->add(new admin_setting_configcheckbox('grade_report_showuseridnumber', get_string('showuseridnumber', 'grades'), 78 get_string('configshowuseridnumber', 'grades'), 0)); 79 80 $settings->add(new admin_setting_configcheckbox('grade_report_showactivityicons', get_string('showactivityicons', 'grades'), 81 get_string('configshowactivityicons', 'grades'), 1)); 82 83 $settings->add(new admin_setting_configcheckbox('grade_report_shownumberofgrades', get_string('shownumberofgrades', 'grades'), 84 get_string('configshownumberofgrades', 'grades'), 0)); 85 86 $settings->add(new admin_setting_configselect('grade_report_averagesdisplaytype', get_string('averagesdisplaytype', 'grades'), 87 get_string('configaveragesdisplaytype', 'grades'), GRADE_REPORT_PREFERENCE_INHERIT, 88 array(GRADE_REPORT_PREFERENCE_INHERIT => $strinherit, 89 GRADE_DISPLAY_TYPE_REAL => $strreal, 90 GRADE_DISPLAY_TYPE_PERCENTAGE => $strpercentage, 91 GRADE_DISPLAY_TYPE_LETTER => $strletter))); 92 93 $settings->add(new admin_setting_configselect('grade_report_rangesdisplaytype', get_string('rangesdisplaytype', 'grades'), 94 get_string('configrangesdisplaytype', 'grades'), GRADE_REPORT_PREFERENCE_INHERIT, 95 array(GRADE_REPORT_PREFERENCE_INHERIT => $strinherit, 96 GRADE_DISPLAY_TYPE_REAL => $strreal, 97 GRADE_DISPLAY_TYPE_PERCENTAGE => $strpercentage, 98 GRADE_DISPLAY_TYPE_LETTER => $strletter))); 99 100 $settings->add(new admin_setting_configselect('grade_report_averagesdecimalpoints', get_string('averagesdecimalpoints', 'grades'), 101 get_string('configaveragesdecimalpoints', 'grades'), GRADE_REPORT_PREFERENCE_INHERIT, 102 array(GRADE_REPORT_PREFERENCE_INHERIT => $strinherit, 103 '0' => '0', 104 '1' => '1', 105 '2' => '2', 106 '3' => '3', 107 '4' => '4', 108 '5' => '5'))); 109 $settings->add(new admin_setting_configselect('grade_report_rangesdecimalpoints', get_string('rangesdecimalpoints', 'grades'), 110 get_string('configrangesdecimalpoints', 'grades'), GRADE_REPORT_PREFERENCE_INHERIT, 111 array(GRADE_REPORT_PREFERENCE_INHERIT => $strinherit, 112 '0' => '0', 113 '1' => '1', 114 '2' => '2', 115 '3' => '3', 116 '4' => '4', 117 '5' => '5'))); 118 119 120 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Jan 14 11:33:29 2009 | Cross-referenced by PHPXref 0.7 |