]> git.mjollnir.org Git - moodle.git/commit
MDL-9137 various grading improvements
authorskodak <skodak>
Mon, 18 Jun 2007 13:43:40 +0000 (13:43 +0000)
committerskodak <skodak>
Mon, 18 Jun 2007 13:43:40 +0000 (13:43 +0000)
commitb8ff92b66b6dc498cac94ebcfd88b571b431611a
tree3b0fe268be2eed9a5337876538e3c36b144766af
parent75bca47db01d9daeed4bdd4e82ee32fb62ac9be3
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
14 files changed:
grade/export/lib.php
lib/evalmath/evalmath.class.php
lib/grade/grade_calculation.php
lib/grade/grade_category.php
lib/grade/grade_grades_raw.php
lib/grade/grade_item.php
lib/gradelib.php
lib/simpletest/fixtures/gradetest.php
lib/simpletest/grade/simpletest/testgradecategory.php
lib/simpletest/grade/simpletest/testgradeitem.php
lib/simpletest/grade/simpletest/testgraderaw.php
lib/simpletest/grade/simpletest/testgradetree.php
lib/simpletest/testgradelib.php
lib/simpletest/testmathslib.php