1 | <?php |
||
13 | class ext extends \phpbb\extension\base |
||
14 | { |
||
15 | /** @var string Minimum requirements: phpBB 3.2.1 */ |
||
16 | const PHPBB_MINIMUM = '3.2.1'; |
||
17 | |||
18 | /** @var string YAML file extension */ |
||
19 | const YML = '.yml'; |
||
20 | |||
21 | /** |
||
22 | * @var array An array of installation error messages |
||
23 | */ |
||
24 | protected $errors = []; |
||
25 | |||
26 | /** |
||
27 | * {@inheritDoc} |
||
28 | */ |
||
29 | public function is_enableable() |
||
35 | |||
36 | /** |
||
37 | * Check the installed phpBB version meets this |
||
38 | * extension's requirements. |
||
39 | * |
||
40 | * @return \phpbb\mediaembed\ext |
||
41 | */ |
||
42 | protected function check_phpbb_version() |
||
51 | |||
52 | /** |
||
53 | * Check if s9e MediaEmbed extension for phpBB is installed |
||
54 | * (it must NOT be to enable this extension). |
||
55 | * |
||
56 | * @return \phpbb\mediaembed\ext |
||
57 | */ |
||
58 | protected function check_s9e_mediaembed() |
||
69 | |||
70 | /** |
||
71 | * Return the is enableable result. Either true, or the best enable failed |
||
72 | * response for the current phpBB environment: array of error messages |
||
73 | * in phpBB 3.3 or newer, false otherwise. |
||
74 | * |
||
75 | * @return array|bool |
||
76 | */ |
||
77 | protected function result() |
||
93 | } |
||
94 |