1 | <?php |
||
16 | class main_module |
||
17 | { |
||
18 | /** @var \phpbb\cache\driver\driver_interface $cache */ |
||
19 | protected $cache; |
||
20 | |||
21 | /** @var \phpbb\config\config $config */ |
||
22 | protected $config; |
||
23 | |||
24 | /** @var \phpbb\config\db_text $config_text */ |
||
25 | protected $config_text; |
||
26 | |||
27 | /** @var \Symfony\Component\DependencyInjection\ContainerInterface $container */ |
||
28 | protected $container; |
||
29 | |||
30 | /** @var \phpbb\language\language $language */ |
||
31 | protected $language; |
||
32 | |||
33 | /** @var \phpbb\log\log $log */ |
||
34 | protected $log; |
||
35 | |||
36 | /** @var \phpbb\mediaembed\cache\cache $mediaembed_cache */ |
||
37 | protected $mediaembed_cache; |
||
38 | |||
39 | /** @var \phpbb\request\request $request */ |
||
40 | protected $request; |
||
41 | |||
42 | /** @var \phpbb\template\template $template */ |
||
43 | protected $template; |
||
44 | |||
45 | /** @var \phpbb\user */ |
||
46 | protected $user; |
||
47 | |||
48 | /** @var array $enabled_sites */ |
||
49 | protected $enabled_sites; |
||
50 | |||
51 | /** @var string $page_title */ |
||
52 | public $page_title; |
||
53 | |||
54 | /** @var string $tpl_name */ |
||
55 | public $tpl_name; |
||
56 | |||
57 | /** @var string $u_action */ |
||
58 | public $u_action; |
||
59 | |||
60 | /** @var array An array of errors */ |
||
61 | protected $errors = []; |
||
62 | |||
63 | /** |
||
64 | * Constructor |
||
65 | * |
||
66 | * @throws \Exception |
||
67 | */ |
||
68 | public function __construct() |
||
85 | |||
86 | /** |
||
87 | * Main ACP module |
||
88 | * |
||
89 | * @param int $id The module ID (not used) |
||
90 | * @param string $mode The module mode (manage|settings) |
||
91 | * @throws \Exception |
||
92 | */ |
||
93 | public function main($id, $mode) |
||
120 | |||
121 | /** |
||
122 | * Add settings template vars to the form |
||
123 | */ |
||
124 | protected function display_settings() |
||
134 | |||
135 | /** |
||
136 | * Add manage sites template vars to the form |
||
137 | * |
||
138 | * @throws \Exception |
||
139 | */ |
||
140 | protected function display_manage() |
||
148 | |||
149 | /** |
||
150 | * Get a list of available sites |
||
151 | * |
||
152 | * @return array An array of available sites |
||
153 | * @throws \Exception |
||
154 | */ |
||
155 | protected function get_sites() |
||
178 | |||
179 | /** |
||
180 | * Get enabled media sites stored in the database |
||
181 | * |
||
182 | * @return array An array of enabled sites |
||
183 | */ |
||
184 | protected function get_enabled_sites() |
||
194 | |||
195 | /** |
||
196 | * Save site managed data to the database |
||
197 | */ |
||
198 | protected function save_manage() |
||
208 | |||
209 | /** |
||
210 | * Save settings data to the database |
||
211 | */ |
||
212 | protected function save_settings() |
||
225 | |||
226 | /** |
||
227 | * Purge cached TextFormatter files |
||
228 | */ |
||
229 | protected function purge_textformatter_cache() |
||
234 | |||
235 | /** |
||
236 | * Purge all MediaEmbed cache files |
||
237 | */ |
||
238 | protected function purge_mediaembed_cache() |
||
246 | } |
||
247 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.