MDL-21432 backup - get target on restore
authorEloy Lafuente <stronk7@moodle.org>
Mon, 12 Jul 2010 22:35:28 +0000 (22:35 +0000)
committerEloy Lafuente <stronk7@moodle.org>
Mon, 12 Jul 2010 22:35:28 +0000 (22:35 +0000)
backup/util/plan/restore_plan.class.php
backup/util/plan/restore_task.class.php

index 557bc86..2200180 100644 (file)
@@ -71,6 +71,10 @@ class restore_plan extends base_plan implements loggable {
         return $this->controller->get_info();
     }
 
+    public function get_target() {
+        return $this->controller->get_target();
+    }
+
     public function log($message, $level, $a = null, $depth = null, $display = false) {
         backup_helper::log($message, $level, $a, $depth, $display, $this->get_logger());
     }
index dadf658..6df14a5 100644 (file)
@@ -46,6 +46,10 @@ abstract class restore_task extends base_task {
     public function get_info() {
         return $this->plan->get_info();
     }
+
+    public function get_target() {
+        return $this->plan->get_target();
+    }
 }
 
 /*