skodak [Sun, 24 Jun 2007 22:26:33 +0000 (22:26 +0000)]
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
skodak [Sat, 23 Jun 2007 16:33:17 +0000 (16:33 +0000)]
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.
urs_hunkler [Sat, 23 Jun 2007 12:21:59 +0000 (12:21 +0000)]
Add an option $CFG->CSSEdit or $THEME->CSSEdit to Moodle. If one of both is set to true, Moodle does not write all CSS code in one single CSS file but adds CSS @include to the theme CSS file to load all single CSS files. These single CSS files can then be interactively edited and saved with CSSEdit. It's like Firebug with direct saving your changes.
tjhunt [Sat, 23 Jun 2007 10:39:28 +0000 (10:39 +0000)]
Make a library function for deleting quiz attempts, rather than having duplicated code - Followup: make sure we only delete preview attempts. Merged from OU Moodle.
nicolasconnault [Fri, 22 Jun 2007 17:34:14 +0000 (17:34 +0000)]
MDL-10207 Tabs added to category admin page and grader report page. I also changed the id URL variable to courseid. This may cause some issues as long as the current grade/lib.php library is used, but I thought we should use courseid instead of id.
tjhunt [Fri, 22 Jun 2007 13:46:00 +0000 (13:46 +0000)]
MDL-10213 - layuout problem for question in IE in Moodle 1.7. I'm taking the opportunity to clean up the CSS in 1.8 and HEAD to match what I did in 1.7. Merged from MOODLE_18_STABLE.
skodak [Fri, 22 Jun 2007 08:57:39 +0000 (08:57 +0000)]
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
tjhunt [Wed, 20 Jun 2007 16:18:37 +0000 (16:18 +0000)]
Put information about which quiz and page in the URL for attempt.php, instead of in hidden form fields. Merged from OU Moodle.This makes things a little more robust in some situations, for example you can bookmark a page half way through a quiz attempt to make it easier to get back later.
tjhunt [Wed, 20 Jun 2007 15:12:36 +0000 (15:12 +0000)]
MDL-10198 - New code to allow files from quiestion attempts to be stored in moodledata and later downloaded. Code thanks to Adriane Boyd, but checked and modified by me, so we share the blame;-)
mchurch [Tue, 19 Jun 2007 20:38:27 +0000 (20:38 +0000)]
MDL-10161 - Since get_course_... (users, students, teachers) is still being used by a number of functions (such as groups), trying to make them work with the SITE course the way they did pre-1.7, with $CFG->allusersarestudents set to TRUE. This will also have a configuration option that can be used to disable returning large amounts of users for the site course, if a site happens to be using this functionality and they have a large number of users.
skodak [Mon, 18 Jun 2007 13:43:40 +0000 (13:43 +0000)]
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
mudrd8mz [Sun, 17 Jun 2007 02:14:31 +0000 (02:14 +0000)]
Repeating the skodak's commit 1.95 (MDL-9647 simplify dealing with headers/footers in admin sections) - evidently too late for me tonight... doing more CVS mistakes :-(