mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-11278 Admin settings page completed, implementation of settings in the gradebook coming up next.
This commit is contained in:
parent
00374cc5f0
commit
53461661ae
3 changed files with 43 additions and 44 deletions
|
@ -1,13 +1,12 @@
|
|||
<?php // $Id$
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// //
|
||||
// NOTICE OF COPYRIGHT //
|
||||
// //
|
||||
// Moodle - Modular Object-Oriented Dynamic Learning Environment //
|
||||
// http://moodle.com //
|
||||
// http://moodle.org //
|
||||
// //
|
||||
// Copyright (C) 2001-2003 Martin Dougiamas http://dougiamas.com //
|
||||
// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com //
|
||||
// //
|
||||
// This program is free software; you can redistribute it and/or modify //
|
||||
// it under the terms of the GNU General Public License as published by //
|
||||
|
@ -32,46 +31,7 @@
|
|||
* @package moodlecore
|
||||
*/
|
||||
|
||||
// category aggregation types
|
||||
define('GRADE_AGGREGATE_MEAN', 0);
|
||||
define('GRADE_AGGREGATE_MEDIAN', 2);
|
||||
define('GRADE_AGGREGATE_MIN', 4);
|
||||
define('GRADE_AGGREGATE_MAX', 6);
|
||||
define('GRADE_AGGREGATE_MODE', 8);
|
||||
define('GRADE_AGGREGATE_WEIGHTED_MEAN', 10);
|
||||
define('GRADE_AGGREGATE_EXTRACREDIT_MEAN', 12);
|
||||
|
||||
// grade types
|
||||
define('GRADE_TYPE_NONE', 0);
|
||||
define('GRADE_TYPE_VALUE', 1);
|
||||
define('GRADE_TYPE_SCALE', 2);
|
||||
define('GRADE_TYPE_TEXT', 3);
|
||||
|
||||
// grade_update() return status
|
||||
define('GRADE_UPDATE_OK', 0);
|
||||
define('GRADE_UPDATE_FAILED', 1);
|
||||
define('GRADE_UPDATE_MULTIPLE', 2);
|
||||
define('GRADE_UPDATE_ITEM_DELETED', 3);
|
||||
define('GRADE_UPDATE_ITEM_LOCKED', 4);
|
||||
|
||||
// Grate teables history tracking actions
|
||||
define('GRADE_HISTORY_INSERT', 1);
|
||||
define('GRADE_HISTORY_UPDATE', 2);
|
||||
define('GRADE_HISTORY_DELETE', 3);
|
||||
|
||||
define('GRADE_REPORT_AGGREGATION_POSITION_LEFT', 0);
|
||||
define('GRADE_REPORT_AGGREGATION_POSITION_RIGHT', 1);
|
||||
define('GRADE_REPORT_AGGREGATION_VIEW_FULL', 0);
|
||||
define('GRADE_REPORT_AGGREGATION_VIEW_AGGREGATES_ONLY', 1);
|
||||
define('GRADE_REPORT_AGGREGATION_VIEW_GRADES_ONLY', 2);
|
||||
define('GRADE_REPORT_GRADE_DISPLAY_TYPE_REAL', 0);
|
||||
define('GRADE_REPORT_GRADE_DISPLAY_TYPE_PERCENTAGE', 1);
|
||||
define('GRADE_REPORT_GRADE_DISPLAY_TYPE_LETTER', 2);
|
||||
define('GRADE_REPORT_PREFERENCE_DEFAULT', 'default');
|
||||
define('GRADE_REPORT_PREFERENCE_INHERIT', 'inherit');
|
||||
define('GRADE_REPORT_PREFERENCE_UNUSED', -1);
|
||||
define('GRADE_REPORT_MEAN_ALL', 0);
|
||||
define('GRADE_REPORT_MEAN_GRADED', 1);
|
||||
require_once($CFG->libdir . '/grade/constants.php');
|
||||
|
||||
require_once($CFG->libdir . '/grade/grade_category.php');
|
||||
require_once($CFG->libdir . '/grade/grade_item.php');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue