mirrored from git://git.moodle.org/moodle.git
/
convert_plan.class.php
43 lines (38 loc) · 1.13 KB
/
convert_plan.class.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* Convert Plan
*/
class convert_plan extends base_plan implements loggable {
/**
* @var plan_converter
*/
protected $converter;
public function __construct(plan_converter $converter) {
$this->converter = $converter;
parent::__construct('convert_plan');
}
/**
* This function will be responsible for handling the params, and to call
* to the corresponding logger->process() once all modifications in params
* have been performed
*/
public function log($message, $level, $a = null, $depth = null, $display = false) {
// TODO: Implement log() method.
}
public function get_basepath() {
return $this->converter->get_convertdir();
}
public function get_converterid() {
return $this->converter->get_id();
}
/**
* Function responsible for building the tasks of any plan
* with their corresponding settings
* (must set the $built property to true)
*/
public function build() {
// This seems circular for no real reason....
$this->converter->build_plan();
$this->built = true;
}
}