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
This commit is contained in:
skodak
2007-06-22 08:57:39 +00:00
parent b5fc272c3c
commit 2cc4b0f90d
11 changed files with 439 additions and 217 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ class gradelib_test extends grade_test {
if (get_class($this) == 'gradelib_test') {
$grade_item = $this->grade_items[0];
$this->assertFalse(grade_is_locked($grade_item->courseid, $grade_item->itemtype, $grade_item->itemmodule, $grade_item->iteminstance, $grade_item->itemnumber));
$grade_item = $this->grade_items[1];
$grade_item = $this->grade_items[6];
$this->assertTrue(grade_is_locked($grade_item->courseid, $grade_item->itemtype, $grade_item->itemmodule, $grade_item->iteminstance, $grade_item->itemnumber));
}
}