Full example implementation of the convert course step
[moodle.git] / backup / util / plan / convert_task.class.php
blob650d04ecd875867f6458e82d1d929017a82dee8f
1 <?php
2 /**
3 * Convert Task
4 */
5 abstract class convert_task extends base_task {
6 public function __construct($name, convert_plan $plan = null) {
7 parent::__construct($name, $plan);
10 public function get_convertid() {
11 return $this->plan->get_backupid();
14 /**
15 * @return plan_converter
17 public function get_converter() {
18 return $this->plan->get_converter();
21 protected function define_settings() {
22 // None
25 public function execute_after_convert() {
26 if ($this->executed) {
27 foreach ($this->steps as $step) {
28 $step->execute_after_convert();