[moodle] / moodle / lib / grade / grade_item.php Repository:

Log of /moodle/lib/grade/grade_item.php

Parent Directory Parent Directory


Links to HEAD: (view) (download) (annotate)
Sticky Tag:

Revision 1.187 - (view) (download) (annotate) - [select for diffs]
Wed Feb 3 10:31:46 2010 WST (6 weeks, 1 day ago) by andyjdavis
Branch: MAIN
CVS Tags: HEAD
Changes since 1.186: +12 -0 lines
Diff to previous 1.186
grader report MDL-21367 when an item is unhidden its category should unhide to

Revision 1.130.2.35 - (view) (download) (annotate) - [select for diffs]
Wed Feb 3 10:22:58 2010 WST (6 weeks, 1 day ago) by andyjdavis
Branch: MOODLE_19_STABLE
CVS Tags: MOODLE_19_MERGED, MOODLE_19_WEEKLY
Changes since 1.130.2.34: +14 -2 lines
Diff to previous 1.130.2.34 , to branch point 1.130 , to next main 1.187
grader report MDL-21367 when an item is unhidden its category should unhide to

Revision 1.186 - (view) (download) (annotate) - [select for diffs]
Mon Jan 11 15:35:40 2010 WST (2 months ago) by andyjdavis
Branch: MAIN
Changes since 1.185: +1 -32 lines
Diff to previous 1.185
grader report MDL-19704 Added ability to hide course and category totals without hiding anything else

Revision 1.185 - (view) (download) (annotate) - [select for diffs]
Sat Dec 26 07:31:59 2009 WST (2 months, 3 weeks ago) by mudrd8mz
Branch: MAIN
Changes since 1.184: +6 -2 lines
Diff to previous 1.184
MDL-21191 Fixing another regression in dependency calculation

This is not easy to spot as $params may just contain one more item than $sql
would expect. However, $sql and $params should be well paired.

Revision 1.184 - (view) (download) (annotate) - [select for diffs]
Sat Dec 26 01:18:52 2009 WST (2 months, 3 weeks ago) by mudrd8mz
Branch: MAIN
Changes since 1.183: +2 -3 lines
Diff to previous 1.183
MDL-21190 Re-fixing a regression in dependency calculation

Sorry for the last commit. This should be the proper way. The problem
was with the question mark within quotes - it was not considered as a
placeholder.

Revision 1.183 - (view) (download) (annotate) - [select for diffs]
Sat Dec 26 00:46:46 2009 WST (2 months, 3 weeks ago) by mudrd8mz
Branch: MAIN
Changes since 1.182: +1 -1 lines
Diff to previous 1.182
MDL-21190 Fixing a regression in dependency calculation

Revision 1.130.2.34 - (view) (download) (annotate) - [select for diffs]
Sat Dec 19 02:19:48 2009 WST (2 months, 4 weeks ago) by tjhunt
Branch: MOODLE_19_STABLE
Changes since 1.130.2.33: +2 -1 lines
Diff to previous 1.130.2.33 , to branch point 1.130
Grade item: MDL-21161 timemodified never gets set on calculated gradebook columns

Revision 1.182 - (view) (download) (annotate) - [select for diffs]
Sat Dec 19 02:19:46 2009 WST (2 months, 4 weeks ago) by tjhunt
Branch: MAIN
Changes since 1.181: +1 -0 lines
Diff to previous 1.181
Grade item: MDL-21161 timemodified never gets set on calculated gradebook columns

Revision 1.181 - (view) (download) (annotate) - [select for diffs]
Sun Nov 1 19:44:58 2009 WST (4 months, 2 weeks ago) by skodak
Branch: MAIN
Changes since 1.180: +1 -2 lines
Diff to previous 1.180
MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup

