1 | <?php |
||
15 | class module_base implements module_interface |
||
16 | { |
||
17 | /** @var int Module's allowed columns */ |
||
18 | protected $columns; |
||
19 | |||
20 | /** @var string Module name */ |
||
21 | protected $name; |
||
22 | |||
23 | /** @var string Module image source */ |
||
24 | protected $image_src; |
||
25 | |||
26 | /** @var string Module language file */ |
||
27 | protected $language; |
||
28 | |||
29 | /** @var bool Can include this module multiple times */ |
||
30 | protected $multiple_includes = false; |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | 13 | public function get_allowed_columns() |
|
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | 1 | public function get_name() |
|
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | 1 | public function get_image() |
|
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | 5 | public function get_language() |
|
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | 1 | public function get_template_side($module_id) |
|
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | 1 | public function get_template_center($module_id) |
|
79 | |||
80 | /** |
||
81 | * {@inheritdoc} |
||
82 | */ |
||
83 | 1 | public function get_template_acp($module_id) |
|
87 | |||
88 | /** |
||
89 | * {@inheritdoc} |
||
90 | */ |
||
91 | 1 | public function install($module_id) |
|
95 | |||
96 | /** |
||
97 | * {@inheritdoc} |
||
98 | */ |
||
99 | 1 | public function uninstall($module_id, $db) |
|
103 | |||
104 | /** |
||
105 | * {@inheritdoc} |
||
106 | */ |
||
107 | 1 | public function can_multi_include() |
|
111 | } |
||
112 |