|
Moodle
2.2.1
http://www.collinsharper.com
|


Protected Member Functions | |
| define_structure () | |
| process_grade_item ($data) | |
| process_grade_grade ($data) | |
| process_grade_letter ($data) | |
This structure step restores the grade items associated with one activity All the grade items are made child of the "course" grade item but the original categoryid is saved as parentitemid in the backup_ids table, so, when restoring the complete gradebook (categories and calculations), that information is available there
Definition at line 2078 of file restore_stepslib.php.
| define_structure | ( | ) | [protected] |
Function that will return the structure to be processed by this restore_step. Must return one array of elements
Reimplemented from restore_structure_step.
Definition at line 2080 of file restore_stepslib.php.

| process_grade_grade | ( | $ | data | ) | [protected] |
| process_grade_item | ( | $ | data | ) | [protected] |
| process_grade_letter | ( | $ | data | ) | [protected] |
process activity grade_letters. Note that, while these are possible, because grade_letters are contextid based, in proctice, only course context letters can be defined. So we keep here this method knowing it won't be executed ever. gradebook restore will restore course letters.
Definition at line 2175 of file restore_stepslib.php.