Revision 1.180 - (view) (download) (annotate) - [select for diffs]
Thu Sep 17 15:16:51 2009 WST (6 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.179: +8 -1 lines
Diff to previous 1.179
MDL-19407 Defaulting all grade items to non-extra-credit when moving to a SWM category, except if they originally come from a SWM category and were set as extra credit there.  Merged from MOODLE_19_STABLE

Revision 1.130.2.33 - (view) (download) (annotate) - [select for diffs]
Thu Sep 17 15:10:50 2009 WST (6 months ago) by nicolasconnault
Branch: MOODLE_19_STABLE
CVS Tags: MOODLE_196, MOODLE_197
Changes since 1.130.2.32: +8 -1 lines
Diff to previous 1.130.2.32 , to branch point 1.130
MDL-19407 Defaulting all grade items to non-extra-credit when moving to a SWM category, except if they originally come from a SWM category and were set as extra credit there.

Revision 1.179 - (view) (download) (annotate) - [select for diffs]
Thu Apr 23 03:40:22 2009 WST (10 months, 3 weeks ago) by skodak
Branch: MAIN
Changes since 1.178: +4 -4 lines
Diff to previous 1.178
MDL-18927 fixed performance regression

Revision 1.130.2.32 - (view) (download) (annotate) - [select for diffs]
Thu Apr 23 03:39:54 2009 WST (10 months, 3 weeks ago) by skodak
Branch: MOODLE_19_STABLE
CVS Tags: MOODLE_195
Changes since 1.130.2.31: +4 -4 lines
Diff to previous 1.130.2.31 , to branch point 1.130
MDL-18927 fixed performance regression

Revision 1.130.2.31 - (view) (download) (annotate) - [select for diffs]
Wed Apr 22 16:23:31 2009 WST (10 months, 3 weeks ago) by nicolasconnault
Branch: MOODLE_19_STABLE
Changes since 1.130.2.30: +68 -15 lines
Diff to previous 1.130.2.30 , to branch point 1.130
MDL-18083 MDL-12380 MDL-15680 MDL-16913
Combining grade item and category forms into one, implementing grades over 100%, and patches for correct aggregation.

Revision 1.178 - (view) (download) (annotate) - [select for diffs]
Thu Apr 16 15:16:44 2009 WST (11 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.177: +68 -14 lines
Diff to previous 1.177
MDL-18083 Committing gradebook improvements to head

Revision 1.177 - (view) (download) (annotate) - [select for diffs]
Mon Mar 23 17:35:06 2009 WST (11 months, 3 weeks ago) by nicolasconnault
Branch: MAIN
Changes since 1.176: +7 -1 lines
Diff to previous 1.176
MDL-18402 Merged from MOODLE_19_STABLE

Revision 1.130.2.30 - (view) (download) (annotate) - [select for diffs]
Mon Mar 23 17:33:53 2009 WST (11 months, 3 weeks ago) by nicolasconnault
Branch: MOODLE_19_STABLE
Changes since 1.130.2.29: +1 -6 lines
Diff to previous 1.130.2.29 , to branch point 1.130
MDL-18402 Reverting aggregationcoef default

Revision 1.130.2.29 - (view) (download) (annotate) - [select for diffs]
Fri Feb 27 22:05:58 2009 WST (12 months, 2 weeks ago) by nicolasconnault
Branch: MOODLE_19_STABLE
Changes since 1.130.2.28: +7 -2 lines
Diff to previous 1.130.2.28 , to branch point 1.130
MDL-18402 Setting aggregationcoef to 1 if left empty

Revision 1.176 - (view) (download) (annotate) - [select for diffs]
Sat Oct 25 01:53:15 2008 WST (16 months, 3 weeks ago) by skodak
Branch: MAIN
Changes since 1.175: +4 -4 lines
Diff to previous 1.175
MDL-16785 bogus grades inserted when formulas used - credit Michael Spall and Ann Adamcik; merged from MOODLE_19_STABLE

Revision 1.130.2.28 - (view) (download) (annotate) - [select for diffs]
Sat Oct 25 01:47:56 2008 WST (16 months, 3 weeks ago) by skodak
Branch: MOODLE_19_STABLE
CVS Tags: MOODLE_194
Changes since 1.130.2.27: +2 -2 lines
Diff to previous 1.130.2.27 , to branch point 1.130
MDL-16785 bogus grades inserted when formulas used - credit Michael Spall and Ann Adamcik

Revision 1.130.2.27 - (view) (download) (annotate) - [select for diffs]
Mon Oct 13 15:05:40 2008 WST (17 months ago) by nicolasconnault
Branch: MOODLE_19_STABLE
CVS Tags: MOODLE_193
Changes since 1.130.2.26: +43 -1 lines
Diff to previous 1.130.2.26 , to branch point 1.130
MDL-15680 Committing the small refactorings required for the implementation of the weights interface

Revision 1.175 - (view) (download) (annotate) - [select for diffs]
Fri Oct 10 15:18:20 2008 WST (17 months, 1 week ago) by nicolasconnault
Branch: MAIN
Changes since 1.174: +36 -1 lines
Diff to previous 1.174
MDL-15680 Added grade category aggregation settings and weights, plus correct handling of 3 types of weights.

Revision 1.174 - (view) (download) (annotate) - [select for diffs]
Sat May 31 01:43:00 2008 WST (21 months, 2 weeks ago) by skodak
Branch: MAIN
Changes since 1.173: +11 -6 lines
Diff to previous 1.173
MDL-14679 finished gradelib conversion

Revision 1.173 - (view) (download) (annotate) - [select for diffs]
Mon May 26 13:06:01 2008 WST (21 months, 3 weeks ago) by nicolasconnault
Branch: MAIN
Changes since 1.172: +54 -38 lines
Diff to previous 1.172
MDL-14967 More upgrades

Revision 1.172 - (view) (download) (annotate) - [select for diffs]
Fri May 23 22:52:50 2008 WST (21 months, 3 weeks ago) by nicolasconnault
Branch: MAIN
Changes since 1.171: +124 -120 lines
Diff to previous 1.171
MDL-14967 Upgraded gradebook code and unit tests. 4 failing tests in grade_item to fix.

Revision 1.171 - (view) (download) (annotate) - [select for diffs]
Tue May 20 10:53:47 2008 WST (21 months, 4 weeks ago) by dongsheng
Branch: MAIN
Changes since 1.170: +3 -3 lines
Diff to previous 1.170
"MDL-14129, fix print_error"

Revision 1.170 - (view) (download) (annotate) - [select for diffs]
Fri May 16 05:40:07 2008 WST (22 months ago) by skodak
Branch: MAIN
Changes since 1.169: +5 -3 lines
Diff to previous 1.169
MDL-14679 ok, here is the big patch with new dmllib and ddlib API, some code is already converted, XML db editor works; see tracker for details of regressions and TODOs

Revision 1.169 - (view) (download) (annotate) - [select for diffs]
Fri Apr 4 10:54:33 2008 WST (23 months, 2 weeks ago) by dongsheng
Branch: MAIN
Changes since 1.168: +3 -3 lines
Diff to previous 1.168
MDL-14129, remove all the other error() call

Revision 1.130.2.26 - (view) (download) (annotate) - [select for diffs]
Fri Mar 28 02:13:01 2008 WST (23 months, 3 weeks ago) by nicolasconnault
Branch: MOODLE_19_STABLE
CVS Tags: MOODLE_191, MOODLE_192
Changes since 1.130.2.25: +2 -2 lines
Diff to previous 1.130.2.25 , to branch point 1.130
MDL-14065 Fixed gradebook unit tests, including a bug fix in grade_item class.

Commented out buggy backuplib tests, and replaced E_ALL with DEBUG_DEVELOPER in dmllib tests

Backporting from HEAD

Revision 1.168 - (view) (download) (annotate) - [select for diffs]
Thu Mar 27 21:08:36 2008 WST (23 months, 3 weeks ago) by nicolasconnault
Branch: MAIN
Changes since 1.167: +2 -2 lines
Diff to previous 1.167
MDL-14065 Fixed gradebook unit tests, including a bug fix in grade_item class

Revision 1.167 - (view) (download) (annotate) - [select for diffs]
Thu Mar 20 07:39:19 2008 WST (23 months, 4 weeks ago) by skodak
Branch: MAIN
Changes since 1.166: +40 -19 lines
Diff to previous 1.166
MDL-13899 improved submission and grading date hack; merged from MOODLE_19_STABLE

Revision 1.130.2.25 - (view) (download) (annotate) - [select for diffs]
Thu Mar 20 07:38:09 2008 WST (23 months, 4 weeks ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.130.2.24: +40 -19 lines
Diff to previous 1.130.2.24 , to branch point 1.130
MDL-13899 improved submission and grading date hack

Revision 1.166 - (view) (download) (annotate) - [select for diffs]
Wed Mar 19 08:21:24 2008 WST (2 years ago) by skodak
Branch: MAIN
Changes since 1.165: +3 -3 lines
Diff to previous 1.165
MDL-13899 feedback itself is a type of grading - date graded is now affected by feedback too; merged from MOODLE_19_STABLE

Revision 1.130.2.24 - (view) (download) (annotate) - [select for diffs]
Wed Mar 19 08:20:13 2008 WST (2 years ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.130.2.23: +3 -3 lines
Diff to previous 1.130.2.23 , to branch point 1.130
MDL-13899 feedback itself is a type of grading - date graded is now affected by feedback too

Revision 1.165 - (view) (download) (annotate) - [select for diffs]
Mon Mar 17 08:22:47 2008 WST (2 years ago) by skodak
Branch: MAIN
Changes since 1.164: +7 -3 lines
Diff to previous 1.164
MDL-13943 improved perf when sending multiple grades into grade_update(); merged from MOODLE_19_STABLE

Revision 1.130.2.23 - (view) (download) (annotate) - [select for diffs]
Mon Mar 17 08:21:35 2008 WST (2 years ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.130.2.22: +7 -3 lines
Diff to previous 1.130.2.22 , to branch point 1.130
MDL-13943 improved perf when sending multiple grades into grade_update()

Revision 1.164 - (view) (download) (annotate) - [select for diffs]
Sat Mar 15 23:54:44 2008 WST (2 years ago) by skodak
Branch: MAIN
Changes since 1.163: +12 -3 lines
Diff to previous 1.163
MDL-13920 assignment without grades now sets text grade type, fixed overriding of feedback and overriding logic in general on grade edit page; merged from MOODLE_19_STABLE

Revision 1.130.2.22 - (view) (download) (annotate) - [select for diffs]
Sat Mar 15 23:54:07 2008 WST (2 years ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.130.2.21: +12 -3 lines
Diff to previous 1.130.2.21 , to branch point 1.130
MDL-13920 assignment without grades now sets text grade type, fixed overriding of feedback and overriding logic in general on grade edit page

Revision 1.163 - (view) (download) (annotate) - [select for diffs]
Thu Mar 13 04:45:17 2008 WST (2 years ago) by skodak
Branch: MAIN
Changes since 1.162: +31 -21 lines
Diff to previous 1.162
MDL-13845 rewritten rounding in grades classes again - rounding done also before storage into db so that we can compare the values properly and skip db updates if possible + some more optimisations; merged from MOODLE_19_STABLE

Revision 1.130.2.21 - (view) (download) (annotate) - [select for diffs]
Thu Mar 13 04:44:39 2008 WST (2 years ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.130.2.20: +31 -21 lines
Diff to previous 1.130.2.20 , to branch point 1.130
MDL-13845 rewritten rounding in grades classes again - rounding done also before storage into db so that we can compare the values properly and skip db updates if possible + some more optimisations

Revision 1.162 - (view) (download) (annotate) - [select for diffs]
Mon Mar 10 18:35:42 2008 WST (2 years ago) by skodak
Branch: MAIN
Changes since 1.161: +5 -1 lines
Diff to previous 1.161
MDL-13863 detect missing idnumbers in formulas after restore; merged from MOODLE_19_STABLE

Revision 1.130.2.20 - (view) (download) (annotate) - [select for diffs]
Mon Mar 10 18:34:52 2008 WST (2 years ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.130.2.19: +5 -1 lines
Diff to previous 1.130.2.19 , to branch point 1.130
MDL-13863 detect missing idnumbers in formulas after restore

Revision 1.161 - (view) (download) (annotate) - [select for diffs]
Sun Mar 9 00:34:39 2008 WST (2 years ago) by skodak
Branch: MAIN
Changes since 1.160: +2 -3 lines
Diff to previous 1.160
MDL-13850 fix automatic creation of course grade item; merge dfrom MOODLE_19_STABLE

Revision 1.130.2.19 - (view) (download) (annotate) - [select for diffs]
Sun Mar 9 00:33:49 2008 WST (2 years ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.130.2.18: +2 -3 lines
Diff to previous 1.130.2.18 , to branch point 1.130
MDL-13850 fix automatic creation of course grade item

Revision 1.160 - (view) (download) (annotate) - [select for diffs]
Sat Mar 8 21:51:16 2008 WST (2 years ago) by skodak
Branch: MAIN
Changes since 1.159: +33 -42 lines
Diff to previous 1.159
MDL-13845 major performance problems when regrading course; merged from MOODLE_19_STABLE

Revision 1.130.2.18 - (view) (download) (annotate) - [select for diffs]
Sat Mar 8 21:49:49 2008 WST (2 years ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.130.2.17: +33 -42 lines
Diff to previous 1.130.2.17 , to branch point 1.130
MDL-13845 major performance problems when regrading course

Revision 1.159 - (view) (download) (annotate) - [select for diffs]
Mon Mar 3 20:03:54 2008 WST (2 years ago) by skodak
Branch: MAIN
Changes since 1.158: +10 -4 lines
Diff to previous 1.158
MDL-13730 site setting for aggregation of scales; merged from MOODLE_19_STABLE

Revision 1.130.2.17 - (view) (download) (annotate) - [select for diffs]
Mon Mar 3 20:02:19 2008 WST (2 years ago) by skodak
Branch: MOODLE_19_STABLE
CVS Tags: MOODLE_19
Changes since 1.130.2.16: +10 -4 lines
Diff to previous 1.130.2.16 , to branch point 1.130
MDL-13730 site setting for aggregation of scales

Revision 1.158 - (view) (download) (annotate) - [select for diffs]
Wed Feb 27 19:01:46 2008 WST (2 years ago) by skodak
Branch: MAIN
Changes since 1.157: +17 -1 lines
Diff to previous 1.157
MDL-13695 precreating grades in grade calculation if needed; merged from MOODLE_19_STABLE

Revision 1.130.2.16 - (view) (download) (annotate) - [select for diffs]
Wed Feb 27 19:00:47 2008 WST (2 years ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.130.2.15: +17 -1 lines
Diff to previous 1.130.2.15 , to branch point 1.130
MDL-13695 precreating grades in grade calculation if needed

Revision 1.157 - (view) (download) (annotate) - [select for diffs]
Mon Feb 18 01:01:24 2008 WST (2 years ago) by skodak
Branch: MAIN
Changes since 1.156: +25 -23 lines
Diff to previous 1.156
MDL-13269 fixed regrading of activity raw grades; merged from MOODLE_19_STABLE

Revision 1.130.2.15 - (view) (download) (annotate) - [select for diffs]
Mon Feb 18 00:59:44 2008 WST (2 years ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.130.2.14: +25 -23 lines
Diff to previous 1.130.2.14 , to branch point 1.130
MDL-13269 fixed regrading of activity raw grades

Revision 1.156 - (view) (download) (annotate) - [select for diffs]
Tue Feb 5 22:11:48 2008 WST (2 years, 1 month ago) by skodak
Branch: MAIN
Changes since 1.155: +2 -2 lines
Diff to previous 1.155
MDL-12518 fixed restore of grade calculations; merged from MOODLE_19_STABLE

Revision 1.130.2.14 - (view) (download) (annotate) - [select for diffs]
Tue Feb 5 22:11:09 2008 WST (2 years, 1 month ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.130.2.13: +2 -2 lines
Diff to previous 1.130.2.13 , to branch point 1.130
MDL-12518 fixed restore of grade calculations

Revision 1.155 - (view) (download) (annotate) - [select for diffs]
Sun Feb 3 06:34:08 2008 WST (2 years, 1 month ago) by skodak
Branch: MAIN
Changes since 1.154: +6 -1 lines
Diff to previous 1.154
MDL-12900 prevent fatal errors when incorrect scale id specified in grade_item; mergedfrom MOODLE_19_STABLE

Revision 1.130.2.13 - (view) (download) (annotate) - [select for diffs]
Sun Feb 3 06:33:20 2008 WST (2 years, 1 month ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.130.2.12: +6 -1 lines
Diff to previous 1.130.2.12 , to branch point 1.130
MDL-12900 prevent fatal errors when incorrect scale id specified in grade_item

Revision 1.154 - (view) (download) (annotate) - [select for diffs]
Fri Jan 25 04:46:27 2008 WST (2 years, 1 month ago) by nicolasconnault
Branch: MAIN
Changes since 1.153: +2 -2 lines
Diff to previous 1.153
Merging from 1.9

Revision 1.130.2.12 - (view) (download) (annotate) - [select for diffs]
Fri Jan 25 04:05:00 2008 WST (2 years, 1 month ago) by nicolasconnault
Branch: MOODLE_19_STABLE
Changes since 1.130.2.11: +3 -3 lines
Diff to previous 1.130.2.11 , to branch point 1.130
Backporting small changes from Head

Revision 1.153 - (view) (download) (annotate) - [select for diffs]
Thu Dec 13 23:19:24 2007 WST (2 years, 3 months ago) by tjhunt
Branch: MAIN
Changes since 1.152: +1 -13 lines
Diff to previous 1.152
MDL-12517 - Move checking code into the user interface layer where it belongs. Merged from MOODLE_19_STABLE.

Revision 1.130.2.11 - (view) (download) (annotate) - [select for diffs]
Thu Dec 13 23:17:29 2007 WST (2 years, 3 months ago) by tjhunt
Branch: MOODLE_19_STABLE
Changes since 1.130.2.10: +1 -13 lines
Diff to previous 1.130.2.10 , to branch point 1.130
MDL-12517 - Move checking code into the user interface layer where it belongs.

Revision 1.152 - (view) (download) (annotate) - [select for diffs]
Thu Dec 13 16:09:27 2007 WST (2 years, 3 months ago) by toyomoyo
Branch: MAIN
Changes since 1.151: +13 -1 lines
Diff to previous 1.151
MDL-12517, notify when grades entered into gradebook is out of bounds

Revision 1.130.2.10 - (view) (download) (annotate) - [select for diffs]
Thu Dec 13 16:08:52 2007 WST (2 years, 3 months ago) by toyomoyo
Branch: MOODLE_19_STABLE
Changes since 1.130.2.9: +13 -1 lines
Diff to previous 1.130.2.9 , to branch point 1.130
MDL-12517, notify when grades entered into gradebook is out of bounds

Revision 1.151 - (view) (download) (annotate) - [select for diffs]
Wed Nov 28 18:43:47 2007 WST (2 years, 3 months ago) by skodak
Branch: MAIN
Changes since 1.150: +12 -2 lines
Diff to previous 1.150
MDL-7028 gradebook related changes for course reset; merged from MOODLE_19_STABLE

Revision 1.130.2.9 - (view) (download) (annotate) - [select for diffs]
Wed Nov 28 18:43:04 2007 WST (2 years, 3 months ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.130.2.8: +12 -2 lines
Diff to previous 1.130.2.8 , to branch point 1.130
MDL-7028 gradebook related changes for course reset

Revision 1.150 - (view) (download) (annotate) - [select for diffs]
Thu Nov 22 14:42:47 2007 WST (2 years, 3 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.149: +65 -83 lines
Diff to previous 1.149
MDL-12182 Reverting to pre-upgrade in order to prepare a patch instead

Revision 1.149 - (view) (download) (annotate) - [select for diffs]
Thu Nov 15 15:44:26 2007 WST (2 years, 4 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.148: +11 -11 lines
Diff to previous 1.148
MDL-12182 Only testgradeitem.php isn't yet completed.

Revision 1.148 - (view) (download) (annotate) - [select for diffs]
Wed Nov 14 01:47:33 2007 WST (2 years, 4 months ago) by skodak
Branch: MAIN
Changes since 1.147: +20 -13 lines
Diff to previous 1.147
MDL-12154 used proper cast to float before !== comparison merged from MOODLE_19_STABLE

Revision 1.130.2.8 - (view) (download) (annotate) - [select for diffs]
Wed Nov 14 01:46:12 2007 WST (2 years, 4 months ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.130.2.7: +20 -13 lines
Diff to previous 1.130.2.7 , to branch point 1.130
MDL-12154 used proper cast to float before !== comparison

Revision 1.130.2.7 - (view) (download) (annotate) - [select for diffs]
Wed Nov 14 01:09:00 2007 WST (2 years, 4 months ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.130.2.6: +13 -16 lines
Diff to previous 1.130.2.6 , to branch point 1.130
MFC: MDL-12154 used proper cast to float before !== comparison

Revision 1.147 - (view) (download) (annotate) - [select for diffs]
Wed Nov 14 01:08:39 2007 WST (2 years, 4 months ago) by skodak
Branch: MAIN
Changes since 1.146: +14 -16 lines
Diff to previous 1.146
MDL-12154 used proper cast to float before !== comparison

Revision 1.146 - (view) (download) (annotate) - [select for diffs]
Tue Nov 13 22:44:28 2007 WST (2 years, 4 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.145: +3 -5 lines
Diff to previous 1.145
Restoring some of the static calls which were converted unnecessarily

Revision 1.145 - (view) (download) (annotate) - [select for diffs]
Tue Nov 13 19:31:09 2007 WST (2 years, 4 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.144: +25 -21 lines
Diff to previous 1.144
More fine-tuning of gradebook classes

Revision 1.144 - (view) (download) (annotate) - [select for diffs]
Tue Nov 13 18:08:44 2007 WST (2 years, 4 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.143: +5 -3 lines
Diff to previous 1.143
Managed to remove static calls from the core gradebook classes without removing support for such calls in gradebook interface code. I used a singleton pattern for this (get_instance in grade_object).

Revision 1.143 - (view) (download) (annotate) - [select for diffs]
Tue Nov 13 16:36:01 2007 WST (2 years, 4 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.142: +71 -58 lines
Diff to previous 1.142
Managed to remove static calls from the core gradebook classes without removing support for such calls in gradebook interface code. I used a singleton pattern for this (get_instance in grade_object).

Revision 1.130.2.6 - (view) (download) (annotate) - [select for diffs]
Thu Nov 1 17:50:32 2007 WST (2 years, 4 months ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.130.2.5: +39 -14 lines
Diff to previous 1.130.2.5 , to branch point 1.130
MFC: MDL-11966 implemented dategraded and datesubmitted, tweaked altering of grades depending in hidden grades
MDL-11974 improved gradebook CSS

Revision 1.142 - (view) (download) (annotate) - [select for diffs]
Thu Nov 1 17:25:10 2007 WST (2 years, 4 months ago) by skodak
Branch: MAIN
Changes since 1.141: +39 -14 lines
Diff to previous 1.141
MDL-11966 implemented dategraded and datesubmitted, tweaked altering of grades depending in hidden grades
MDL-11974 improved gradebook CSS

Revision 1.130.2.5 - (view) (download) (annotate) - [select for diffs]
Wed Oct 31 06:41:41 2007 WST (2 years, 4 months ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.130.2.4: +9 -1 lines
Diff to previous 1.130.2.4 , to branch point 1.130
MFC: MDL-11973 Improved showing of hidden items in ouuser and user report

Revision 1.141 - (view) (download) (annotate) - [select for diffs]
Wed Oct 31 06:25:50 2007 WST (2 years, 4 months ago) by skodak
Branch: MAIN
Changes since 1.140: +9 -1 lines
Diff to previous 1.140
MDL-11973 Improved showing of hidden items in ouuser and user report

Revision 1.140 - (view) (download) (annotate) - [select for diffs]
Tue Oct 30 20:55:49 2007 WST (2 years, 4 months ago) by skodak
Branch: MAIN
Changes since 1.139: +3 -11 lines
Diff to previous 1.139
fixing previous merge

Revision 1.130.2.4 - (view) (download) (annotate) - [select for diffs]
Tue Oct 30 20:54:25 2007 WST (2 years, 4 months ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.130.2.3: +33 -21 lines
Diff to previous 1.130.2.3 , to branch point 1.130
MFC: MDL-11957 improving and cleanup in grade overriding

Revision 1.139 - (view) (download) (annotate) - [select for diffs]
Tue Oct 30 20:40:51 2007 WST (2 years, 4 months ago) by skodak
Branch: MAIN
Changes since 1.138: +29 -17 lines
Diff to previous 1.138
MDL-11957 improving and cleanup in grade overriding

Revision 1.138 - (view) (download) (annotate) - [select for diffs]
Sat Oct 27 18:13:25 2007 WST (2 years, 4 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.137: +6 -6 lines
Diff to previous 1.137
Fixing unit test failures

Revision 1.137 - (view) (download) (annotate) - [select for diffs]
Fri Oct 26 10:30:04 2007 WST (2 years, 4 months ago) by toyomoyo
Branch: MAIN
Changes since 1.136: +7 -3 lines
Diff to previous 1.136
merged fix for MDL-11902, gradebook formula dereferencing problem

Revision 1.136 - (view) (download) (annotate) - [select for diffs]
Fri Oct 26 10:28:47 2007 WST (2 years, 4 months ago) by toyomoyo
Branch: MAIN
Changes since 1.135: +1748 -1744 lines
Diff to previous 1.135
proper copy and format, sorry

Revision 1.135 - (view) (download) (annotate) - [select for diffs]
Fri Oct 26 10:21:26 2007 WST (2 years, 4 months ago) by toyomoyo
Branch: MAIN
Changes since 1.134: +1744 -1740 lines
Diff to previous 1.134
fixing previous commit

Revision 1.134 - (view) (download) (annotate) - [select for diffs]
Fri Oct 26 10:15:58 2007 WST (2 years, 4 months ago) by toyomoyo
Branch: MAIN
Changes since 1.133: +1740 -1740 lines
Diff to previous 1.133
adding back

Revision 1.133
Fri Oct 26 10:15:00 2007 WST (2 years, 4 months ago) by toyomoyo
Branch: MAIN
Changes since 1.132: +1 -1 lines
FILE REMOVED
bad merge, removing first then adding again

Revision 1.130.2.3 - (view) (download) (annotate) - [select for diffs]
Fri Oct 26 10:06:21 2007 WST (2 years, 4 months ago) by toyomoyo
Branch: MOODLE_19_STABLE
Changes since 1.130.2.2: +7 -3 lines
Diff to previous 1.130.2.2 , to branch point 1.130
MDL-11902, gradebook formula dereferencing problem

Revision 1.130.2.2 - (view) (download) (annotate) - [select for diffs]
Sat Oct 20 23:11:48 2007 WST (2 years, 4 months ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.130.2.1: +2 -10 lines
Diff to previous 1.130.2.1 , to branch point 1.130
MFC: MDL-11278 improved forced category settings - refactoring + regrading forced + new setting to hide forced settings in UI

Revision 1.132 - (view) (download) (annotate) - [select for diffs]
Sat Oct 20 23:00:33 2007 WST (2 years, 4 months ago) by skodak
Branch: MAIN
Changes since 1.131: +2 -10 lines
Diff to previous 1.131
MDL-11278 improved forced category settings - refactoring + regrading forced + new setting to hide forced settings in UI

Revision 1.130.2.1 - (view) (download) (annotate) - [select for diffs]
Thu Oct 18 04:40:19 2007 WST (2 years, 5 months ago) by skodak
Branch: MOODLE_19_STABLE
Changes since 1.130: +31 -9 lines
Diff to previous 1.130
MFC: MDL-11718 aggregated grades which depend on hidden grades are now hidden too + cleanup in grader report

Revision 1.131 - (view) (download) (annotate) - [select for diffs]
Thu Oct 18 04:38:53 2007 WST (2 years, 5 months ago) by skodak
Branch: MAIN
Changes since 1.130: +31 -9 lines
Diff to previous 1.130
MDL-11718 aggregated grades which depend on hidden grades are now hidden too + cleanup in grader report

Revision 1.130 - (view) (download) (annotate) - [select for diffs]
Wed Oct 10 20:19:46 2007 WST (2 years, 5 months ago) by skodak
Branch: MAIN
CVS Tags: MOODLE_19_BETA
Branch point for: MOODLE_19_STABLE
Changes since 1.129: +29 -33 lines
Diff to previous 1.129
MDL-11432 eliminated majority of RecordCount uses, added several missing rs_close() - this should help improve perf on some platforms - Eloy says ;-)

Revision 1.129 - (view) (download) (annotate) - [select for diffs]
Wed Oct 10 13:29:28 2007 WST (2 years, 5 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.128: +2 -2 lines
Diff to previous 1.128
Updated copyright notice in header

Revision 1.128 - (view) (download) (annotate) - [select for diffs]
Tue Oct 9 07:09:11 2007 WST (2 years, 5 months ago) by skodak
Branch: MAIN
Changes since 1.127: +6 -29 lines
Diff to previous 1.127
MDL-11578 ,  MDL-11578 , MDL-11573 :
* renamed Preferences to "My report preferences"
* renamed Site defaults to "Report defaults"
* rename Change site defaults to "Change report defaults"
* reintroduced Inherit option to Grader preferences - Nicolas was right, it is not possible to implement preference overrides without it with our current get_pref inplementation
* new separate option in plugin selector "Course settings"
* moved displaytype, decimals and aggregation position to "Course settings"
* created new table grade_settings + related functions grade_get/set_preference()
* user report now uses grade_seq class instead of grade_item::fetch_all(); added preloading of grade items into grade_grade instances
* other minor bugfixing/cleanup/improvements

Please note that the Grader report preferences and its defaults must be resaved again - sorry.

Revision 1.127 - (view) (download) (annotate) - [select for diffs]
Mon Oct 8 02:15:59 2007 WST (2 years, 5 months ago) by skodak
Branch: MAIN
Changes since 1.126: +3 -3 lines
Diff to previous 1.126
MDL-11618 removed the inherit override from decimals and gradetype used on grader report preferences + several bug fixes + settings improvements

Revision 1.126 - (view) (download) (annotate) - [select for diffs]
Fri Oct 5 17:47:31 2007 WST (2 years, 5 months ago) by skodak
Branch: MAIN
Changes since 1.125: +3 -3 lines
Diff to previous 1.125
MDL-11576 grader report - if user can not see hidden grades they are treated as NULLs and column totals

Revision 1.125 - (view) (download) (annotate) - [select for diffs]
Thu Oct 4 16:16:13 2007 WST (2 years, 5 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.124: +5 -3 lines
Diff to previous 1.124
MDL-11576 Added the groupsql clause to has_hidden_grades

Revision 1.124 - (view) (download) (annotate) - [select for diffs]
Thu Oct 4 16:02:00 2007 WST (2 years, 5 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.123: +9 -1 lines
Diff to previous 1.123
MDL-11576 New grade_item method has_hidden_grades(), which returns a simple count of hidden grades for the item.

Revision 1.123 - (view) (download) (annotate) - [select for diffs]
Fri Sep 28 19:08:46 2007 WST (2 years, 5 months ago) by skodak
Branch: MAIN
Changes since 1.122: +4 -4 lines
Diff to previous 1.122
MDL-11495 removed GRADE_DECIMALS_DEFAULT null constant, is_null() used instead for tests, -1 used in menu options

Revision 1.122 - (view) (download) (annotate) - [select for diffs]
Fri Sep 28 15:55:51 2007 WST (2 years, 5 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.121: +30 -15 lines
Diff to previous 1.121
MDL-11480 Reviewed, tested, and pplied Petr's patch.

Revision 1.121 - (view) (download) (annotate) - [select for diffs]
Wed Sep 26 03:32:29 2007 WST (2 years, 5 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.120: +2 -2 lines
Diff to previous 1.120
Fixing OU report issues

Revision 1.120 - (view) (download) (annotate) - [select for diffs]
Tue Sep 25 22:40:50 2007 WST (2 years, 5 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.119: +30 -5 lines
Diff to previous 1.119
MDL-11433 Implemented grade_items.decimals instead of user preference in grader report.

Revision 1.119 - (view) (download) (annotate) - [select for diffs]
Sun Sep 23 23:57:36 2007 WST (2 years, 5 months ago) by skodak
Branch: MAIN
Changes since 1.118: +5 -1 lines
Diff to previous 1.118
MDL-11417 usermodified now stored properly in grade_grades table when update_(raw|final)_grade() used

Revision 1.118 - (view) (download) (annotate) - [select for diffs]
Sun Sep 23 05:39:28 2007 WST (2 years, 5 months ago) by skodak
Branch: MAIN
Changes since 1.117: +2 -5 lines
Diff to previous 1.117
overridden flag is now used to track the last time of modification - going to use it in assignments to print the correct time/date

Revision 1.117 - (view) (download) (annotate) - [select for diffs]
Sun Sep 23 02:46:51 2007 WST (2 years, 5 months ago) by skodak
Branch: MAIN
Changes since 1.116: +3 -7 lines
Diff to previous 1.116
MDL-11363 fixing defaults of new optional fields of grade classes - now properly applied when creating new instances too

Revision 1.116 - (view) (download) (annotate) - [select for diffs]
Sat Sep 22 19:40:10 2007 WST (2 years, 5 months ago) by skodak
Branch: MAIN
Changes since 1.115: +74 -40 lines
Diff to previous 1.115
MDL-11363 merged tables grade_grades with grade_grades_text - it is now possible to define fields as required and optional
finally fixed formula validation in calculation edit form

Revision 1.115 - (view) (download) (annotate) - [select for diffs]
Thu Sep 20 15:43:58 2007 WST (2 years, 5 months ago) by skodak
Branch: MAIN
Changes since 1.114: +14 -50 lines
Diff to previous 1.114
MDL-11357 removed _grade_updated() from activities and grade_item class

Revision 1.114 - (view) (download) (annotate) - [select for diffs]
Thu Sep 20 10:39:25 2007 WST (2 years, 5 months ago) by toyomoyo
Branch: MAIN
Changes since 1.113: +2 -2 lines
Diff to previous 1.113
MDL-11356, set display of grade items to database default (-1)

Revision 1.113 - (view) (download) (annotate) - [select for diffs]
Wed Sep 19 23:37:47 2007 WST (2 years, 5 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.112: +20 -1 lines
Diff to previous 1.112
MDL-11353 Completed the implementation. This included a new method in grade_item: get_displaytype(), since that value could be set to default, and we must then look up to course, then site values. And the get_letter() method in grade_grade has been modified to first check the grade_letters table. All works like a dream!

Revision 1.112 - (view) (download) (annotate) - [select for diffs]
Tue Sep 18 22:26:15 2007 WST (2 years, 5 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.111: +7 -1 lines
Diff to previous 1.111
MDL-11312 Added new grade_letters table, and new grade_items.display field.

Revision 1.111 - (view) (download) (annotate) - [select for diffs]
Sat Sep 15 01:21:30 2007 WST (2 years, 6 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.110: +14 -4 lines
Diff to previous 1.110
MDL-11278 Implementation is complete, but grade_categories records in DB are not affected by global settings. This way, when global settings are switched back to "Do not Force", the original category settings will be in place.

Revision 1.110 - (view) (download) (annotate) - [select for diffs]
Thu Sep 6 03:15:25 2007 WST (2 years, 6 months ago) by skodak
Branch: MAIN
Changes since 1.109: +28 -15 lines
Diff to previous 1.109
MDL-11130 added aggregation inside all subcategories + added graded/all aggregation option

Revision 1.109 - (view) (download) (annotate) - [select for diffs]
Sat Sep 1 06:42:08 2007 WST (2 years, 6 months ago) by skodak
Branch: MAIN
Changes since 1.108: +49 -58 lines
Diff to previous 1.108
MDL-11092 events are not used for changed raw grades anymore + minor cleanup in handling of raw grades (now used only for modules or other external plugins that produce grades)

Revision 1.108 - (view) (download) (annotate) - [select for diffs]
Tue Aug 14 14:05:07 2007 WST (2 years, 7 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.107: +10 -1 lines
Diff to previous 1.107
MDL-10829 Added get_grade_item() to the grade_item class, for cases when we don't whether an object is a category or a grade_item. The new interface for viewing and adding idnumbers (no editing) is 99% finished. Help strings still to do.

Revision 1.107 - (view) (download) (annotate) - [select for diffs]
Tue Aug 14 02:34:57 2007 WST (2 years, 7 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.106: +10 -1 lines
Diff to previous 1.106
MDL-10829 Added get_idnumber() for both category and item classes

Revision 1.106 - (view) (download) (annotate) - [select for diffs]
Fri Aug 10 05:37:28 2007 WST (2 years, 7 months ago) by skodak
Branch: MAIN
Changes since 1.105: +2 -2 lines
Diff to previous 1.105
MDL-10109 fixed aggregate outcomes depends_on() incorrect condition

Revision 1.105 - (view) (download) (annotate) - [select for diffs]
Fri Aug 10 00:19:08 2007 WST (2 years, 7 months ago) by skodak
Branch: MAIN
Changes since 1.104: +18 -22 lines
Diff to previous 1.104
improved hiding support in grade/

Revision 1.104 - (view) (download) (annotate) - [select for diffs]
Thu Aug 9 20:44:10 2007 WST (2 years, 7 months ago) by skodak
Branch: MAIN
Changes since 1.103: +1 -23 lines
Diff to previous 1.103
final locking API cleanup

Revision 1.103 - (view) (download) (annotate) - [select for diffs]
Thu Aug 9 17:03:19 2007 WST (2 years, 7 months ago) by skodak
Branch: MAIN
Changes since 1.102: +101 -100 lines
Diff to previous 1.102
various locking improvements and fixes, cron locktime support stilll missing

Revision 1.102 - (view) (download) (annotate) - [select for diffs]
Wed Aug 8 18:27:29 2007 WST (2 years, 7 months ago) by skodak
Branch: MAIN
Changes since 1.101: +2 -2 lines
Diff to previous 1.101
removing $grade_item param from grade_grde methods - not needed anymore, assignment to grade_item property used instead
fixed typo in grade refresh code

Revision 1.101 - (view) (download) (annotate) - [select for diffs]
Wed Aug 8 06:50:33 2007 WST (2 years, 7 months ago) by skodak
Branch: MAIN
Changes since 1.100: +12 -5 lines
Diff to previous 1.100
fixes for overriding of scales, outcomes and minor access control tweak

Revision 1.100 - (view) (download) (annotate) - [select for diffs]
Tue Aug 7 17:03:53 2007 WST (2 years, 7 months ago) by moodler
Branch: MAIN
Changes since 1.99: +5 -2 lines
Diff to previous 1.99
Fixed names of total columns

Revision 1.99 - (view) (download) (annotate) - [select for diffs]
Mon Aug 6 23:18:56 2007 WST (2 years, 7 months ago) by skodak
Branch: MAIN
Changes since 1.98: +39 -6 lines
Diff to previous 1.98
MDL-10223 module grades are now refreshed after unlocking

Revision 1.98 - (view) (download) (annotate) - [select for diffs]
Mon Aug 6 20:05:46 2007 WST (2 years, 7 months ago) by skodak
Branch: MAIN
Changes since 1.97: +21 -3 lines
Diff to previous 1.97
MDL-10109 optional aggregation of outcomes together with grades

Revision 1.97 - (view) (download) (annotate) - [select for diffs]
Sat Aug 4 03:25:24 2007 WST (2 years, 7 months ago) by skodak
Branch: MAIN
Changes since 1.96: +3 -6 lines
Diff to previous 1.96
MDL-10711 adding deleting of grade data when deleting module or course

Revision 1.96 - (view) (download) (annotate) - [select for diffs]
Fri Aug 3 16:41:20 2007 WST (2 years, 7 months ago) by skodak
Branch: MAIN
Changes since 1.95: +10 -3 lines
Diff to previous 1.95
improved aggregation - items without value (none + text) are not aggregated; faster regrading of categroies with no grades; lang typo fixed

Revision 1.95 - (view) (download) (annotate) - [select for diffs]
Fri Aug 3 06:38:53 2007 WST (2 years, 7 months ago) by skodak
Branch: MAIN
Changes since 1.94: +5 -3 lines
Diff to previous 1.94
MDL-10549 outcomes quickgrading in assignment
TODO: fix html and CSS

Revision 1.94 - (view) (download) (annotate) - [select for diffs]
Thu Aug 2 19:07:44 2007 WST (2 years, 7 months ago) by skodak
Branch: MAIN
Changes since 1.93: +3 -7 lines
Diff to previous 1.93
MDL-10105 some more idnumber fixes

Revision 1.93 - (view) (download) (annotate) - [select for diffs]
Thu Aug 2 05:48:13 2007 WST (2 years, 7 months ago) by skodak
Branch: MAIN
Changes since 1.92: +34 -13 lines
Diff to previous 1.92
MDL-10364 improved calculation form

Revision 1.92 - (view) (download) (annotate) - [select for diffs]
Wed Aug 1 20:40:41 2007 WST (2 years, 7 months ago) by skodak
Branch: MAIN
Changes since 1.91: +13 -3 lines
Diff to previous 1.91
outcome related fixes

Revision 1.91 - (view) (download) (annotate) - [select for diffs]
Wed Aug 1 06:56:31 2007 WST (2 years, 7 months ago) by skodak
Branch: MAIN
Changes since 1.90: +3 -3 lines
Diff to previous 1.90
MDL-10544  basic support for outcomes grading in modules - implemented in assignment popup grading (TODO: fix html and css there)

Revision 1.90 - (view) (download) (annotate) - [select for diffs]
Sun Jul 29 21:22:50 2007 WST (2 years, 7 months ago) by skodak
Branch: MAIN
Changes since 1.89: +1 -4 lines
Diff to previous 1.89
MDL-10636 reverting last commit

Revision 1.89 - (view) (download) (annotate) - [select for diffs]
Sat Jul 28 17:23:32 2007 WST (2 years, 7 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.88: +4 -1 lines
Diff to previous 1.88
MDL-10636
Attempting to fix a number of bugs related to backup/restore for gradebook

Revision 1.88 - (view) (download) (annotate) - [select for diffs]
Fri Jul 27 09:59:47 2007 WST (2 years, 7 months ago) by toyomoyo
Branch: MAIN
Changes since 1.87: +3 -2 lines
Diff to previous 1.87
MDL-10557, adding format_string prior to return of grade item name in order to support multilang filger

Revision 1.87 - (view) (download) (annotate) - [select for diffs]
Mon Jul 23 00:02:57 2007 WST (2 years, 7 months ago) by skodak
Branch: MAIN
Changes since 1.86: +3 -1 lines
Diff to previous 1.86
added proper rs_close($rs)

Revision 1.86 - (view) (download) (annotate) - [select for diffs]
Sat Jul 21 22:24:40 2007 WST (2 years, 7 months ago) by skodak
Branch: MAIN
Changes since 1.85: +20 -1 lines
Diff to previous 1.85
MDL-10563 item excluding implemented;
improved/fixed grade edit page;
some other improvements and cleanup

Revision 1.85 - (view) (download) (annotate) - [select for diffs]
Sat Jul 21 16:43:52 2007 WST (2 years, 7 months ago) by skodak
Branch: MAIN
Changes since 1.84: +12 -12 lines
Diff to previous 1.84
MDL-10364 improved internal formula format

Revision 1.84 - (view) (download) (annotate) - [select for diffs]
Fri Jul 20 01:36:38 2007 WST (2 years, 7 months ago) by skodak
Branch: MAIN
Changes since 1.83: +7 -2 lines
Diff to previous 1.83
MDL-10524 fixed aggregation for course item + other minor improvements

Revision 1.83 - (view) (download) (annotate) - [select for diffs]
Thu Jul 19 16:15:21 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.82: +16 -16 lines
Diff to previous 1.82
MDL-10525 renaming class grade_grades and grade_grades_text - singulars for all grade class names

Revision 1.82 - (view) (download) (annotate) - [select for diffs]
Thu Jul 19 03:29:33 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.81: +3 -2 lines
Diff to previous 1.81
MDL-9137 added new aggregation needed for upgrade - weighted + extra credit
minor item edit form cleanup
fixed minor bug in grader/lib.php

Revision 1.81 - (view) (download) (annotate) - [select for diffs]
Wed Jul 18 22:54:38 2007 WST (2 years, 8 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.80: +3 -4 lines
Diff to previous 1.80
MDL-10478 Added category preference aggregationview. This one is linked with the more global preferences and $CFG. However, a category-specific preference needs implementing: grade_report_categorystate{$catid}, which equals GRADE_CATEGORY_EXPANDED or GRADE_CATEGORY_CONTRACTED. I've written a stub in grade/report/grader/lib.php around line 492 for pruning out the grade_tree according to these prefs.

We'll also need to implement the actions for the -/+ icons.

Revision 1.80 - (view) (download) (annotate) - [select for diffs]
Wed Jul 18 13:17:46 2007 WST (2 years, 8 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.79: +8 -3 lines
Diff to previous 1.79
MDL-10345 Fixed bug that changed a null scale finalgrade to 1 due to passing through bounded_number(1, null, 3)

Revision 1.79 - (view) (download) (annotate) - [select for diffs]
Tue Jul 17 15:24:37 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.78: +7 -1 lines
Diff to previous 1.78
MDL-10111 aggragationcof for weighted categories and extra items in old gradebook

Revision 1.78 - (view) (download) (annotate) - [select for diffs]
Mon Jul 16 15:16:08 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.77: +2 -2 lines
Diff to previous 1.77
use min max bounds in update_final_grade()

Revision 1.77 - (view) (download) (annotate) - [select for diffs]
Fri Jul 13 06:31:23 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.76: +11 -3 lines
Diff to previous 1.76
major grade editing fixes and improvements - grader form now knows if grade is editable; fixed broken quickgrading; feedback format is handled the same way as in the rest of moodle - automatically converted to FORMAT_HTML when editor enabled; fixed calculation of grades that was breaking locking

Revision 1.76 - (view) (download) (annotate) - [select for diffs]
Fri Jul 13 03:40:50 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.75: +3 -3 lines
Diff to previous 1.75
MDL-10437 moved editing forms to grade/edit/ directory - these should be shared by all reports, there were too many files in grader directory anyway

Revision 1.75 - (view) (download) (annotate) - [select for diffs]
Fri Jul 13 01:36:18 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.74: +23 -8 lines
Diff to previous 1.74
MDL-10364 calcualtion validation improvements

Revision 1.74 - (view) (download) (annotate) - [select for diffs]
Fri Jul 13 01:23:29 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.73: +55 -4 lines
Diff to previous 1.73
MDL-10364 calcualtion validation improvements

Revision 1.73 - (view) (download) (annotate) - [select for diffs]
Thu Jul 12 14:42:45 2007 WST (2 years, 8 months ago) by toyomoyo
Branch: MAIN
Changes since 1.72: +39 -1 lines
Diff to previous 1.72
grade edit form, and adding set_locktime for grade_grades and grade_item

Revision 1.72 - (view) (download) (annotate) - [select for diffs]
Thu Jul 12 00:54:12 2007 WST (2 years, 8 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.71: +2 -1 lines
Diff to previous 1.71
MDL-9628 Enabling multiple feedback and grades update. Feedbacks now working, but grades don't (at least scales don't)

Revision 1.71 - (view) (download) (annotate) - [select for diffs]
Wed Jul 11 22:53:47 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.70: +4 -1 lines
Diff to previous 1.70
fixed notice in update_raw_grade

Revision 1.70 - (view) (download) (annotate) - [select for diffs]
Wed Jul 11 22:33:09 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.69: +4 -1 lines
Diff to previous 1.69
fixed notice in update_final_grade

Revision 1.69 - (view) (download) (annotate) - [select for diffs]
Wed Jul 11 02:08:25 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.68: +159 -52 lines
Diff to previous 1.68
MDL-9137 new grade_grades field overridden; item edit form fixes; other minor fixes and improvements

Revision 1.68 - (view) (download) (annotate) - [select for diffs]
Mon Jul 9 03:24:42 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Branch point for: MOODLE_19_CLI
Changes since 1.67: +49 -39 lines
Diff to previous 1.67
MDL-10364 fixed de/normalization of calculation formulas in item edit form

Revision 1.67 - (view) (download) (annotate) - [select for diffs]
Mon Jul 9 02:18:32 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.66: +2 -2 lines
Diff to previous 1.66
fixed default needsupdate property

Revision 1.66 - (view) (download) (annotate) - [select for diffs]
Sun Jul 8 23:03:46 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.65: +3 -12 lines
Diff to previous 1.65
MDL-10226 fixed breakage in grade computing

Revision 1.65 - (view) (download) (annotate) - [select for diffs]
Sun Jul 8 22:57:19 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.64: +194 -181 lines
Diff to previous 1.64
MDL-10226 improved regrading of final grades - optimised db access, partial regrading when raw grade updated

Revision 1.64 - (view) (download) (annotate) - [select for diffs]
Fri Jul 6 20:49:30 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.63: +38 -28 lines
Diff to previous 1.63
MDL-10365 Improved handling of history when inserting/updating/deleting in new grade reports;first part

Revision 1.63 - (view) (download) (annotate) - [select for diffs]
Thu Jul 5 01:52:44 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.62: +20 -51 lines
Diff to previous 1.62
complete unit tests for grade_item + minor cleanup in insert and update

Revision 1.62 - (view) (download) (annotate) - [select for diffs]
Wed Jul 4 01:54:57 2007 WST (2 years, 8 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.61: +3 -3 lines
Diff to previous 1.61
More language strings, minor edits.

Revision 1.61 - (view) (download) (annotate) - [select for diffs]
Tue Jul 3 18:06:10 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.60: +1 -29 lines
Diff to previous 1.60
complete unit tests for grade_category, minor API cleanup, fixed forced regrading in grade_category

Revision 1.60 - (view) (download) (annotate) - [select for diffs]
Mon Jul 2 03:45:16 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.59: +2 -1 lines
Diff to previous 1.59
MDL-10224 fixing some more regressions in grade reports; adding proper CSS; more fixes and improvements

Revision 1.59 - (view) (download) (annotate) - [select for diffs]
Sun Jul 1 05:12:50 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.58: +77 -62 lines
Diff to previous 1.58
MDL-9629 fixed regressions in grade reports caused by my previous commits, added unfinished forms for category and item edit

Revision 1.58 - (view) (download) (annotate) - [select for diffs]
Fri Jun 29 06:55:47 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.57: +4 -6 lines
Diff to previous 1.57
MDL-10224 some more improvements in grader report related to total course grade and category grade + other bugfixes

Revision 1.57 - (view) (download) (annotate) - [select for diffs]
Fri Jun 29 03:18:52 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.56: +3 -5 lines
Diff to previous 1.56
MDL-10224 finishing the commit, grrr

Revision 1.56 - (view) (download) (annotate) - [select for diffs]
Thu Jun 28 21:20:30 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.55: +146 -84 lines
Diff to previous 1.55
MDL-10224 total course grade implemented + lots of other changes and improvements; there are still some regressions and bugs - going to fix them ASAP; some unit tests still missing too

Revision 1.55 - (view) (download) (annotate) - [select for diffs]
Tue Jun 26 16:50:22 2007 WST (2 years, 8 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.54: +6 -3 lines
Diff to previous 1.54
Changed grade_item so that its grademax is count(scale_items) and grademin is 1, to be consistent with use of scales throughout Moodle.

Revision 1.54 - (view) (download) (annotate) - [select for diffs]
Mon Jun 25 23:29:31 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.53: +50 -47 lines
Diff to previous 1.53
MDL-10251 finished hiding implementation for grades, items and categories + unit tests

Revision 1.53 - (view) (download) (annotate) - [select for diffs]
Mon Jun 25 16:30:03 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52
fixed locking problem in update_raw_grade()

Revision 1.52 - (view) (download) (annotate) - [select for diffs]
Mon Jun 25 15:56:25 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.51: +33 -5 lines
Diff to previous 1.51
moving event trigger from update_grade() to grade_item->update_raw_grade(); removing itemnumber generation for now

Revision 1.51 - (view) (download) (annotate) - [select for diffs]
Mon Jun 25 06:26:34 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.50: +44 -49 lines
Diff to previous 1.50
MDL-10233 improved static factory methods of grade obejcts fetch() and fetch_all(); implemented default values of grade objects, fixed null values for some properties that are not required - unit tests included, tested with PHP4 and PHP5

Revision 1.50 - (view) (download) (annotate) - [select for diffs]
Sun Jun 24 00:33:17 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.49: +228 -68 lines
Diff to previous 1.49
MDL-10231 merge grade_calculations and grade_items table + calculation improvements
MDL-10233 fixed grade_*::fetch() - does not modify $this anymore, we can now use it from normal methods to fetch other objects of the same class.

Revision 1.49 - (view) (download) (annotate) - [select for diffs]
Sat Jun 23 02:33:33 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.48: +47 -60 lines
Diff to previous 1.48
MDL-10226 regrading of final grades improved, calculation cleanup before MDL-10231

Revision 1.48 - (view) (download) (annotate) - [select for diffs]
Fri Jun 22 16:57:41 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.47: +204 -100 lines
Diff to previous 1.47
MDL-10223 Implement locking of grades and grade items - cron support still not implemented;
this patch also contains improvements in handling of needsupdate, though it is not yet fully working for calculated grades

Revision 1.47 - (view) (download) (annotate) - [select for diffs]
Thu Jun 21 07:06:31 2007 WST (2 years, 8 months ago) by skodak
Branch: MAIN
Changes since 1.46: +131 -181 lines
Diff to previous 1.46
MDL-10202 merge raw and final grade tables

Revision 1.46 - (view) (download) (annotate) - [select for diffs]
Tue Jun 19 06:52:55 2007 WST (2 years, 9 months ago) by skodak
Branch: MAIN
Changes since 1.45: +26 -39 lines
Diff to previous 1.45
MDL-9137 calculated grades should work now, some other minor cleanup

Revision 1.45 - (view) (download) (annotate) - [select for diffs]
Tue Jun 19 04:14:16 2007 WST (2 years, 9 months ago) by skodak
Branch: MAIN
Changes since 1.44: +1 -19 lines
Diff to previous 1.44
MDL-9137 removing obsoleted function, finals now processed only by update_final_grade()

Revision 1.44 - (view) (download) (annotate) - [select for diffs]
Mon Jun 18 21:43:41 2007 WST (2 years, 9 months ago) by skodak
Branch: MAIN
Changes since 1.43: +299 -313 lines
Diff to previous 1.43
MDL-9137 various grading improvements
1/ initial support for migration of old grade_items and categories (not tested)
2/ rewritten grade update and calculation logic
3/ initial support for calculation formulas
4/ minor API refactoring and cleanup
5/ various small bugfixes
6/ fixed use of grademax with scales
7/ fixed some unit tests

TODO:
* implement proper locking of grades - needs discussion
* force recalculation of all formulas after adding/removing/changing of grade items
* better delete flag support
* support for NULLs n backup - Eloy already proposed a solution
* support for NULLs in set_field()
* speedup
* more unit tests nd functional tests

Revision 1.43 - (view) (download) (annotate) - [select for diffs]
Thu Jun 7 20:45:24 2007 WST (2 years, 9 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.42: +39 -8 lines
Diff to previous 1.42
grade_item idnumber now self generated if needed.
deleted flag implemented in grade_item::update method
added GRADE_TYPE_NONE to gradelib and updated grade_item object
Implemented multiple items (generation of itemnumber when not explicitly given)

Revision 1.42 - (view) (download) (annotate) - [select for diffs]
Thu Jun 7 03:16:37 2007 WST (2 years, 9 months ago) by skodak
Branch: MAIN
Changes since 1.41: +4 -4 lines
Diff to previous 1.41
fixing uninitilaized scale problems in last commit

Revision 1.41 - (view) (download) (annotate) - [select for diffs]
Wed Jun 6 06:58:43 2007 WST (2 years, 9 months ago) by skodak
Branch: MAIN
Changes since 1.40: +26 -10 lines
Diff to previous 1.40
MDL-9516 new central grading function update_grade(); to be improved/tested more tomorrow

Revision 1.40 - (view) (download) (annotate) - [select for diffs]
Tue Jun 5 16:50:28 2007 WST (2 years, 9 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.39: +10 -1 lines
Diff to previous 1.39
MDL-9629 Changed grade_item.gradetype default to 1, added GRADE_TYPE_NONE constant = 0, incrementing existing constants by 1. Set up auto-generation of idnumber for grade_item if itemmodule and iteminstance are set, only a temporary stub if they are not set (must be replaced by correct generation code). New category form now has server-side validation (not using formslib)

Revision 1.39 - (view) (download) (annotate) - [select for diffs]
Fri Jun 1 12:46:25 2007 WST (2 years, 9 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.38: +7 -1 lines
Diff to previous 1.38
MDL-9137 Removed hidden field from grade_categories and added deleted field to grade_items. Also added 2 images in pix/i

Revision 1.38 - (view) (download) (annotate) - [select for diffs]
Fri Jun 1 12:02:38 2007 WST (2 years, 9 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.37: +39 -1 lines
Diff to previous 1.37
MDL-9629 Category edit page now implements delete, show/hide, lock/unlock, moveup/movedown and move actions. The edit icon is also shown but not yet implemented.

Revision 1.37 - (view) (download) (annotate) - [select for diffs]
Thu May 31 16:57:05 2007 WST (2 years, 9 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.36: +24 -1 lines
Diff to previous 1.36
MDL-9628 Move work on the category edit page

Revision 1.36 - (view) (download) (annotate) - [select for diffs]
Thu May 31 11:15:43 2007 WST (2 years, 9 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.35: +268 -241 lines
Diff to previous 1.35
MDL-9506 MDL-9137 MDL-9629
Added a number of small getters and setters to grade_item and grade_category, to hide the structural differences between the two, and provide a common interface for cases when we are not sure whether an $object is of one type or another.
The grade_tree::renumber() method now adds complete objects to the need_update array, because both grade_category and grade_item need to update their parent field when moved to a different parent. Amazingly, these important changes worked straight away (after 1 hour of coding without testing anything), and all the unit tests passed!

Revision 1.35 - (view) (download) (annotate) - [select for diffs]
Mon May 28 16:00:20 2007 WST (2 years, 9 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.34: +17 -1 lines
Diff to previous 1.34
MDL-9506 Category and Item now set their own courseid if not set explicitly, and if they have enough information from
other sources. category::set_as_parent has a new constraint: cannot set over children from different courses.
Applied recursion to grade_tree::renumber(), but still some fine-tuning to do, since only grade_items are getting updated in DB.

Revision 1.34 - (view) (download) (annotate) - [select for diffs]
Mon May 28 09:26:58 2007 WST (2 years, 9 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.33: +12 -2 lines
Diff to previous 1.33
MDL-9506 Corrected a number of small errors in unit tests and classes.

Revision 1.33 - (view) (download) (annotate) - [select for diffs]
Fri May 25 15:02:04 2007 WST (2 years, 9 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.32: +4 -3 lines
Diff to previous 1.32
MDL-9506 WOrking on grade_tree edit tree

Revision 1.32 - (view) (download) (annotate) - [select for diffs]
Thu May 24 16:50:04 2007 WST (2 years, 9 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.31: +21 -2 lines
Diff to previous 1.31
MDL-9629 Beginning the edit category page. Also added dmllib::sql_max($field) and fixed a few bugs. Grade_item should now extrapolate its sortorder upon insertion if not set, by looking up the last sortorder in the table, and incrementing by 1.

Revision 1.31 - (view) (download) (annotate) - [select for diffs]
Thu May 24 11:32:23 2007 WST (2 years, 9 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.30: +20 -1 lines
Diff to previous 1.30
MDL-9506 Added grademax extrapolation from scale info for grade_item, in insert() and update() methods. Corrected a few other minor bugs.

Revision 1.30 - (view) (download) (annotate) - [select for diffs]
Thu May 24 10:08:20 2007 WST (2 years, 9 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.29: +6 -2 lines
Diff to previous 1.29
MDL-9889 Fixed a couple of bugs that were only detected by PHP5. Nothing major at all.

Revision 1.29 - (view) (download) (annotate) - [select for diffs]
Mon May 21 13:54:12 2007 WST (2 years, 9 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.28: +2 -3 lines
Diff to previous 1.28
MDL-9506 Removed the debugging message for the fetch() methods. Added droplow and keephigh rules to grade_category::aggregate_grades(). The only question now is what to do when the droplow or keephigh field is larger than the number of grades for a given user/item combination. At the moment it just gives that value 0.

Revision 1.28 - (view) (download) (annotate) - [select for diffs]
Fri May 18 16:05:53 2007 WST (2 years, 10 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.27: +11 -1 lines
Diff to previous 1.27
MDL-9506 New grade_category::set_as_parent($children) method (non-static). Crucial method for adding categories over children. 4 constraints have been set up, and successfully tested in unit tests. However, the method fails when it comes to updating the children's parent fields. The test data may be missing some required fields.

Revision 1.27 - (view) (download) (annotate) - [select for diffs]
Thu May 17 17:04:52 2007 WST (2 years, 10 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.26: +26 -2 lines
Diff to previous 1.26
MDL-9506 Elements of the array returned by grade_category::get_children are now indexed by sortorder, to work more easily with grade_tree methods.
New get_sortorder method for grade_category and grade_item. This is used when the type of an object is unknown, and could be either one. Because categories have a "virtual" sortorder (through their grade_item), they can transparently return one as well.
Unit tests fail for grade_tree at present because of faulty implementation which is being fixed. The $depth attribute has been completely removed, as well as a number of switch statements, in favour of an $index variable which is exploded and used to build strings of array keys for eval statements (unset and array_splice). Can't wait to get all this working :-)

Revision 1.26 - (view) (download) (annotate) - [select for diffs]
Mon May 14 16:18:03 2007 WST (2 years, 10 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.25: +7 -1 lines
Diff to previous 1.25
MDL-9506 Added some unit tests, found some errors, and realised they came from incorrect setup unit test data, which I corrected (grade finals for item 3 were set to 2-digit ints although item 3 was a scale of 1-7.

Revision 1.25 - (view) (download) (annotate) - [select for diffs]
Mon May 14 12:14:23 2007 WST (2 years, 10 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.24: +7 -7 lines
Diff to previous 1.24
MDL-9506 Finally cracked the category aggregation. However, more thorough unit tests need to be written, with exact expectations instead of ranges, as currently used. All unit tests pass.

Revision 1.24 - (view) (download) (annotate) - [select for diffs]
Fri May 11 16:46:35 2007 WST (2 years, 10 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.23: +65 -3 lines
Diff to previous 1.23
MDL-9506 Almost completed category aggregation, including generation of raw and final grades held by these categories. Only a few small glitches remain, that cause these grades not to be generated properly. This is the last critical element of the gradebook API, so I'm looking forward to finishing it :-)

Revision 1.23 - (view) (download) (annotate) - [select for diffs]
Fri May 11 11:29:01 2007 WST (2 years, 10 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22
MDL-9506 Finished implementing the propagation of needsupdate flag up the hierarchy when a lower element justifies it. All unit tests pass. The next task is to implement the generation of raw grades and final grades based on this needsupdate setting.

Revision 1.22 - (view) (download) (annotate) - [select for diffs]
Fri May 11 10:11:30 2007 WST (2 years, 10 months ago) by moodler
Branch: MAIN
Changes since 1.21: +1 -2 lines
Diff to previous 1.21
Removed set_timecreated and just tidied up some time-related things

Revision 1.21 - (view) (download) (annotate) - [select for diffs]
Thu May 10 16:58:00 2007 WST (2 years, 10 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.20: +5 -4 lines
Diff to previous 1.20
MDL-9506 small fix

Revision 1.20 - (view) (download) (annotate) - [select for diffs]
Thu May 10 16:08:44 2007 WST (2 years, 10 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.19: +142 -57 lines
Diff to previous 1.19
MDL-9506
grade_grades_raw
    added grade_item object
    added load_grade_item()
    added call to grade_item->flag_for_update() when object is inserted, deleted or updated
grade_grades_final
    added grade_item object
    added load_grade_item()
grade_grades_text
    added grade_item object
    added load_grade_item()
grade_item
    added qualifies_for_update()
    added call to grade_category->flag_for_update() when object is inserted, deleted or updated (only when qualifies_for_update() is true)

However since I have made this last set of changes, the unit tests are performing extremely slow, and several of them fail. I suspect that there is a serious performance issue involved in using objects too heavily, instead of performing more SQL queries, especially when updates are concerned. Often a complete object is SELECTed before it is amended in an object form then UPDATEd.

In the next iteration I will look at this seriously, and put together some tests with thousands of users and many grade_items, to see how well the API responds.

Revision 1.19 - (view) (download) (annotate) - [select for diffs]
Thu May 10 10:34:01 2007 WST (2 years, 10 months ago) by nicolasconnault
Branch: MAIN
Branch point for: MOODLE_19_QUESTIONS
Changes since 1.18: +40 -8 lines
Diff to previous 1.18
MDL-9506
grade_category:
    new parent_category object
    new load_parent_category() method
    new flag_for_update() recursive method
grade_item:
    new category object
    changed get_category() to load_category() and updated testgradeitem
    added missing idnumber field
    new flag_for_update() recursive method

Revision 1.18 - (view) (download) (annotate) - [select for diffs]
Wed May 9 15:50:29 2007 WST (2 years, 10 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.17: +13 -23 lines
Diff to previous 1.17
MDL-9506 Unit test tables are now created and emptied using XMLDB. raw.gradescale and final.gradescale have been removed in favour of a single gradevalue. Scale value is no longer rounded until moment of display. A number of other changes which you can look at by browsing the diff :-)

Revision 1.17 - (view) (download) (annotate) - [select for diffs]
Tue May 8 16:01:56 2007 WST (2 years, 10 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.16: +23 -25 lines
Diff to previous 1.16
MDL-9506 Stuck on grade_category->generate_grades. I cannot figure out how to recursively generate raw grades for each category's associated grade_item based on that category's children categories and items. Heaps of other changes with this commit, including a new grade_object::update_from_db() method, which uses the state of the record in DB to update the current object with a matching id (useful when you insert an incomplete object in the DB and want to get the default values as set up in the DB).

Revision 1.16 - (view) (download) (annotate) - [select for diffs]
Tue May 8 10:20:26 2007 WST (2 years, 10 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.15: +66 -12 lines
Diff to previous 1.15
MDL-9506 Issue 1: adjusting a gradeitem's value would result in a grade_final object with gradevalue assigned, even when a gradescale should have been assigned. Issue 2: double grade_final entries when calling grade_item->load_final() after grade_item->generate_final(). Issue 3: Calling grade_item->update_final_grade() without first calling grade_item->generate_final() would result in fatal error. generate_final() is now called if the raw and final arrays' sizes don't match.

Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Mon May 7 10:04:06 2007 WST (2 years, 10 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.14: +10 -5 lines
Diff to previous 1.14
MDL-9506 Removed implicit loading of associated objects from constructors (grade_item and grade_grades_raw) to avoid very large numbers of sql queries when only little data is required. The load_scale() method, for example, needs to be called explicitly.

Revision 1.14 - (view) (download) (annotate) - [select for diffs]
Fri May 4 17:04:41 2007 WST (2 years, 10 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.13: +50 -3 lines
Diff to previous 1.13
MDL-9506 Fixed some small issues.

Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Thu May 3 16:08:38 2007 WST (2 years, 10 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.12: +35 -0 lines
Diff to previous 1.12
MDL-9506 See previous revision. This adds same functionality but in relation to the hidden field.

Revision 1.12 - (view) (download) (annotate) - [select for diffs]
Thu May 3 16:02:51 2007 WST (2 years, 10 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.11: +35 -1 lines
Diff to previous 1.11
MDL-9506 Added grade_item::toggle_locking and unit tests. Affects all final grades if reqested.

Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Thu May 3 15:10:23 2007 WST (2 years, 10 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.10: +11 -17 lines
Diff to previous 1.10
MDL-9506 Upgraded grade_item::adjust_grade with Darlene's more elegant formula. Completed grade_category::get_children($depth, $arraytype). Added 4 constants to help that method. Added and passed all unit tests (111 now).

Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Wed May 2 15:20:13 2007 WST (2 years, 10 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.9: +8 -9 lines
Diff to previous 1.9
MDL-9506 Finished all unit test stubs, another batch to write soon. One one test fails because I haven't implemented recursive category hierarchy output yet, and not sure if it's needed. A grade_category already returns its immediate children, and that may be enough.

Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Tue May 1 13:45:54 2007 WST (2 years, 10 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.8: +51 -17 lines
Diff to previous 1.8
MDL-9506 Finished grade_item::adjust_grade, which now also adjusts scale grades correctly. Added grade_scale object to wrap around the current non-normalized scale DB table. When/if we upgrade to grade_scales and grade_scale_items DB tables, changing the grade_scale class will be easy.

Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Tue May 1 11:18:55 2007 WST (2 years, 10 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.7: +14 -11 lines
Diff to previous 1.7
MDL-9506 Implemented rescaling and grade adjustment formulas in grade_item::adjust_grade(). Also wrote unit tests.

Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Mon Apr 30 17:09:32 2007 WST (2 years, 10 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.6: +89 -10 lines
Diff to previous 1.6
MDL-9506 Lots more unit tests, and work on grade_item::update method and associated functionality. 3 unit tests currently fail, so more work needed.

Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Mon Apr 30 13:25:19 2007 WST (2 years, 10 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.5: +26 -9 lines
Diff to previous 1.5
MLD-9506 Corrected update_final_grades() in grade_item, which was updating the grade_raw table
instead of grade_final. Made a few other adjustments.

Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Mon Apr 30 13:00:17 2007 WST (2 years, 10 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.4: +2 -10 lines
Diff to previous 1.4
MDL-9506 Removed redundant portion of code.

Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Mon Apr 30 12:49:25 2007 WST (2 years, 10 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.3: +62 -8 lines
Diff to previous 1.3
MDL-9506 Added grade_grades_raw as a proper object used by grade_item. Also added a global function in gradelib for updating grade_grades_raw objects.

Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Mon Apr 30 10:05:51 2007 WST (2 years, 10 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.2: +25 -15 lines
Diff to previous 1.2
MDL-9506 Implemented get_raw and get_final, plus added method_exists() checks for each unit test.

Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Fri Apr 27 15:28:42 2007 WST (2 years, 10 months ago) by nicolasconnault
Branch: MAIN
Changes since 1.1: +32 -72 lines
Diff to previous 1.1
MDL-9506 Number of important changes, restored unit test stability, on to next changes...

Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Fri Apr 27 12:13:01 2007 WST (2 years, 10 months ago) by nicolasconnault
Branch: MAIN
MDL-9506 Renamed lib/gradebook to lib/grade (bug MDL-9506)

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

Moodle CVS Admin
ViewVC Help
Powered by ViewVC 1.0.7