1 | <?php |
||
2 | /** |
||
3 | * |
||
4 | * @package phpBB Gallery - ACP CleanUp Extension |
||
5 | * @copyright (c) 2012 nickvergessen - http://www.flying-bits.org/ |
||
6 | * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 |
||
7 | * |
||
8 | */ |
||
9 | |||
10 | namespace phpbbgallery\acpcleanup\acp; |
||
11 | |||
12 | class main_info |
||
13 | { |
||
14 | function module() |
||
0 ignored issues
–
show
|
|||
15 | { |
||
16 | return array( |
||
17 | 'filename' => 'main_module', |
||
18 | 'title' => 'PHPBB_GALLERY', |
||
19 | 'version' => '1.0.0', |
||
20 | 'modes' => array( |
||
21 | 'cleanup' => array( |
||
22 | 'title' => 'ACP_GALLERY_CLEANUP', |
||
23 | 'auth' => 'acl_a_gallery_cleanup && ext_phpbbgallery/acpcleanup', |
||
24 | 'cat' => array('PHPBB_GALLERY') |
||
25 | ), |
||
26 | ), |
||
27 | ); |
||
28 | } |
||
29 | } |
||
30 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.