Total Complexity | 5 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
3 | class Mobidico extends Plugin |
||
4 | { |
||
5 | public $isCoursePlugin = true; |
||
6 | |||
7 | // When creating a new course this settings are added to the course |
||
8 | public $course_settings = []; |
||
9 | |||
10 | protected function __construct() |
||
11 | { |
||
12 | parent::__construct( |
||
13 | 'O.1', |
||
14 | 'Julio Montoya', |
||
15 | [ |
||
16 | 'tool_enable' => 'boolean', |
||
17 | 'api_key' => 'text', |
||
18 | 'mobidico_url' => 'text', |
||
19 | ] |
||
20 | ); |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * @return Mobidico|null |
||
25 | */ |
||
26 | public static function create() |
||
27 | { |
||
28 | static $result = null; |
||
29 | |||
30 | return $result ? $result : $result = new self(); |
||
31 | } |
||
32 | |||
33 | public function install() |
||
35 | } |
||
36 | |||
37 | public function uninstall() |
||
39 | } |
||
40 | } |
||
41 |