Moodle  2.2.1
http://www.collinsharper.com
restore_activity_grades_structure_step Class Reference
Inheritance diagram for restore_activity_grades_structure_step:
Collaboration diagram for restore_activity_grades_structure_step:

Protected Member Functions

 define_structure ()
 process_grade_item ($data)
 process_grade_grade ($data)
 process_grade_letter ($data)

Detailed Description

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.


Member Function Documentation

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.

Here is the call graph for this function:

process_grade_grade ( data) [protected]

Definition at line 2153 of file restore_stepslib.php.

Here is the call graph for this function:

process_grade_item ( data) [protected]

Definition at line 2094 of file restore_stepslib.php.

Here is the call graph for this function:

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.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations