MDL-23478 backup - restore blocks (instances an positions)

This commit is contained in:
Eloy Lafuente
2010-07-24 22:56:30 +00:00
parent 6eb2138a81
commit b8e455a789
5 changed files with 246 additions and 10 deletions
+7 -1
View File
@@ -35,9 +35,15 @@ class restore_final_task extends restore_task {
*/
public function build() {
// Review all the block_position records in backup_ids in order
// match them now that all the contexts are created populating DB
// as needed. Only if we are restoring blocks.
if ($this->get_setting_value('blocks')) {
$this->add_step(new restore_review_pending_block_positions('review_block_positions'));
}
// TODO: Gradebook
// TODO: interlinks
// TODO: Apply all the block_positions accumulated along the process
// Clean the temp dir (conditionally) and drop temp table
$this->add_step(new restore_drop_and_clean_temp_stuff('drop_and_clean_temp_stuff'));