@@ -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; |
@@ -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']); |
@@ -11,20 +11,20 @@ discard block |
||
11 | 11 | class phpbbgallery_new_comment 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_comment'; |
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_COMMENT', |
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; |
@@ -156,24 +156,24 @@ discard block |
||
156 | 156 | } |
157 | 157 | |
158 | 158 | /** |
159 | - * Users needed to query before this notification can be displayed |
|
160 | - * |
|
161 | - * @return array Array of user_ids |
|
162 | - */ |
|
159 | + * Users needed to query before this notification can be displayed |
|
160 | + * |
|
161 | + * @return array Array of user_ids |
|
162 | + */ |
|
163 | 163 | public function users_to_query() |
164 | 164 | { |
165 | 165 | return array(); |
166 | 166 | } |
167 | 167 | |
168 | 168 | /** |
169 | - * Function for preparing the data for insertion in an SQL query |
|
170 | - * (The service handles insertion) |
|
171 | - * |
|
172 | - * @param array $data The data for the updated rules |
|
173 | - * @param array $pre_create_data Data from pre_create_insert_array() |
|
174 | - * |
|
175 | - * @return array Array of data ready to be inserted into the database |
|
176 | - */ |
|
169 | + * Function for preparing the data for insertion in an SQL query |
|
170 | + * (The service handles insertion) |
|
171 | + * |
|
172 | + * @param array $data The data for the updated rules |
|
173 | + * @param array $pre_create_data Data from pre_create_insert_array() |
|
174 | + * |
|
175 | + * @return array Array of data ready to be inserted into the database |
|
176 | + */ |
|
177 | 177 | public function create_insert_array($data, $pre_create_data = array()) |
178 | 178 | { |
179 | 179 | $this->set_data('image_id', $data['image_id']); |
@@ -11,20 +11,20 @@ discard block |
||
11 | 11 | class phpbbgallery_new_image 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_image'; |
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_IMAGE', |
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; |
@@ -93,17 +93,17 @@ discard block |
||
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
96 | - * Get the user's avatar |
|
97 | - */ |
|
96 | + * Get the user's avatar |
|
97 | + */ |
|
98 | 98 | public function get_avatar() |
99 | 99 | { |
100 | 100 | return 0; |
101 | 101 | } |
102 | 102 | /** |
103 | - * Get the HTML formatted title of this notification |
|
104 | - * |
|
105 | - * @return string |
|
106 | - */ |
|
103 | + * Get the HTML formatted title of this notification |
|
104 | + * |
|
105 | + * @return string |
|
106 | + */ |
|
107 | 107 | public function get_title() |
108 | 108 | { |
109 | 109 | return $this->language->lang('NOTIFICATION_PHPBBGALLERY_NEW_IMAGE', $this->get_data('album_name')); |
@@ -121,19 +121,19 @@ discard block |
||
121 | 121 | } |
122 | 122 | |
123 | 123 | /** |
124 | - * Get email template |
|
125 | - * |
|
126 | - * @return string|bool |
|
127 | - */ |
|
124 | + * Get email template |
|
125 | + * |
|
126 | + * @return string|bool |
|
127 | + */ |
|
128 | 128 | public function get_email_template() |
129 | 129 | { |
130 | 130 | return false; |
131 | 131 | } |
132 | 132 | /** |
133 | - * Get email template variables |
|
134 | - * |
|
135 | - * @return array |
|
136 | - */ |
|
133 | + * Get email template variables |
|
134 | + * |
|
135 | + * @return array |
|
136 | + */ |
|
137 | 137 | public function get_email_template_variables() |
138 | 138 | { |
139 | 139 | return array(); |
@@ -160,14 +160,14 @@ discard block |
||
160 | 160 | } |
161 | 161 | |
162 | 162 | /** |
163 | - * Function for preparing the data for insertion in an SQL query |
|
164 | - * (The service handles insertion) |
|
165 | - * |
|
166 | - * @param array $data The data for the updated rules |
|
167 | - * @param array $pre_create_data Data from pre_create_insert_array() |
|
168 | - * |
|
169 | - * @return array Array of data ready to be inserted into the database |
|
170 | - */ |
|
163 | + * Function for preparing the data for insertion in an SQL query |
|
164 | + * (The service handles insertion) |
|
165 | + * |
|
166 | + * @param array $data The data for the updated rules |
|
167 | + * @param array $pre_create_data Data from pre_create_insert_array() |
|
168 | + * |
|
169 | + * @return array Array of data ready to be inserted into the database |
|
170 | + */ |
|
171 | 171 | public function create_insert_array($data, $pre_create_data = array()) |
172 | 172 | { |
173 | 173 | $this->set_data('album_name', $data['album_name']); |
@@ -11,20 +11,20 @@ discard block |
||
11 | 11 | class phpbbgallery_image_for_approval 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.image_for_approval'; |
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_IMAGE_FOR_APPROVE', |
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; |
@@ -127,19 +127,19 @@ discard block |
||
127 | 127 | } |
128 | 128 | |
129 | 129 | /** |
130 | - * Get email template |
|
131 | - * |
|
132 | - * @return string|bool |
|
133 | - */ |
|
130 | + * Get email template |
|
131 | + * |
|
132 | + * @return string|bool |
|
133 | + */ |
|
134 | 134 | public function get_email_template() |
135 | 135 | { |
136 | 136 | return false; |
137 | 137 | } |
138 | 138 | /** |
139 | - * Get email template variables |
|
140 | - * |
|
141 | - * @return array |
|
142 | - */ |
|
139 | + * Get email template variables |
|
140 | + * |
|
141 | + * @return array |
|
142 | + */ |
|
143 | 143 | public function get_email_template_variables() |
144 | 144 | { |
145 | 145 | return array(); |
@@ -166,14 +166,14 @@ discard block |
||
166 | 166 | } |
167 | 167 | |
168 | 168 | /** |
169 | - * Function for preparing the data for insertion in an SQL query |
|
170 | - * (The service handles insertion) |
|
171 | - * |
|
172 | - * @param array $data The data for the updated rules |
|
173 | - * @param array $pre_create_data Data from pre_create_insert_array() |
|
174 | - * |
|
175 | - * @return array Array of data ready to be inserted into the database |
|
176 | - */ |
|
169 | + * Function for preparing the data for insertion in an SQL query |
|
170 | + * (The service handles insertion) |
|
171 | + * |
|
172 | + * @param array $data The data for the updated rules |
|
173 | + * @param array $pre_create_data Data from pre_create_insert_array() |
|
174 | + * |
|
175 | + * @return array Array of data ready to be inserted into the database |
|
176 | + */ |
|
177 | 177 | public function create_insert_array($data, $pre_create_data = array()) |
178 | 178 | { |
179 | 179 | $this->set_data('album_name', $data['album_name']); |
@@ -10,20 +10,20 @@ discard block |
||
10 | 10 | class phpbbgallery_image_not_approved extends \phpbb\notification\type\base |
11 | 11 | { |
12 | 12 | /** |
13 | - * Get notification type name |
|
14 | - * |
|
15 | - * @return string |
|
16 | - */ |
|
13 | + * Get notification type name |
|
14 | + * |
|
15 | + * @return string |
|
16 | + */ |
|
17 | 17 | public function get_type() |
18 | 18 | { |
19 | 19 | return 'phpbbgallery.core.notification.image_not_approved'; |
20 | 20 | } |
21 | 21 | /** |
22 | - * Notification option data (for outputting to the user) |
|
23 | - * |
|
24 | - * @var bool|array False if the service should use it's default data |
|
25 | - * Array of data (including keys 'id', 'lang', and 'group') |
|
26 | - */ |
|
22 | + * Notification option data (for outputting to the user) |
|
23 | + * |
|
24 | + * @var bool|array False if the service should use it's default data |
|
25 | + * Array of data (including keys 'id', 'lang', and 'group') |
|
26 | + */ |
|
27 | 27 | public static $notification_option = array( |
28 | 28 | 'lang' => 'NOTIFICATION_TYPE_PHPBBGALLERY_IMAGE_NOT_APPROVED', |
29 | 29 | ); |
@@ -45,10 +45,10 @@ discard block |
||
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
48 | - * Is this type available to the current user (defines whether or not it will be shown in the UCP Edit notification options) |
|
49 | - * |
|
50 | - * @return bool True/False whether or not this is available to the user |
|
51 | - */ |
|
48 | + * Is this type available to the current user (defines whether or not it will be shown in the UCP Edit notification options) |
|
49 | + * |
|
50 | + * @return bool True/False whether or not this is available to the user |
|
51 | + */ |
|
52 | 52 | public function is_available() |
53 | 53 | { |
54 | 54 | return true; |
@@ -139,10 +139,10 @@ discard block |
||
139 | 139 | } |
140 | 140 | |
141 | 141 | /** |
142 | - * Users needed to query before this notification can be displayed |
|
143 | - * |
|
144 | - * @return array Array of user_ids |
|
145 | - */ |
|
142 | + * Users needed to query before this notification can be displayed |
|
143 | + * |
|
144 | + * @return array Array of user_ids |
|
145 | + */ |
|
146 | 146 | public function users_to_query() |
147 | 147 | { |
148 | 148 | return array(); |
@@ -150,14 +150,14 @@ discard block |
||
150 | 150 | |
151 | 151 | |
152 | 152 | /** |
153 | - * Function for preparing the data for insertion in an SQL query |
|
154 | - * (The service handles insertion) |
|
155 | - * |
|
156 | - * @param array $data The data for the updated rules |
|
157 | - * @param array $pre_create_data Data from pre_create_insert_array() |
|
158 | - * |
|
159 | - * @return array Array of data ready to be inserted into the database |
|
160 | - */ |
|
153 | + * Function for preparing the data for insertion in an SQL query |
|
154 | + * (The service handles insertion) |
|
155 | + * |
|
156 | + * @param array $data The data for the updated rules |
|
157 | + * @param array $pre_create_data Data from pre_create_insert_array() |
|
158 | + * |
|
159 | + * @return array Array of data ready to be inserted into the database |
|
160 | + */ |
|
161 | 161 | public function create_insert_array($data, $pre_create_data = array()) |
162 | 162 | { |
163 | 163 | $this->set_data('album_name', $data['album_name']); |
@@ -11,20 +11,20 @@ discard block |
||
11 | 11 | class phpbbgallery_image_approved 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.image_approved'; |
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_IMAGE_APPROVED', |
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; |
@@ -140,10 +140,10 @@ discard block |
||
140 | 140 | } |
141 | 141 | |
142 | 142 | /** |
143 | - * Users needed to query before this notification can be displayed |
|
144 | - * |
|
145 | - * @return array Array of user_ids |
|
146 | - */ |
|
143 | + * Users needed to query before this notification can be displayed |
|
144 | + * |
|
145 | + * @return array Array of user_ids |
|
146 | + */ |
|
147 | 147 | public function users_to_query() |
148 | 148 | { |
149 | 149 | return array(); |
@@ -151,14 +151,14 @@ discard block |
||
151 | 151 | |
152 | 152 | |
153 | 153 | /** |
154 | - * Function for preparing the data for insertion in an SQL query |
|
155 | - * (The service handles insertion) |
|
156 | - * |
|
157 | - * @param array $data The data for the updated rules |
|
158 | - * @param array $pre_create_data Data from pre_create_insert_array() |
|
159 | - * |
|
160 | - * @return array Array of data ready to be inserted into the database |
|
161 | - */ |
|
154 | + * Function for preparing the data for insertion in an SQL query |
|
155 | + * (The service handles insertion) |
|
156 | + * |
|
157 | + * @param array $data The data for the updated rules |
|
158 | + * @param array $pre_create_data Data from pre_create_insert_array() |
|
159 | + * |
|
160 | + * @return array Array of data ready to be inserted into the database |
|
161 | + */ |
|
162 | 162 | public function create_insert_array($data, $pre_create_data = array()) |
163 | 163 | { |
164 | 164 | $this->set_data('album_name', $data['album_name']); |