MDL-21432 backup - complete standard/course outcomes backup & restore
[moodle.git] / backup / moodle2 / restore_root_task.class.php
index e31ed88..98128fe 100644 (file)
@@ -40,6 +40,9 @@ class restore_root_task extends restore_task {
         // If we haven't preloaded information, load all the included inforef records to temp_ids table
         $this->add_step(new restore_load_included_inforef_records('load_inforef_records'));
 
+        // If we haven't preloaded information, load all the needed roles to temp_ids_table
+        $this->add_step(new restore_load_and_map_roles('load_and_map_roles'));
+
         // If we haven't preloaded information and are restoring user info, load all the needed users to temp_ids table
         $this->add_step(new restore_load_included_users('load_user_records'));
 
@@ -57,6 +60,16 @@ class restore_root_task extends restore_task {
         // Unconditionally, load create all the needed groups and groupings
         $this->add_step(new restore_groups_structure_step('create_groups_and_groupings', 'groups.xml'));
 
+        // Unconditionally, load create all the needed scales
+        $this->add_step(new restore_scales_structure_step('create_scales', 'scales.xml'));
+
+        // Unconditionally, load create all the needed outcomes
+        $this->add_step(new restore_outcomes_structure_step('create_scales', 'outcomes.xml'));
+
+        // Unconditionally, load create all the needed outcomes.
+        // TODO: restore outcomes
+        // $this->add_step(new restore_outcomes_structure_step('create_outcomes', 'outcomes.xml'));
+
         // At the end, mark it as built
         $this->built = true;
     }