1 | <?php |
||
12 | class helper |
||
13 | { |
||
14 | /** |
||
15 | * Board3 Modules service collection |
||
16 | * @var \phpbb\di\service_collection |
||
17 | */ |
||
18 | protected $modules; |
||
19 | |||
20 | /** |
||
21 | * Constructor |
||
22 | * NOTE: The parameters of this method must match in order and type with |
||
23 | * the dependencies defined in the services.yml file for this service. |
||
24 | * @param \phpbb\di\service_collection $modules Board3 Modules service |
||
25 | * collection |
||
26 | */ |
||
27 | 59 | public function __construct($modules) |
|
31 | |||
32 | /** |
||
33 | * Register list of Board3 Portal modules |
||
34 | * |
||
35 | * @param \phpbb\di\service_collection $modules Board3 Modules service |
||
36 | * collection |
||
37 | * @return null |
||
38 | */ |
||
39 | 59 | protected function register_modules($modules) |
|
50 | |||
51 | /** |
||
52 | * Get module specified by module class name |
||
53 | * |
||
54 | * @param string $module_name Module class name |
||
55 | * |
||
56 | * @return bool|object The module object if it exists, false if not |
||
57 | */ |
||
58 | 26 | public function get_module($module_name) |
|
69 | |||
70 | /** |
||
71 | * Get all supported modules |
||
72 | * |
||
73 | * @return array An array containing all supported modules |
||
74 | */ |
||
75 | 1 | public function get_all_modules() |
|
79 | } |
||
80 |