32 Commits

Author SHA1 Message Date
skodak
2a7eff41ad MDL-18293 $DB->something is using exceptions, no need for ifs there, removing useless strings 2009-06-03 20:37:28 +00:00
nicolasconnault
5b0af8c5e3 MDL-14967 More upgrades 2008-05-26 05:06:01 +00:00
nicolasconnault
da3801e84b MDL-14967 Upgraded gradebook code and unit tests. 4 failing tests in grade_item to fix. 2008-05-23 14:52:50 +00:00
skodak
b0f44d8dbe MDL-13849 add API method to use outcome in course into grade_outcome class; merged from MOODLE_19_STABLE 2008-03-08 15:29:42 +00:00
tjhunt
1ba25b6820 Fix typo. 2008-03-06 15:04:09 +00:00
nicolasconnault
27c9bf2445 MDL-12182 fixing fixtures 2008-03-06 14:55:10 +00:00
nicolasconnault
f3ac8eb40c MDL-12182 Reverting to pre-upgrade in order to prepare a patch instead 2007-11-22 05:42:46 +00:00
nicolasconnault
aaefeda438 More fine-tuning of gradebook classes 2007-11-13 10:31:08 +00:00
nicolasconnault
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
skodak
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
nicolasconnault
a8caf69d3a Minor changes in unit tests 2007-10-31 14:55:23 +00:00
nicolasconnault
b7064779f5 Updated copyright notice in header 2007-10-10 05:25:14 +00:00
skodak
95aa0af862 MDL-11472 fixed harcoded mdl_ prefix in sql queries 2007-09-27 08:41:19 +00:00
skodak
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
skodak
678a79caa5 adding grade_outcomes description;
fixing field lengths in outcome and scale forms
2007-07-31 21:10:20 +00:00
skodak
24881e5dd0 fixed insert trouble with standard outcomes - thanks Eloy 2007-07-31 20:26:37 +00:00
skodak
7fdcc3b092 fixed whitespace 2007-07-31 13:05:00 +00:00
skodak
2fa3ea10f1 edit/outcomeitem.php - fixed selection of outcomes to show only available course outcomes 2007-07-31 13:04:35 +00:00
skodak
4c2402b2f8 minor scale related changes, added fixed update() into grade_outcome class 2007-07-31 12:52:17 +00:00
skodak
3818937e4a more Edit/Outcomes improvements - new course column for standard outcomes; outcomes_course consistency checks; removed debug delays 2007-07-31 12:03:45 +00:00
skodak
173a9d21ea various grade outcomes and scales improvements, fixes, changes and refactoring
added new favoutcomes plugin settings page - to be used later, this replaces the grade_outcomes_grades table
admin settings - outcomes and scales both have settings page now
2007-07-30 22:56:45 +00:00
nicolasconnault
acdc8e8a9c MDL-10550 Refactoring, fixing a few bugs in edit/item_form.php and more work into the outcome report 2007-07-24 14:26:05 +00:00
nicolasconnault
ba92364c8b MDL-10550 2007-07-23 14:33:02 +00:00
skodak
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
skodak
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
skodak
772ddfbfce trailing whitespace cleanup in new grade libraries 2007-06-23 16:51:09 +00:00
skodak
61c33818d5 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.
2007-06-23 16:33:17 +00:00
nicolasconnault
2186f72cb1 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. 2007-05-24 08:50:01 +00:00
nicolasconnault
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
nicolasconnault
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
nicolasconnault
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
nicolasconnault
5501446df5 MDL-9506 Added grade_outcome.php. Also added unit test for creation of log in history table when grade_raw is updated. 2007-05-03 08:51:48 +00:00