~ubuntu-branches/ubuntu/jaunty/moodle/jaunty

« back to all changes in this revision

Viewing changes to lib/grade/constants.php

  • Committer: Bazaar Package Importer
  • Author(s): Jordan Mantha, Matt Oquist
  • Date: 2009-02-25 15:16:22 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20090225151622-0ekt1liwhv2obfza
Tags: 1.9.4.dfsg-0ubuntu1
* Merge with Debian git (Closes LP: #322961, #239481, #334611):
  - use Ubuntu's smarty lib directory for linking
  - use internal yui library 
  - add update-notifier support back in

[Matt Oquist]
  * renamed prerm script
  * significantly rewrote postinst and other maintainer scripts to improve
    user experience and package maintainability
    (Closes LP: #225662, #325450, #327843, #303078, #234609)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php // $Id: gradelib.php,v 1.107 2007/09/05 19:15:23 skodak Exp $
 
2
 
 
3
///////////////////////////////////////////////////////////////////////////
 
4
// NOTICE OF COPYRIGHT                                                   //
 
5
//                                                                       //
 
6
// Moodle - Modular Object-Oriented Dynamic Learning Environment         //
 
7
//          http://moodle.org                                            //
 
8
//                                                                       //
 
9
// Copyright (C) 1999 onwards  Martin Dougiamas  http://moodle.com       //
 
10
//                                                                       //
 
11
// This program is free software; you can redistribute it and/or modify  //
 
12
// it under the terms of the GNU General Public License as published by  //
 
13
// the Free Software Foundation; either version 2 of the License, or     //
 
14
// (at your option) any later version.                                   //
 
15
//                                                                       //
 
16
// This program is distributed in the hope that it will be useful,       //
 
17
// but WITHOUT ANY WARRANTY; without even the implied warranty of        //
 
18
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         //
 
19
// GNU General Public License for more details:                          //
 
20
//                                                                       //
 
21
//          http://www.gnu.org/copyleft/gpl.html                         //
 
22
//                                                                       //
 
23
///////////////////////////////////////////////////////////////////////////
 
24
 
 
25
 
 
26
/**
 
27
 * Definitions of constants for gradebook
 
28
 *
 
29
 * @author Moodle HQ developers
 
30
 * @version  $Id: gradelib.php,v 1.107 2007/09/05 19:15:23 skodak Exp $
 
31
 * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
 
32
 * @package moodlecore
 
33
 */
 
34
 
 
35
// category aggregation types
 
36
define('GRADE_AGGREGATE_MEAN', 0);
 
37
define('GRADE_AGGREGATE_MEDIAN', 2);
 
38
define('GRADE_AGGREGATE_MIN', 4);
 
39
define('GRADE_AGGREGATE_MAX', 6);
 
40
define('GRADE_AGGREGATE_MODE', 8);
 
41
define('GRADE_AGGREGATE_WEIGHTED_MEAN', 10);
 
42
define('GRADE_AGGREGATE_WEIGHTED_MEAN2', 11);
 
43
define('GRADE_AGGREGATE_EXTRACREDIT_MEAN', 12);
 
44
define('GRADE_AGGREGATE_SUM', 13);
 
45
 
 
46
// grade types
 
47
define('GRADE_TYPE_NONE', 0);
 
48
define('GRADE_TYPE_VALUE', 1);
 
49
define('GRADE_TYPE_SCALE', 2);
 
50
define('GRADE_TYPE_TEXT', 3);
 
51
 
 
52
// grade_update() return status
 
53
define('GRADE_UPDATE_OK', 0);
 
54
define('GRADE_UPDATE_FAILED', 1);
 
55
define('GRADE_UPDATE_MULTIPLE', 2);
 
56
define('GRADE_UPDATE_ITEM_DELETED', 3);
 
57
define('GRADE_UPDATE_ITEM_LOCKED', 4);
 
58
 
 
59
// Grate teables history tracking actions
 
60
define('GRADE_HISTORY_INSERT', 1);
 
61
define('GRADE_HISTORY_UPDATE', 2);
 
62
define('GRADE_HISTORY_DELETE', 3);
 
63
 
 
64
// Display style constants
 
65
define('GRADE_DISPLAY_TYPE_DEFAULT', 0);
 
66
define('GRADE_DISPLAY_TYPE_REAL', 1);
 
67
define('GRADE_DISPLAY_TYPE_PERCENTAGE', 2);
 
68
define('GRADE_DISPLAY_TYPE_LETTER', 3);
 
69
define('GRADE_DISPLAY_TYPE_REAL_PERCENTAGE', 12);
 
70
define('GRADE_DISPLAY_TYPE_REAL_LETTER', 13);
 
71
define('GRADE_DISPLAY_TYPE_LETTER_REAL', 31);
 
72
define('GRADE_DISPLAY_TYPE_LETTER_PERCENTAGE', 32);
 
73
define('GRADE_DISPLAY_TYPE_PERCENTAGE_LETTER', 23);
 
74
define('GRADE_DISPLAY_TYPE_PERCENTAGE_REAL', 21);
 
75
 
 
76
define('GRADE_REPORT_AGGREGATION_POSITION_FIRST', 0);
 
77
define('GRADE_REPORT_AGGREGATION_POSITION_LAST', 1);
 
78
define('GRADE_REPORT_AGGREGATION_VIEW_FULL', 0);
 
79
define('GRADE_REPORT_AGGREGATION_VIEW_AGGREGATES_ONLY', 1);
 
80
define('GRADE_REPORT_AGGREGATION_VIEW_GRADES_ONLY', 2);
 
81
 
 
82
define('GRADE_REPORT_PREFERENCE_DEFAULT', 'default'); // means use setting from site preferences
 
83
define('GRADE_REPORT_PREFERENCE_INHERIT', 'inherit'); // means inherit from parent
 
84
define('GRADE_REPORT_PREFERENCE_UNUSED', -1);
 
85
 
 
86
define('GRADE_REPORT_MEAN_ALL', 0);
 
87
define('GRADE_REPORT_MEAN_GRADED', 1);
 
88
?>