f3ac8eb40c
MDL-12182 Reverting to pre-upgrade in order to prepare a patch instead
2007-11-22 05:42:46 +00:00
9a68cffcbb
Restoring some of the static calls which were converted unnecessarily
2007-11-13 13:44:27 +00:00
795bee3460
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).
2007-11-13 09:08:43 +00:00
4fc9ec1ec0
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).
2007-11-13 07:36:00 +00:00
1ee0df067f
MDL-10365 grade history can be turned off + lifetime
2007-11-08 08:59:26 +00:00
1f0e492171
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
2007-11-07 17:59:33 +00:00
ced5ee5921
MDL-11966 implemented dategraded and datesubmitted, tweaked altering of grades depending in hidden grades
...
MDL-11974 improved gradebook CSS
2007-11-01 08:25:05 +00:00
89a5f82768
MDL-11278 improved forced category settings - refactoring + regrading forced + new setting to hide forced settings in UI
2007-10-20 15:00:31 +00:00
761447651e
Minor changes related to unit testing
2007-10-11 09:15:57 +00:00
b7064779f5
Updated copyright notice in header
2007-10-10 05:25:14 +00:00
9f01047ae9
MDL-11363 minor doc improvement
2007-09-22 18:50:46 +00:00
3ab3dfd562
MDL-11363 fixing defaults of new optional fields of grade classes - now properly applied when creating new instances too
2007-09-22 18:46:51 +00:00
3f2b0c8aba
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
2007-09-22 11:39:59 +00:00
514a3467a4
MDL-10636 reverting last commit
2007-07-29 13:22:50 +00:00
f04873a9ea
MDL-10636
...
Attempting to fix a number of bugs related to backup/restore for gradebook
2007-07-28 09:23:32 +00:00
1a61400873
Optimising the grader report
2007-07-14 04:18:35 +00:00
aaff71daf4
MDL-10365 Improved handling of history when inserting/updating/deleting in new grade reports;first part
2007-07-06 12:49:28 +00:00
5b5eb8e6c7
MDL-9268
...
Added language strings for grade item edit form.
Fixed HTML error in grader report.
Added tabs to category edit page.
2007-07-03 05:25:08 +00:00
b3ac6c3ef0
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
2007-06-28 13:20:30 +00:00
f92dcad81a
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
2007-06-24 22:26:33 +00:00
772ddfbfce
trailing whitespace cleanup in new grade libraries
2007-06-23 16:51:09 +00:00
9b7e5a3772
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
2007-06-12 20:16:49 +00:00
1c307f2186
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)
2007-06-07 12:45:24 +00:00
de420c11c5
MDL-9317 Applying Petr's second patch
2007-05-29 00:56:44 +00:00
b5b65852c6
apply magic quotes before using var in sql query in fetch_all_using_this()
2007-05-28 08:20:07 +00:00
d990776605
MDL-9137 Applied parts of Petr's patch on the gradebook objects. Unit tests unaffected.
2007-05-28 02:05:21 +00:00
526e1a8a25
MDL-9506 Corrected a number of small errors in unit tests and classes.
2007-05-28 01:26:58 +00:00
ab53054fd1
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.
2007-05-21 05:54:12 +00:00
a39cac258d
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 :-)
2007-05-17 09:04:52 +00:00
b55997c112
Removed set_timecreated and just tidied up some time-related things
2007-05-11 02:11:30 +00:00
f744267a28
A few small fixes and clean ups
2007-05-10 09:07:37 +00:00
2c72af1f08
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).
2007-05-08 08:01:55 +00:00
46566dd8c6
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.
2007-05-04 07:40:51 +00:00
7c8a963f7b
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.
2007-05-02 07:20:13 +00:00
3058964f85
MDL-9506 Number of important changes, restored unit test stability, on to next changes...
2007-04-27 07:28:41 +00:00
a56cb85c63
MDL-9506 Renamed lib/gradebook to lib/grade (bug MDL-9506)
2007-04-27 04:13:00 +00:00