satanasov /
phpbbgallery
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * phpBB Gallery - Core Extension |
||
| 4 | * |
||
| 5 | * @package phpbbgallery/core |
||
| 6 | * @author nickvergessen |
||
| 7 | * @author satanasov |
||
| 8 | * @author Leinad4Mind |
||
| 9 | * @copyright 2007-2012 nickvergessen, 2014- satanasov, 2018- Leinad4Mind |
||
| 10 | * @license GPL-2.0-only |
||
| 11 | */ |
||
| 12 | |||
| 13 | namespace phpbbgallery\core\acp; |
||
| 14 | |||
| 15 | class permissions_info |
||
| 16 | { |
||
| 17 | function module() |
||
|
0 ignored issues
–
show
|
|||
| 18 | { |
||
| 19 | return array( |
||
| 20 | 'title' => 'PHPBB_GALLERY', |
||
| 21 | 'version' => '1.0.0', |
||
| 22 | 'modes' => array( |
||
| 23 | 'manage' => array( |
||
| 24 | 'title' => 'ACP_GALLERY_ALBUM_PERMISSIONS', |
||
| 25 | 'auth' => 'ext_phpbbgallery/core && acl_a_gallery_albums', |
||
| 26 | 'cat' => array('PHPBB_GALLERY') |
||
| 27 | ), |
||
| 28 | 'copy' => array( |
||
| 29 | 'title' => 'ACP_GALLERY_ALBUM_PERMISSIONS_COPY', |
||
| 30 | 'auth' => 'ext_phpbbgallery/core && acl_a_gallery_albums', |
||
| 31 | 'cat' => array('PHPBB_GALLERY') |
||
| 32 | ), |
||
| 33 | ), |
||
| 34 | ); |
||
| 35 | } |
||
| 36 | } |
||
| 37 |
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.