From a4e13312bf57e36a6a22884e989a55bed9d675b7 Mon Sep 17 00:00:00 2001 From: Eloy Lafuente Date: Mon, 12 Jul 2010 22:35:28 +0000 Subject: [PATCH] MDL-21432 backup - get target on restore --- backup/util/plan/restore_plan.class.php | 4 ++++ backup/util/plan/restore_task.class.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/backup/util/plan/restore_plan.class.php b/backup/util/plan/restore_plan.class.php index 557bc86151d..2200180a3d1 100644 --- a/backup/util/plan/restore_plan.class.php +++ b/backup/util/plan/restore_plan.class.php @@ -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()); } diff --git a/backup/util/plan/restore_task.class.php b/backup/util/plan/restore_task.class.php index dadf658f2c4..6df14a53c6b 100644 --- a/backup/util/plan/restore_task.class.php +++ b/backup/util/plan/restore_task.class.php @@ -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(); + } } /*