MDL-24817 backup - added support for decode contents in plugins (and qtypes)

This commit is contained in:
Eloy Lafuente 2010-11-01 15:49:01 +00:00
parent b5e58c1831
commit 9f68f2d5a6
12 changed files with 119 additions and 193 deletions

View file

@ -348,8 +348,11 @@ class restore_gradebook_structure_step extends restore_structure_step {
class restore_decode_interlinks extends restore_execution_step {
protected function define_execution() {
// Just that
$this->task->get_decoder()->execute();
// Get the decoder (from the plan)
$decoder = $this->task->get_decoder();
restore_decode_processor::register_link_decoders($decoder); // Add decoder contents and rules
// And launch it, everything will be processed
$decoder->execute();
}
}