Log of /moodle/lib/grade/grade_object.php
Parent Directory
Revision
1.58 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Thu Dec 30 04:01:13 2010 WST (16 months, 2 weeks ago) by
moodlerobot
Branch:
MAIN
CVS Tags:
MOODLE_202,
MOODLE_203,
MOODLE_204,
MOODLE_205,
MOODLE_206,
MOODLE_207,
MOODLE_208,
MOODLE_209,
MOODLE_20_WEEKLY,
MOODLE_21,
MOODLE_211,
MOODLE_212,
MOODLE_213,
MOODLE_214,
MOODLE_215,
MOODLE_216,
MOODLE_21_WEEKLY,
MOODLE_22,
MOODLE_221,
MOODLE_222,
MOODLE_223,
MOODLE_22_BETA,
MOODLE_22_RC1,
MOODLE_22_WEEKLY
Branch point for:
MOODLE_20_STABLE,
MOODLE_21_STABLE,
MOODLE_22_STABLE
Changes since
1.57: +14 -12 lines
Diff to
previous 1.57
weekly git snapshot
Revision
1.27.2.7 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Thu Dec 30 03:57:21 2010 WST (16 months, 2 weeks ago) by
moodlerobot
Branch:
MOODLE_19_STABLE
CVS Tags:
MOODLE_1911,
MOODLE_1912,
MOODLE_1913,
MOODLE_1914,
MOODLE_1915,
MOODLE_1916,
MOODLE_1917,
MOODLE_1918,
MOODLE_19_WEEKLY
Changes since
1.27.2.6: +4 -3 lines
Diff to
previous 1.27.2.6
, to
branch point 1.27
, to
next main 1.59
weekly git snapshot
Revision
1.34 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Tue Nov 13 18:08:44 2007 WST (4 years, 6 months ago) by
nicolasconnault
Branch:
MAIN
Changes since
1.33: +39 -13 lines
Diff to
previous 1.33
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.33 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Tue Nov 13 16:36:01 2007 WST (4 years, 6 months ago) by
nicolasconnault
Branch:
MAIN
Changes since
1.32: +49 -18 lines
Diff to
previous 1.32
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.27.2.4 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Thu Nov 8 18:58:56 2007 WST (4 years, 6 months ago) by
skodak
Branch:
MOODLE_19_STABLE
CVS Tags:
MOODLE_19,
MOODLE_191,
MOODLE_192,
MOODLE_193,
MOODLE_194,
MOODLE_195,
MOODLE_196,
MOODLE_197,
MOODLE_198,
MOODLE_199
Changes since
1.27.2.3: +44 -38 lines
Diff to
previous 1.27.2.3
, to
branch point 1.27
MFC: MDL-10365 grade history can be turned off + lifetime
Revision
1.31 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Thu Nov 8 02:59:33 2007 WST (4 years, 6 months ago) by
nicolasconnault
Branch:
MAIN
Changes since
1.30: +3 -7 lines
Diff to
previous 1.30
Unit test refactoring using mock objects. NOT FINISHED: testgradecategory and testgradeitem are incomplete. The other tests work great however, and no longer a need for DB data
Revision
1.24 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Sat Sep 22 19:40:05 2007 WST (4 years, 7 months ago) by
skodak
Branch:
MAIN
Changes since
1.23: +35 -18 lines
Diff to
previous 1.23
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.19 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Tue Jul 3 13:25:08 2007 WST (4 years, 10 months ago) by
nicolasconnault
Branch:
MAIN
Changes since
1.18: +3 -3 lines
Diff to
previous 1.18
MDL-9268
Added language strings for grade item edit form.
Fixed HTML error in grader report.
Added tabs to category edit page.
Revision
1.18 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Thu Jun 28 21:20:30 2007 WST (4 years, 10 months ago) by
skodak
Branch:
MAIN
Changes since
1.17: +20 -4 lines
Diff to
previous 1.17
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.17 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Mon Jun 25 06:26:35 2007 WST (4 years, 10 months ago) by
skodak
Branch:
MAIN
Changes since
1.16: +107 -61 lines
Diff to
previous 1.16
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.15 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Wed Jun 13 04:16:49 2007 WST (4 years, 11 months ago) by
skodak
Branch:
MAIN
Changes since
1.14: +20 -10 lines
Diff to
previous 1.14
MDL-10103 grade_object:insert() now fetches the fresh data from db and updates itself; update_from_db() now uses the same process as new grade_object() for consistency
Revision
1.14 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Thu Jun 7 20:45:24 2007 WST (4 years, 11 months ago) by
nicolasconnault
Branch:
MAIN
Changes since
1.13: +3 -3 lines
Diff to
previous 1.13
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.9 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Mon May 21 13:54:12 2007 WST (4 years, 11 months ago) by
nicolasconnault
Branch:
MAIN
Changes since
1.8: +2 -2 lines
Diff to
previous 1.8
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.8 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Thu May 17 17:04:53 2007 WST (5 years ago) by
nicolasconnault
Branch:
MAIN
Changes since
1.7: +2 -1 lines
Diff to
previous 1.7
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.5 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Tue May 8 16:01:56 2007 WST (5 years ago) by
nicolasconnault
Branch:
MAIN
Branch point for:
MOODLE_19_QUESTIONS
Changes since
1.4: +22 -1 lines
Diff to
previous 1.4
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.4 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Fri May 4 15:40:56 2007 WST (5 years ago) by
nicolasconnault
Branch:
MAIN
Changes since
1.3: +11 -4 lines
Diff to
previous 1.3
MDL-9506 Moved unit tests in a simpletest subfolder so they can be automatically grouped. Added grade_history and grade_text object and another heap of small implementations.
Revision
1.3 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Wed May 2 15:20:17 2007 WST (5 years ago) by
nicolasconnault
Branch:
MAIN
Changes since
1.2: +15 -2 lines
Diff to
previous 1.2
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.
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.