]> git.mjollnir.org Git - moodle.git/commit
MDL-9506 Stuck on grade_category->generate_grades. I cannot figure out how to recursi...
authornicolasconnault <nicolasconnault>
Tue, 8 May 2007 08:01:55 +0000 (08:01 +0000)
committernicolasconnault <nicolasconnault>
Tue, 8 May 2007 08:01:55 +0000 (08:01 +0000)
commit2c72af1f08c17836aa2ae6c6d7f6aa61a789dcbe
treee81e7600db4213754f63309dbb2b47ad0877b82f
parent33cf55bf96bc607f5356ce26f40c316e6e0c64b1
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).
lib/grade/grade_calculation.php
lib/grade/grade_category.php
lib/grade/grade_item.php
lib/grade/grade_object.php
lib/gradelib.php
lib/simpletest/grade/simpletest/testgradecategory.php
lib/simpletest/grade/simpletest/testgradeitem.php
lib/simpletest/testgradelib.php