Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/grade/report/grader/settings.php
Go to the documentation of this file.
00001 <?php
00002 
00003 // This file is part of Moodle - http://moodle.org/
00004 //
00005 // Moodle is free software: you can redistribute it and/or modify
00006 // it under the terms of the GNU General Public License as published by
00007 // the Free Software Foundation, either version 3 of the License, or
00008 // (at your option) any later version.
00009 //
00010 // Moodle is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 // GNU General Public License for more details.
00014 //
00015 // You should have received a copy of the GNU General Public License
00016 // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
00017 
00018 defined('MOODLE_INTERNAL') || die;
00019 
00020 if ($ADMIN->fulltree) {
00021 
00022     $strinherit             = get_string('inherit', 'grades');
00023     $strpercentage          = get_string('percentage', 'grades');
00024     $strreal                = get_string('real', 'grades');
00025     $strletter              = get_string('letter', 'grades');
00026 
00028     $settings->add(new admin_setting_configtext('grade_report_studentsperpage', get_string('studentsperpage', 'grades'),
00029                                             get_string('studentsperpage_help', 'grades'), 100));
00030 
00031     $settings->add(new admin_setting_configcheckbox('grade_report_quickgrading', get_string('quickgrading', 'grades'),
00032                                                 get_string('quickgrading_help', 'grades'), 1));
00033 
00034     $settings->add(new admin_setting_configcheckbox('grade_report_showquickfeedback', get_string('quickfeedback', 'grades'),
00035                                                 get_string('showquickfeedback_help', 'grades'), 0));
00036 
00037     $settings->add(new admin_setting_configcheckbox('grade_report_fixedstudents', get_string('fixedstudents', 'grades'),
00038                                                 get_string('fixedstudents_help', 'grades'), 0));
00039 
00040     $settings->add(new admin_setting_configselect('grade_report_meanselection', get_string('meanselection', 'grades'),
00041                                               get_string('meanselection_help', 'grades'), GRADE_REPORT_MEAN_GRADED,
00042                                               array(GRADE_REPORT_MEAN_ALL => get_string('meanall', 'grades'),
00043                                                     GRADE_REPORT_MEAN_GRADED => get_string('meangraded', 'grades'))));
00044 
00045     $settings->add(new admin_setting_configcheckbox('grade_report_enableajax', get_string('enableajax', 'grades'),
00046                                                 get_string('enableajax_help', 'grades'), 0));
00047 
00048     $settings->add(new admin_setting_configcheckbox('grade_report_showcalculations', get_string('showcalculations', 'grades'),
00049                                                 get_string('showcalculations_help', 'grades'), 0));
00050 
00051     $settings->add(new admin_setting_configcheckbox('grade_report_showeyecons', get_string('showeyecons', 'grades'),
00052                                                 get_string('showeyecons_help', 'grades'), 0));
00053 
00054     $settings->add(new admin_setting_configcheckbox('grade_report_showaverages', get_string('showaverages', 'grades'),
00055                                                 get_string('showaverages_help', 'grades'), 1));
00056 
00057     $settings->add(new admin_setting_configcheckbox('grade_report_showlocks', get_string('showlocks', 'grades'),
00058                                                 get_string('showlocks_help', 'grades'), 0));
00059 
00060     $settings->add(new admin_setting_configcheckbox('grade_report_showranges', get_string('showranges', 'grades'),
00061                                                 get_string('showranges_help', 'grades'), 0));
00062 
00063     $settings->add(new admin_setting_configcheckbox('grade_report_showanalysisicon', get_string('showanalysisicon', 'core_grades'),
00064                                                 get_string('showanalysisicon_desc', 'core_grades'), 1));
00065 
00066     $settings->add(new admin_setting_configcheckbox('grade_report_showuserimage', get_string('showuserimage', 'grades'),
00067                                                 get_string('showuserimage_help', 'grades'), 1));
00068 
00069     $settings->add(new admin_setting_configcheckbox('grade_report_showactivityicons', get_string('showactivityicons', 'grades'),
00070                                                 get_string('showactivityicons_help', 'grades'), 1));
00071 
00072     $settings->add(new admin_setting_configcheckbox('grade_report_shownumberofgrades', get_string('shownumberofgrades', 'grades'),
00073                                                 get_string('shownumberofgrades_help', 'grades'), 0));
00074 
00075     $settings->add(new admin_setting_configselect('grade_report_averagesdisplaytype', get_string('averagesdisplaytype', 'grades'),
00076                                               get_string('averagesdisplaytype_help', 'grades'), GRADE_REPORT_PREFERENCE_INHERIT,
00077                                               array(GRADE_REPORT_PREFERENCE_INHERIT => $strinherit,
00078                                                     GRADE_DISPLAY_TYPE_REAL => $strreal,
00079                                                     GRADE_DISPLAY_TYPE_PERCENTAGE => $strpercentage,
00080                                                     GRADE_DISPLAY_TYPE_LETTER => $strletter)));
00081 
00082     $settings->add(new admin_setting_configselect('grade_report_rangesdisplaytype', get_string('rangesdisplaytype', 'grades'),
00083                                               get_string('rangesdisplaytype_help', 'grades'), GRADE_REPORT_PREFERENCE_INHERIT,
00084                                               array(GRADE_REPORT_PREFERENCE_INHERIT => $strinherit,
00085                                                     GRADE_DISPLAY_TYPE_REAL => $strreal,
00086                                                     GRADE_DISPLAY_TYPE_PERCENTAGE => $strpercentage,
00087                                                     GRADE_DISPLAY_TYPE_LETTER => $strletter)));
00088 
00089     $settings->add(new admin_setting_configselect('grade_report_averagesdecimalpoints', get_string('averagesdecimalpoints', 'grades'),
00090                                               get_string('averagesdecimalpoints_help', 'grades'), GRADE_REPORT_PREFERENCE_INHERIT,
00091                                               array(GRADE_REPORT_PREFERENCE_INHERIT => $strinherit,
00092                                                      '0' => '0',
00093                                                      '1' => '1',
00094                                                      '2' => '2',
00095                                                      '3' => '3',
00096                                                      '4' => '4',
00097                                                      '5' => '5')));
00098     $settings->add(new admin_setting_configselect('grade_report_rangesdecimalpoints', get_string('rangesdecimalpoints', 'grades'),
00099                                               get_string('rangesdecimalpoints_help', 'grades'), GRADE_REPORT_PREFERENCE_INHERIT,
00100                                               array(GRADE_REPORT_PREFERENCE_INHERIT => $strinherit,
00101                                                      '0' => '0',
00102                                                      '1' => '1',
00103                                                      '2' => '2',
00104                                                      '3' => '3',
00105                                                      '4' => '4',
00106                                                      '5' => '5')));
00107 
00108 }
 All Data Structures Namespaces Files Functions Variables Enumerations