@@ -751,8 +751,8 @@ discard block |
||
751 | 751 | $log_action = implode('_', array($log_action_images, $log_action_albums)); |
752 | 752 | |
753 | 753 | /** |
754 | - * Log what we did |
|
755 | - */ |
|
754 | + * Log what we did |
|
755 | + */ |
|
756 | 756 | switch ($log_action) |
757 | 757 | { |
758 | 758 | case 'MOVE_IMAGES_MOVE_ALBUMS': |
@@ -842,14 +842,14 @@ discard block |
||
842 | 842 | $this->gallery_notification->delete_albums($from_id); |
843 | 843 | |
844 | 844 | /** |
845 | - * Event related to moving album content |
|
846 | - * |
|
847 | - * @event phpbbgallery.core.album.manage.move_album_content |
|
848 | - * @var int from_id Album we are moving from |
|
849 | - * @var int to_id Album we are moving to |
|
850 | - * @var bool sync Should we sync the albums data |
|
851 | - * @since 1.2.0 |
|
852 | - */ |
|
845 | + * Event related to moving album content |
|
846 | + * |
|
847 | + * @event phpbbgallery.core.album.manage.move_album_content |
|
848 | + * @var int from_id Album we are moving from |
|
849 | + * @var int to_id Album we are moving to |
|
850 | + * @var bool sync Should we sync the albums data |
|
851 | + * @since 1.2.0 |
|
852 | + */ |
|
853 | 853 | $vars = array('from_id', 'to_id', 'sync'); |
854 | 854 | extract($this->dispatcher->trigger_event('phpbbgallery.core.album.manage.move_album_content', compact($vars))); |
855 | 855 | |
@@ -951,12 +951,12 @@ discard block |
||
951 | 951 | $this->gallery_config->set('num_comments', $row['num_comments']); |
952 | 952 | |
953 | 953 | /** |
954 | - * Event delete album content |
|
955 | - * |
|
956 | - * @event phpbbgallery.core.album.manage.delete_album_content |
|
957 | - * @var int album_id Album we are deleting |
|
958 | - * @since 1.2.0 |
|
959 | - */ |
|
954 | + * Event delete album content |
|
955 | + * |
|
956 | + * @event phpbbgallery.core.album.manage.delete_album_content |
|
957 | + * @var int album_id Album we are deleting |
|
958 | + * @since 1.2.0 |
|
959 | + */ |
|
960 | 960 | $vars = array('album_id'); |
961 | 961 | extract($this->dispatcher->trigger_event('phpbbgallery.core.album.manage.delete_album_content', compact($vars))); |
962 | 962 | |
@@ -979,11 +979,11 @@ discard block |
||
979 | 979 | public function move_album_by($album_row, $action = 'move_up', $steps = 1) |
980 | 980 | { |
981 | 981 | /** |
982 | - * Fetch all the siblings between the module's current spot |
|
983 | - * and where we want to move it to. If there are less than $steps |
|
984 | - * siblings between the current spot and the target then the |
|
985 | - * module will move as far as possible |
|
986 | - */ |
|
982 | + * Fetch all the siblings between the module's current spot |
|
983 | + * and where we want to move it to. If there are less than $steps |
|
984 | + * siblings between the current spot and the target then the |
|
985 | + * module will move as far as possible |
|
986 | + */ |
|
987 | 987 | $sql = 'SELECT album_id, album_name, left_id, right_id |
988 | 988 | FROM ' . $this->albums_table . ' |
989 | 989 | WHERE parent_id = ' . (int) $album_row['parent_id'] . ' |
@@ -1005,12 +1005,12 @@ discard block |
||
1005 | 1005 | } |
1006 | 1006 | |
1007 | 1007 | /** |
1008 | - * $left_id and $right_id define the scope of the nodes that are affected by the move. |
|
1009 | - * $diff_up and $diff_down are the values to substract or add to each node's left_id |
|
1010 | - * and right_id in order to move them up or down. |
|
1011 | - * $move_up_left and $move_up_right define the scope of the nodes that are moving |
|
1012 | - * up. Other nodes in the scope of ($left_id, $right_id) are considered to move down. |
|
1013 | - */ |
|
1008 | + * $left_id and $right_id define the scope of the nodes that are affected by the move. |
|
1009 | + * $diff_up and $diff_down are the values to substract or add to each node's left_id |
|
1010 | + * and right_id in order to move them up or down. |
|
1011 | + * $move_up_left and $move_up_right define the scope of the nodes that are moving |
|
1012 | + * up. Other nodes in the scope of ($left_id, $right_id) are considered to move down. |
|
1013 | + */ |
|
1014 | 1014 | if ($action == 'move_up') |
1015 | 1015 | { |
1016 | 1016 | $left_id = $target['left_id']; |
@@ -213,9 +213,9 @@ |
||
213 | 213 | } |
214 | 214 | |
215 | 215 | /** |
216 | - * Get all recent images the user has access to |
|
217 | - * return (int) $images_count |
|
218 | - */ |
|
216 | + * Get all recent images the user has access to |
|
217 | + * return (int) $images_count |
|
218 | + */ |
|
219 | 219 | public function recent_count() |
220 | 220 | { |
221 | 221 | $this->gallery_auth->load_user_premissions($this->user->data['user_id']); |
@@ -231,9 +231,9 @@ discard block |
||
231 | 231 | } |
232 | 232 | |
233 | 233 | /** |
234 | - * We need to disable the "last-modified" caching for guests and in cases of image-errors, |
|
235 | - * so that they can view them, if they logged in or the error was fixed. |
|
236 | - */ |
|
234 | + * We need to disable the "last-modified" caching for guests and in cases of image-errors, |
|
235 | + * so that they can view them, if they logged in or the error was fixed. |
|
236 | + */ |
|
237 | 237 | public function disable_browser_cache() |
238 | 238 | { |
239 | 239 | $this->browser_cache = false; |
@@ -460,12 +460,12 @@ discard block |
||
460 | 460 | } |
461 | 461 | |
462 | 462 | /** |
463 | - * Delete file from disc. |
|
464 | - * |
|
465 | - * @param mixed $files String with filename or an array of filenames |
|
466 | - * Array-Format: $image_id => $filename |
|
467 | - * @param array $locations Array of valid url::path()s where the image should be deleted from |
|
468 | - */ |
|
463 | + * Delete file from disc. |
|
464 | + * |
|
465 | + * @param mixed $files String with filename or an array of filenames |
|
466 | + * Array-Format: $image_id => $filename |
|
467 | + * @param array $locations Array of valid url::path()s where the image should be deleted from |
|
468 | + */ |
|
469 | 469 | public function delete($files, $locations = array('thumbnail', 'medium', 'upload')) |
470 | 470 | { |
471 | 471 | if (!is_array($files)) |
@@ -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; |
@@ -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']); |