@@ -40,10 +40,10 @@ |
||
| 40 | 40 | 'GALLERY_POPUP' => 'Galerij', |
| 41 | 41 | 'GALLERY_POPUP_HELPLINE' => 'Opent een popup-venster waarin je je eigen recente afbeeldingen kan selecteren en nieuwe afbeeldingen kan uploaden.', |
| 42 | 42 | |
| 43 | - // Please do not change the copyright. |
|
| 44 | - 'GALLERY_COPYRIGHT' => 'Powered by <a href="http://www.anavaro.com/">phpBB Gallery</a> © 2016 <a href="http://www.anavaro.com/">Lucifer</a>', |
|
| 43 | + // Please do not change the copyright. |
|
| 44 | + 'GALLERY_COPYRIGHT' => 'Powered by <a href="http://www.anavaro.com/">phpBB Gallery</a> © 2016 <a href="http://www.anavaro.com/">Lucifer</a>', |
|
| 45 | 45 | |
| 46 | - // A little line where you can give yourself some credits on the translation. |
|
| 46 | + // A little line where you can give yourself some credits on the translation. |
|
| 47 | 47 | //'GALLERY_TRANSLATION_INFO' => 'English “phpBB Gallery“-Translation by <a href="http://www.flying-bits.org/">nickvergessen</a>', |
| 48 | 48 | 'GALLERY_TRANSLATION_INFO' => 'Nederlandse vertaling door <a href="https://github.com/dutch-translators">Dutch Translators</a>', |
| 49 | 49 | |
@@ -364,8 +364,8 @@ |
||
| 364 | 364 | 'QUICK_MOD' => 'Selecteer moderator actie', |
| 365 | 365 | 'WRONG_FILESIZE' => 'De afbeeldingsgrootte is groter dan toegestaan!', |
| 366 | 366 | |
| 367 | - 'UNREAD_IMAGES' => 'Unviewed images', |
|
| 368 | - 'NO_UNREAD_IMAGES' => 'No unviewed images', |
|
| 367 | + 'UNREAD_IMAGES' => 'Unviewed images', |
|
| 368 | + 'NO_UNREAD_IMAGES' => 'No unviewed images', |
|
| 369 | 369 | |
| 370 | 370 | // Versions 1.2.1 addiotions |
| 371 | 371 | 'GALLERY_DROP' => 'Plaats je afbeeldingen hier', |
@@ -183,10 +183,10 @@ discard block |
||
| 183 | 183 | } |
| 184 | 184 | |
| 185 | 185 | /** |
| 186 | - * Delete comments |
|
| 187 | - * |
|
| 188 | - * @param mixed $comment_ids Array or integer with comment_id we delete. |
|
| 189 | - */ |
|
| 186 | + * Delete comments |
|
| 187 | + * |
|
| 188 | + * @param mixed $comment_ids Array or integer with comment_id we delete. |
|
| 189 | + */ |
|
| 190 | 190 | public function delete_comments($comment_ids) |
| 191 | 191 | { |
| 192 | 192 | $comment_ids = $this->cast_mixed_int2array($comment_ids); |
@@ -216,11 +216,11 @@ discard block |
||
| 216 | 216 | } |
| 217 | 217 | |
| 218 | 218 | /** |
| 219 | - * Delete comments for given image_ids |
|
| 220 | - * |
|
| 221 | - * @param mixed $image_ids Array or integer with image_id where we delete the comments. |
|
| 222 | - * @param bool $reset_stats Shall we also reset the statistics? We can save that query, when the images are deleted anyway. |
|
| 223 | - */ |
|
| 219 | + * Delete comments for given image_ids |
|
| 220 | + * |
|
| 221 | + * @param mixed $image_ids Array or integer with image_id where we delete the comments. |
|
| 222 | + * @param bool $reset_stats Shall we also reset the statistics? We can save that query, when the images are deleted anyway. |
|
| 223 | + */ |
|
| 224 | 224 | public function delete_images($image_ids, $reset_stats = false) |
| 225 | 225 | { |
| 226 | 226 | $image_ids = $this->cast_mixed_int2array($image_ids); |
@@ -95,11 +95,11 @@ discard block |
||
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | /** |
| 98 | - * Remove images from watch-list |
|
| 99 | - * |
|
| 100 | - * @param mixed $image_ids Array or integer with image_id where we delete from the watch-list. |
|
| 101 | - * @param mixed $user_ids If not set, it uses the currents user_id |
|
| 102 | - */ |
|
| 98 | + * Remove images from watch-list |
|
| 99 | + * |
|
| 100 | + * @param mixed $image_ids Array or integer with image_id where we delete from the watch-list. |
|
| 101 | + * @param mixed $user_ids If not set, it uses the currents user_id |
|
| 102 | + */ |
|
| 103 | 103 | public function remove($image_ids, $user_ids = false) |
| 104 | 104 | { |
| 105 | 105 | $image_ids = self::cast_mixed_int2array($image_ids); |
@@ -112,11 +112,11 @@ discard block |
||
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | /** |
| 115 | - * Remove albums from watch-list |
|
| 116 | - * |
|
| 117 | - * @param mixed $album_ids Array or integer with album_id where we delete from the watch-list. |
|
| 118 | - * @param mixed $user_ids If not set, it uses the currents user_id |
|
| 119 | - */ |
|
| 115 | + * Remove albums from watch-list |
|
| 116 | + * |
|
| 117 | + * @param mixed $album_ids Array or integer with album_id where we delete from the watch-list. |
|
| 118 | + * @param mixed $user_ids If not set, it uses the currents user_id |
|
| 119 | + */ |
|
| 120 | 120 | public function remove_albums($album_ids, $user_ids = false) |
| 121 | 121 | { |
| 122 | 122 | $album_ids = self::cast_mixed_int2array($album_ids); |
@@ -129,10 +129,10 @@ discard block |
||
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | /** |
| 132 | - * Delete given image_ids from watch-list |
|
| 133 | - * |
|
| 134 | - * @param mixed $image_ids Array or integer with image_id where we delete from watch-list. |
|
| 135 | - */ |
|
| 132 | + * Delete given image_ids from watch-list |
|
| 133 | + * |
|
| 134 | + * @param mixed $image_ids Array or integer with image_id where we delete from watch-list. |
|
| 135 | + */ |
|
| 136 | 136 | public function delete_images($image_ids) |
| 137 | 137 | { |
| 138 | 138 | $image_ids = self::cast_mixed_int2array($image_ids); |
@@ -144,10 +144,10 @@ discard block |
||
| 144 | 144 | |
| 145 | 145 | |
| 146 | 146 | /** |
| 147 | - * Delete given album_ids from watch-list |
|
| 148 | - * |
|
| 149 | - * @param mixed $album_ids Array or integer with album_id where we delete from watch-list. |
|
| 150 | - */ |
|
| 147 | + * Delete given album_ids from watch-list |
|
| 148 | + * |
|
| 149 | + * @param mixed $album_ids Array or integer with album_id where we delete from watch-list. |
|
| 150 | + */ |
|
| 151 | 151 | public function delete_albums($album_ids) |
| 152 | 152 | { |
| 153 | 153 | $album_ids = self::cast_mixed_int2array($album_ids); |
@@ -14,27 +14,27 @@ discard block |
||
| 14 | 14 | { |
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | - * Gallery Auth Object |
|
| 18 | - * @var \phpbbgallery\core\auth\auth |
|
| 19 | - */ |
|
| 17 | + * Gallery Auth Object |
|
| 18 | + * @var \phpbbgallery\core\auth\auth |
|
| 19 | + */ |
|
| 20 | 20 | protected $auth; |
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | - * Config Object |
|
| 24 | - * @var \phpbb\config\config |
|
| 25 | - */ |
|
| 23 | + * Config Object |
|
| 24 | + * @var \phpbb\config\config |
|
| 25 | + */ |
|
| 26 | 26 | protected $config; |
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | - * Template Object |
|
| 30 | - * @var \phpbb\template\template |
|
| 31 | - */ |
|
| 29 | + * Template Object |
|
| 30 | + * @var \phpbb\template\template |
|
| 31 | + */ |
|
| 32 | 32 | protected $template; |
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | - * User Object |
|
| 36 | - * @var \phpbb\user |
|
| 37 | - */ |
|
| 35 | + * User Object |
|
| 36 | + * @var \phpbb\user |
|
| 37 | + */ |
|
| 38 | 38 | protected $user; |
| 39 | 39 | |
| 40 | 40 | /** |
@@ -62,17 +62,17 @@ discard block |
||
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | /** |
| 65 | - * User authorisation levels output |
|
| 66 | - * |
|
| 67 | - * @param int $album_id The current album the user is in. |
|
| 68 | - * @param int $album_status The albums status bit. |
|
| 69 | - * @param int $album_user_id The user-id of the album owner. Saves us a call to the cache if it is set. |
|
| 70 | - * @return null |
|
| 71 | - * |
|
| 72 | - * borrowed from phpBB3 |
|
| 73 | - * @author: phpBB Group |
|
| 74 | - * @function: gen_forum_auth_level |
|
| 75 | - */ |
|
| 65 | + * User authorisation levels output |
|
| 66 | + * |
|
| 67 | + * @param int $album_id The current album the user is in. |
|
| 68 | + * @param int $album_status The albums status bit. |
|
| 69 | + * @param int $album_user_id The user-id of the album owner. Saves us a call to the cache if it is set. |
|
| 70 | + * @return null |
|
| 71 | + * |
|
| 72 | + * borrowed from phpBB3 |
|
| 73 | + * @author: phpBB Group |
|
| 74 | + * @function: gen_forum_auth_level |
|
| 75 | + */ |
|
| 76 | 76 | public function display($album_id, $album_status, $album_user_id = -1) |
| 77 | 77 | { |
| 78 | 78 | $locked = ($album_status == ITEM_LOCKED && !$this->auth->acl_check('m_', $album_id, $album_user_id)) ? true : false; |
@@ -41,39 +41,39 @@ discard block |
||
| 41 | 41 | protected $acl_cache = array(); |
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | - * Cache object |
|
| 45 | - * @var \phpbbgallery\core\cache |
|
| 46 | - */ |
|
| 44 | + * Cache object |
|
| 45 | + * @var \phpbbgallery\core\cache |
|
| 46 | + */ |
|
| 47 | 47 | protected $cache; |
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | - * Database object |
|
| 51 | - * @var \phpbb\db\driver\driver |
|
| 52 | - */ |
|
| 50 | + * Database object |
|
| 51 | + * @var \phpbb\db\driver\driver |
|
| 52 | + */ |
|
| 53 | 53 | protected $db; |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | - * Gallery user object |
|
| 57 | - * @var \phpbbgallery\core\user |
|
| 58 | - */ |
|
| 56 | + * Gallery user object |
|
| 57 | + * @var \phpbbgallery\core\user |
|
| 58 | + */ |
|
| 59 | 59 | protected $user; |
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | - * Gallery permissions table |
|
| 63 | - * @var string |
|
| 64 | - */ |
|
| 62 | + * Gallery permissions table |
|
| 63 | + * @var string |
|
| 64 | + */ |
|
| 65 | 65 | protected $table_permissions; |
| 66 | 66 | |
| 67 | 67 | /** |
| 68 | - * Gallery permission roles table |
|
| 69 | - * @var string |
|
| 70 | - */ |
|
| 68 | + * Gallery permission roles table |
|
| 69 | + * @var string |
|
| 70 | + */ |
|
| 71 | 71 | protected $table_roles; |
| 72 | 72 | |
| 73 | 73 | /** |
| 74 | - * Gallery users table |
|
| 75 | - * @var string |
|
| 76 | - */ |
|
| 74 | + * Gallery users table |
|
| 75 | + * @var string |
|
| 76 | + */ |
|
| 77 | 77 | protected $table_users; |
| 78 | 78 | |
| 79 | 79 | /** |
@@ -320,8 +320,8 @@ discard block |
||
| 320 | 320 | } |
| 321 | 321 | |
| 322 | 322 | /** |
| 323 | - * Merge the NEVER-options into the YES-options by removing the YES, if it is set. |
|
| 324 | - */ |
|
| 323 | + * Merge the NEVER-options into the YES-options by removing the YES, if it is set. |
|
| 324 | + */ |
|
| 325 | 325 | protected function merge_acl_row() |
| 326 | 326 | { |
| 327 | 327 | foreach ($this->_auth_data as $album_id => $obj) |
@@ -566,14 +566,14 @@ discard block |
||
| 566 | 566 | } |
| 567 | 567 | |
| 568 | 568 | /** |
| 569 | - * Get permission |
|
| 570 | - * |
|
| 571 | - * @param string $acl One of the permissions, Exp: i_view |
|
| 572 | - * @param int $a_id The album_id, from which we want to have the permissions |
|
| 573 | - * @param int $u_id The user_id from the album-owner. If not specified we need to get it from the cache. |
|
| 574 | - * |
|
| 575 | - * @return bool Is the user allowed to do the $acl? |
|
| 576 | - */ |
|
| 569 | + * Get permission |
|
| 570 | + * |
|
| 571 | + * @param string $acl One of the permissions, Exp: i_view |
|
| 572 | + * @param int $a_id The album_id, from which we want to have the permissions |
|
| 573 | + * @param int $u_id The user_id from the album-owner. If not specified we need to get it from the cache. |
|
| 574 | + * |
|
| 575 | + * @return bool Is the user allowed to do the $acl? |
|
| 576 | + */ |
|
| 577 | 577 | public function acl_check($acl, $a_id, $u_id = -1) |
| 578 | 578 | { |
| 579 | 579 | $bit = self::$_permissions_flipped[$acl]; |
@@ -636,12 +636,12 @@ discard block |
||
| 636 | 636 | } |
| 637 | 637 | |
| 638 | 638 | /** |
| 639 | - * Does the user have the permission for any album? |
|
| 640 | - * |
|
| 641 | - * @param string $acl One of the permissions, Exp: i_view; *_count permissions are not allowed! |
|
| 642 | - * |
|
| 643 | - * @return bool Is the user allowed to do the $acl? |
|
| 644 | - */ |
|
| 639 | + * Does the user have the permission for any album? |
|
| 640 | + * |
|
| 641 | + * @param string $acl One of the permissions, Exp: i_view; *_count permissions are not allowed! |
|
| 642 | + * |
|
| 643 | + * @return bool Is the user allowed to do the $acl? |
|
| 644 | + */ |
|
| 645 | 645 | public function acl_check_global($acl) |
| 646 | 646 | { |
| 647 | 647 | $bit = self::$_permissions_flipped[$acl]; |
@@ -673,16 +673,16 @@ discard block |
||
| 673 | 673 | } |
| 674 | 674 | |
| 675 | 675 | /** |
| 676 | - * Get albums by permission |
|
| 677 | - * |
|
| 678 | - * @param string $acl One of the permissions, Exp: i_view; *_count permissions are not allowed! |
|
| 679 | - * @param string $return Type of the return value. array returns an array, else it's a string. |
|
| 680 | - * bool means it only checks whether the user has the permission anywhere. |
|
| 681 | - * @param bool $display_in_rrc Only return albums, that have the display_in_rrc-flag set. |
|
| 682 | - * @param bool $display_pegas Include personal galleries in the list. |
|
| 683 | - * |
|
| 684 | - * @return mixed $album_ids, either as list or array. |
|
| 685 | - */ |
|
| 676 | + * Get albums by permission |
|
| 677 | + * |
|
| 678 | + * @param string $acl One of the permissions, Exp: i_view; *_count permissions are not allowed! |
|
| 679 | + * @param string $return Type of the return value. array returns an array, else it's a string. |
|
| 680 | + * bool means it only checks whether the user has the permission anywhere. |
|
| 681 | + * @param bool $display_in_rrc Only return albums, that have the display_in_rrc-flag set. |
|
| 682 | + * @param bool $display_pegas Include personal galleries in the list. |
|
| 683 | + * |
|
| 684 | + * @return mixed $album_ids, either as list or array. |
|
| 685 | + */ |
|
| 686 | 686 | public function acl_album_ids($acl, $return = 'array', $display_in_rrc = false, $display_pegas = true) |
| 687 | 687 | { |
| 688 | 688 | $bit = self::$_permissions_flipped[$acl]; |
@@ -135,13 +135,13 @@ discard block |
||
| 135 | 135 | ); |
| 136 | 136 | |
| 137 | 137 | /** |
| 138 | - * Event to send requested data |
|
| 139 | - * @event phpbbgallery.core.acp.albums.request_data |
|
| 140 | - * @var string action Action we are taking |
|
| 141 | - * @var int album_id Album we are doing it to |
|
| 142 | - * @var array album_data Album data for the album |
|
| 143 | - * @since 1.2.0 |
|
| 144 | - */ |
|
| 138 | + * Event to send requested data |
|
| 139 | + * @event phpbbgallery.core.acp.albums.request_data |
|
| 140 | + * @var string action Action we are taking |
|
| 141 | + * @var int album_id Album we are doing it to |
|
| 142 | + * @var array album_data Album data for the album |
|
| 143 | + * @since 1.2.0 |
|
| 144 | + */ |
|
| 145 | 145 | $vars = array('action', 'album_id', 'album_data'); |
| 146 | 146 | extract($phpbb_dispatcher->trigger_event('phpbbgallery.core.acp.albums.request_data', compact($vars))); |
| 147 | 147 | |
@@ -384,13 +384,13 @@ discard block |
||
| 384 | 384 | ); |
| 385 | 385 | |
| 386 | 386 | /** |
| 387 | - * Event to send default data |
|
| 388 | - * |
|
| 389 | - * @event phpbbgallery.core.acp.albums.default_data |
|
| 390 | - * @var action action Action taken |
|
| 391 | - * @var array album_data Album data array |
|
| 392 | - * @since 1.2.0 |
|
| 393 | - */ |
|
| 387 | + * Event to send default data |
|
| 388 | + * |
|
| 389 | + * @event phpbbgallery.core.acp.albums.default_data |
|
| 390 | + * @var action action Action taken |
|
| 391 | + * @var array album_data Album data array |
|
| 392 | + * @since 1.2.0 |
|
| 393 | + */ |
|
| 394 | 394 | $vars = array('action', 'album_data'); |
| 395 | 395 | extract($phpbb_dispatcher->trigger_event('phpbbgallery.core.acp.albums.default_data', compact($vars))); |
| 396 | 396 | |
@@ -561,13 +561,13 @@ discard block |
||
| 561 | 561 | )); |
| 562 | 562 | |
| 563 | 563 | /** |
| 564 | - * Event after assigning data to templete |
|
| 565 | - * |
|
| 566 | - * @event phpbbgallery.core.acp.albums.send_to_template |
|
| 567 | - * @var action action Action taken |
|
| 568 | - * @var array album_data Album data array |
|
| 569 | - * @since 1.2.0 |
|
| 570 | - */ |
|
| 564 | + * Event after assigning data to templete |
|
| 565 | + * |
|
| 566 | + * @event phpbbgallery.core.acp.albums.send_to_template |
|
| 567 | + * @var action action Action taken |
|
| 568 | + * @var array album_data Album data array |
|
| 569 | + * @since 1.2.0 |
|
| 570 | + */ |
|
| 571 | 571 | $vars = array('action', 'album_data'); |
| 572 | 572 | extract($phpbb_dispatcher->trigger_event('phpbbgallery.core.acp.albums.send_to_template', compact($vars))); |
| 573 | 573 | |
@@ -12,13 +12,13 @@ discard block |
||
| 12 | 12 | class config_module |
| 13 | 13 | { |
| 14 | 14 | /** |
| 15 | - * This function is called, when the main() function is called. |
|
| 16 | - * You can use this function to add your language files, check for a valid mode, unset config options and more. |
|
| 17 | - * |
|
| 18 | - * @param int $id The ID of the module |
|
| 19 | - * @param string $mode The name of the mode we want to display |
|
| 20 | - * @return void |
|
| 21 | - */ |
|
| 15 | + * This function is called, when the main() function is called. |
|
| 16 | + * You can use this function to add your language files, check for a valid mode, unset config options and more. |
|
| 17 | + * |
|
| 18 | + * @param int $id The ID of the module |
|
| 19 | + * @param string $mode The name of the mode we want to display |
|
| 20 | + * @return void |
|
| 21 | + */ |
|
| 22 | 22 | public function main($id, $mode) |
| 23 | 23 | { |
| 24 | 24 | // Check whether the mode is allowed. |
@@ -263,33 +263,33 @@ discard block |
||
| 263 | 263 | } |
| 264 | 264 | |
| 265 | 265 | /** |
| 266 | - * Returns an array with the display_var array for the given mode |
|
| 267 | - * The returned display must have the two keys title and vars |
|
| 268 | - * @key string title The page title or lang key for the page title |
|
| 269 | - * @key array vars An array of tupels, one foreach config option we display: |
|
| 270 | - * @key The name of the config in the get_config_array() array. |
|
| 271 | - * If the key starts with 'legend' a new box is opened with the value being the title of this box. |
|
| 272 | - * @value An array with several options: |
|
| 273 | - * @key lang Description for the config value (can be a language key) |
|
| 274 | - * @key explain Boolean whether the config has an explanation of not. |
|
| 275 | - * If true, <lang>_EXP (and <lang>_EXPLAIN) is displayed as explanation |
|
| 276 | - * @key validate The config value can be validated as bool, int or string. |
|
| 277 | - * Additional a min and max value can be specified for integers |
|
| 278 | - * On strings the min and max value are the length of the string |
|
| 279 | - * If your config value shall not be casted, remove the validate-key. |
|
| 280 | - * @key type The type of the config option: |
|
| 281 | - * - Radio buttons: Either with "Yes and No" (radio:yes_no) or "Enabled and Disabled" (radio:enabled_disabled) as description |
|
| 282 | - * - Text/password field: "text:<field-size>:<text-max-length>" and "password:<field-size>:<text-max-length>" |
|
| 283 | - * - Select: "select" requires the key "function" or "method" to be set which provides the html code for the options |
|
| 284 | - * - Custom template: "custom" requires the key "function" or "method" to be set which provides the html code |
|
| 285 | - * @key function/method Required when using type select and custom |
|
| 286 | - * @key append A language string that is appended after the config type (e.g. You can append 'px' to a pixel size field) |
|
| 287 | - * This last parameter is optional |
|
| 288 | - * @key string tpl Name of the template file we use to display the configs |
|
| 289 | - * |
|
| 290 | - * @param string $mode The name of the mode we want to display |
|
| 291 | - * @return array See description above |
|
| 292 | - */ |
|
| 266 | + * Returns an array with the display_var array for the given mode |
|
| 267 | + * The returned display must have the two keys title and vars |
|
| 268 | + * @key string title The page title or lang key for the page title |
|
| 269 | + * @key array vars An array of tupels, one foreach config option we display: |
|
| 270 | + * @key The name of the config in the get_config_array() array. |
|
| 271 | + * If the key starts with 'legend' a new box is opened with the value being the title of this box. |
|
| 272 | + * @value An array with several options: |
|
| 273 | + * @key lang Description for the config value (can be a language key) |
|
| 274 | + * @key explain Boolean whether the config has an explanation of not. |
|
| 275 | + * If true, <lang>_EXP (and <lang>_EXPLAIN) is displayed as explanation |
|
| 276 | + * @key validate The config value can be validated as bool, int or string. |
|
| 277 | + * Additional a min and max value can be specified for integers |
|
| 278 | + * On strings the min and max value are the length of the string |
|
| 279 | + * If your config value shall not be casted, remove the validate-key. |
|
| 280 | + * @key type The type of the config option: |
|
| 281 | + * - Radio buttons: Either with "Yes and No" (radio:yes_no) or "Enabled and Disabled" (radio:enabled_disabled) as description |
|
| 282 | + * - Text/password field: "text:<field-size>:<text-max-length>" and "password:<field-size>:<text-max-length>" |
|
| 283 | + * - Select: "select" requires the key "function" or "method" to be set which provides the html code for the options |
|
| 284 | + * - Custom template: "custom" requires the key "function" or "method" to be set which provides the html code |
|
| 285 | + * @key function/method Required when using type select and custom |
|
| 286 | + * @key append A language string that is appended after the config type (e.g. You can append 'px' to a pixel size field) |
|
| 287 | + * This last parameter is optional |
|
| 288 | + * @key string tpl Name of the template file we use to display the configs |
|
| 289 | + * |
|
| 290 | + * @param string $mode The name of the mode we want to display |
|
| 291 | + * @return array See description above |
|
| 292 | + */ |
|
| 293 | 293 | public function get_display_vars($mode) |
| 294 | 294 | { |
| 295 | 295 | global $phpbb_dispatcher; |
@@ -297,12 +297,12 @@ discard block |
||
| 297 | 297 | $return_ary = $this->display_vars[$mode]; |
| 298 | 298 | |
| 299 | 299 | /** |
| 300 | - * Event to send the display vars |
|
| 301 | - * @event phpbbgallery.core.acp.config.get_display_vars |
|
| 302 | - * @var string mode Mode we are requesting for |
|
| 303 | - * @var array return_ary Array we are sending back |
|
| 304 | - * @since 1.2.0 |
|
| 305 | - */ |
|
| 300 | + * Event to send the display vars |
|
| 301 | + * @event phpbbgallery.core.acp.config.get_display_vars |
|
| 302 | + * @var string mode Mode we are requesting for |
|
| 303 | + * @var array return_ary Array we are sending back |
|
| 304 | + * @since 1.2.0 |
|
| 305 | + */ |
|
| 306 | 306 | $vars = array('mode', 'return_ary'); |
| 307 | 307 | extract($phpbb_dispatcher->trigger_event('phpbbgallery.core.acp.config.get_display_vars', compact($vars))); |
| 308 | 308 | |
@@ -11,20 +11,20 @@ discard block |
||
| 11 | 11 | class phpbbgallery_new_report extends \phpbb\notification\type\base |
| 12 | 12 | { |
| 13 | 13 | /** |
| 14 | - * Get notification type name |
|
| 15 | - * |
|
| 16 | - * @return string |
|
| 17 | - */ |
|
| 14 | + * Get notification type name |
|
| 15 | + * |
|
| 16 | + * @return string |
|
| 17 | + */ |
|
| 18 | 18 | public function get_type() |
| 19 | 19 | { |
| 20 | 20 | return 'phpbbgallery.core.notification.new_report'; |
| 21 | 21 | } |
| 22 | 22 | /** |
| 23 | - * Notification option data (for outputting to the user) |
|
| 24 | - * |
|
| 25 | - * @var bool|array False if the service should use it's default data |
|
| 26 | - * Array of data (including keys 'id', 'lang', and 'group') |
|
| 27 | - */ |
|
| 23 | + * Notification option data (for outputting to the user) |
|
| 24 | + * |
|
| 25 | + * @var bool|array False if the service should use it's default data |
|
| 26 | + * Array of data (including keys 'id', 'lang', and 'group') |
|
| 27 | + */ |
|
| 28 | 28 | public static $notification_option = array( |
| 29 | 29 | 'lang' => 'NOTIFICATION_TYPE_PHPBBGALLERY_NEW_REPORT', |
| 30 | 30 | ); |
@@ -46,10 +46,10 @@ discard block |
||
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | - * Is this type available to the current user (defines whether or not it will be shown in the UCP Edit notification options) |
|
| 50 | - * |
|
| 51 | - * @return bool True/False whether or not this is available to the user |
|
| 52 | - */ |
|
| 49 | + * Is this type available to the current user (defines whether or not it will be shown in the UCP Edit notification options) |
|
| 50 | + * |
|
| 51 | + * @return bool True/False whether or not this is available to the user |
|
| 52 | + */ |
|
| 53 | 53 | public function is_available() |
| 54 | 54 | { |
| 55 | 55 | return true; |
@@ -103,10 +103,10 @@ discard block |
||
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | /** |
| 106 | - * Get the HTML formatted title of this notification |
|
| 107 | - * |
|
| 108 | - * @return string |
|
| 109 | - */ |
|
| 106 | + * Get the HTML formatted title of this notification |
|
| 107 | + * |
|
| 108 | + * @return string |
|
| 109 | + */ |
|
| 110 | 110 | public function get_title() |
| 111 | 111 | { |
| 112 | 112 | $users = array($this->get_data('reporter')); |
@@ -116,19 +116,19 @@ discard block |
||
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | /** |
| 119 | - * Get email template |
|
| 120 | - * |
|
| 121 | - * @return string|bool |
|
| 122 | - */ |
|
| 119 | + * Get email template |
|
| 120 | + * |
|
| 121 | + * @return string|bool |
|
| 122 | + */ |
|
| 123 | 123 | public function get_email_template() |
| 124 | 124 | { |
| 125 | 125 | return false; |
| 126 | 126 | } |
| 127 | 127 | /** |
| 128 | - * Get email template variables |
|
| 129 | - * |
|
| 130 | - * @return array |
|
| 131 | - */ |
|
| 128 | + * Get email template variables |
|
| 129 | + * |
|
| 130 | + * @return array |
|
| 131 | + */ |
|
| 132 | 132 | public function get_email_template_variables() |
| 133 | 133 | { |
| 134 | 134 | return array(); |
@@ -155,14 +155,14 @@ discard block |
||
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | /** |
| 158 | - * Function for preparing the data for insertion in an SQL query |
|
| 159 | - * (The service handles insertion) |
|
| 160 | - * |
|
| 161 | - * @param array $data The data for the updated rules |
|
| 162 | - * @param array $pre_create_data Data from pre_create_insert_array() |
|
| 163 | - * |
|
| 164 | - * @return array Array of data ready to be inserted into the database |
|
| 165 | - */ |
|
| 158 | + * Function for preparing the data for insertion in an SQL query |
|
| 159 | + * (The service handles insertion) |
|
| 160 | + * |
|
| 161 | + * @param array $data The data for the updated rules |
|
| 162 | + * @param array $pre_create_data Data from pre_create_insert_array() |
|
| 163 | + * |
|
| 164 | + * @return array Array of data ready to be inserted into the database |
|
| 165 | + */ |
|
| 166 | 166 | public function create_insert_array($data, $pre_create_data = array()) |
| 167 | 167 | { |
| 168 | 168 | $this->set_data('item_id', $data['item_id']); |