Permalink
Browse files

MDL-21432 move some stuff from base to backup plan classes

  • Loading branch information...
1 parent 4751e47 commit a42dcde415d886baa2a1f786b629e1af68384fe7 @stronk7 stronk7 committed Jun 22, 2010
@@ -38,6 +38,13 @@ public function __construct($name, $task = null) {
}
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();
+ }
}
/*
@@ -38,6 +38,10 @@ public function __construct($name, $plan = null) {
}
parent::__construct($name, $plan);
}
+
+ public function get_backupid() {
+ return $this->plan->get_backupid();
+ }
}
/*
@@ -87,13 +87,6 @@ protected function get_setting_value($name) {
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');
@@ -89,10 +89,6 @@ public function get_setting_value($name) {
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();
}

0 comments on commit a42dcde

Please sign in to comment.