diff --git a/backup/util/plan/backup_step.class.php b/backup/util/plan/backup_step.class.php index 2604dddb6b5..b8f1e93573e 100644 --- a/backup/util/plan/backup_step.class.php +++ b/backup/util/plan/backup_step.class.php @@ -38,6 +38,13 @@ abstract class backup_step extends base_step { } parent::__construct($name, $task); } + + protected function get_backupid() { + if (is_null($this->task)) { + throw new backup_step_exception('not_specified_backup_task'); + } + return $this->task->get_backupid(); + } } /* diff --git a/backup/util/plan/backup_task.class.php b/backup/util/plan/backup_task.class.php index f5e620d1dcd..f7840ef326d 100644 --- a/backup/util/plan/backup_task.class.php +++ b/backup/util/plan/backup_task.class.php @@ -38,6 +38,10 @@ abstract class backup_task extends base_task { } parent::__construct($name, $plan); } + + public function get_backupid() { + return $this->plan->get_backupid(); + } } /* diff --git a/backup/util/plan/base_step.class.php b/backup/util/plan/base_step.class.php index efaa0929ae5..96db85f5bbd 100644 --- a/backup/util/plan/base_step.class.php +++ b/backup/util/plan/base_step.class.php @@ -87,13 +87,6 @@ abstract class base_step implements executable, loggable { return $this->task->get_setting_value($name); } - protected function get_backupid() { - if (is_null($this->task)) { - throw new base_step_exception('not_specified_base_task'); - } - return $this->task->get_backupid(); - } - protected function get_courseid() { if (is_null($this->task)) { throw new base_step_exception('not_specified_base_task'); diff --git a/backup/util/plan/base_task.class.php b/backup/util/plan/base_task.class.php index 1ac7014216d..a066a235407 100644 --- a/backup/util/plan/base_task.class.php +++ b/backup/util/plan/base_task.class.php @@ -89,10 +89,6 @@ abstract class base_task implements checksumable, executable, loggable { return $this->get_setting($name)->get_value(); } - public function get_backupid() { - return $this->plan->get_backupid(); - } - public function get_courseid() { return $this->plan->get_courseid(); }