@@ -21,32 +21,32 @@ discard block |
||
| 21 | 21 | protected $helper; |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | - * Set the controller helper |
|
| 25 | - * |
|
| 26 | - * @param \phpbb\controller\helper $helper |
|
| 27 | - * @return null |
|
| 28 | - */ |
|
| 24 | + * Set the controller helper |
|
| 25 | + * |
|
| 26 | + * @param \phpbb\controller\helper $helper |
|
| 27 | + * @return null |
|
| 28 | + */ |
|
| 29 | 29 | public function set_controller_helper(\phpbb\controller\helper $helper) |
| 30 | 30 | { |
| 31 | 31 | $this->helper = $helper; |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | - * Get notification type name |
|
| 36 | - * |
|
| 37 | - * @return string |
|
| 38 | - */ |
|
| 35 | + * Get notification type name |
|
| 36 | + * |
|
| 37 | + * @return string |
|
| 38 | + */ |
|
| 39 | 39 | public function get_type() |
| 40 | 40 | { |
| 41 | 41 | return 'ernadoo.phpbbdirectory.notification.type.directory_website_approved'; |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | - * Notification option data (for outputting to the user) |
|
| 46 | - * |
|
| 47 | - * @var bool|array False if the service should use it's default data |
|
| 48 | - * Array of data (including keys 'id', 'lang', and 'group') |
|
| 49 | - */ |
|
| 45 | + * Notification option data (for outputting to the user) |
|
| 46 | + * |
|
| 47 | + * @var bool|array False if the service should use it's default data |
|
| 48 | + * Array of data (including keys 'id', 'lang', and 'group') |
|
| 49 | + */ |
|
| 50 | 50 | public static $notification_option = array( |
| 51 | 51 | 'id' => 'dir_moderation_queue', |
| 52 | 52 | 'lang' => 'NOTIFICATION_TYPE_DIR_UCP_MODERATION_QUEUE', |
@@ -54,17 +54,17 @@ discard block |
||
| 54 | 54 | ); |
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | - * Permission to check for (in find_users_for_notification) |
|
| 58 | - * |
|
| 59 | - * @var string Permission name |
|
| 60 | - */ |
|
| 57 | + * Permission to check for (in find_users_for_notification) |
|
| 58 | + * |
|
| 59 | + * @var string Permission name |
|
| 60 | + */ |
|
| 61 | 61 | protected $permission = array('a_', 'm_'); |
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | - * Is available |
|
| 65 | - * |
|
| 66 | - * @return bool True/False whether or not this is available to the user |
|
| 67 | - */ |
|
| 64 | + * Is available |
|
| 65 | + * |
|
| 66 | + * @return bool True/False whether or not this is available to the user |
|
| 67 | + */ |
|
| 68 | 68 | public function is_available() |
| 69 | 69 | { |
| 70 | 70 | $has_permission = $this->auth->acl_gets($this->permission, true); |
@@ -73,21 +73,21 @@ discard block |
||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
| 76 | - * Get link id |
|
| 77 | - * |
|
| 78 | - * @param array $data The data from the link |
|
| 79 | - * @return int |
|
| 80 | - */ |
|
| 76 | + * Get link id |
|
| 77 | + * |
|
| 78 | + * @param array $data The data from the link |
|
| 79 | + * @return int |
|
| 80 | + */ |
|
| 81 | 81 | static public function get_item_id($data) |
| 82 | 82 | { |
| 83 | 83 | return (int) $data['link_id']; |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
| 87 | - * Get parent id - it's not used |
|
| 88 | - * |
|
| 89 | - * @param array $data The data from the link |
|
| 90 | - */ |
|
| 87 | + * Get parent id - it's not used |
|
| 88 | + * |
|
| 89 | + * @param array $data The data from the link |
|
| 90 | + */ |
|
| 91 | 91 | static public function get_item_parent_id($data) |
| 92 | 92 | { |
| 93 | 93 | // No parent |
@@ -95,12 +95,12 @@ discard block |
||
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | /** |
| 98 | - * Find the users who want to receive notifications |
|
| 99 | - * |
|
| 100 | - * @param array $data Data from submit link |
|
| 101 | - * @param array $options Options for finding users for notification |
|
| 102 | - * @return array |
|
| 103 | - */ |
|
| 98 | + * Find the users who want to receive notifications |
|
| 99 | + * |
|
| 100 | + * @param array $data Data from submit link |
|
| 101 | + * @param array $options Options for finding users for notification |
|
| 102 | + * @return array |
|
| 103 | + */ |
|
| 104 | 104 | public function find_users_for_notification($data, $options = array()) |
| 105 | 105 | { |
| 106 | 106 | $options = array_merge(array( |
@@ -116,10 +116,10 @@ discard block |
||
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | /** |
| 119 | - * Get the HTML formatted title of this notification |
|
| 120 | - * |
|
| 121 | - * @return string |
|
| 122 | - */ |
|
| 119 | + * Get the HTML formatted title of this notification |
|
| 120 | + * |
|
| 121 | + * @return string |
|
| 122 | + */ |
|
| 123 | 123 | public function get_title() |
| 124 | 124 | { |
| 125 | 125 | $link_name = $this->get_data('link_name'); |
@@ -129,20 +129,20 @@ discard block |
||
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | /** |
| 132 | - * Get email template |
|
| 133 | - * |
|
| 134 | - * @return string |
|
| 135 | - */ |
|
| 132 | + * Get email template |
|
| 133 | + * |
|
| 134 | + * @return string |
|
| 135 | + */ |
|
| 136 | 136 | public function get_email_template() |
| 137 | 137 | { |
| 138 | 138 | return '@ernadoo_phpbbdirectory/directory_website_approved'; |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | /** |
| 142 | - * Get email template variables |
|
| 143 | - * |
|
| 144 | - * @return array |
|
| 145 | - */ |
|
| 142 | + * Get email template variables |
|
| 143 | + * |
|
| 144 | + * @return array |
|
| 145 | + */ |
|
| 146 | 146 | public function get_email_template_variables() |
| 147 | 147 | { |
| 148 | 148 | return array( |
@@ -151,33 +151,33 @@ discard block |
||
| 151 | 151 | } |
| 152 | 152 | |
| 153 | 153 | /** |
| 154 | - * Get the url to this item |
|
| 155 | - * |
|
| 156 | - * @return string URL |
|
| 157 | - */ |
|
| 154 | + * Get the url to this item |
|
| 155 | + * |
|
| 156 | + * @return string URL |
|
| 157 | + */ |
|
| 158 | 158 | public function get_url() |
| 159 | 159 | { |
| 160 | 160 | return $this->helper->route('ernadoo_phpbbdirectory_dynamic_route_' . $this->get_data('cat_id')); |
| 161 | 161 | } |
| 162 | 162 | |
| 163 | 163 | /** |
| 164 | - * Users needed to query before this notification can be displayed |
|
| 165 | - * |
|
| 166 | - * @return array Array of user_ids |
|
| 167 | - */ |
|
| 164 | + * Users needed to query before this notification can be displayed |
|
| 165 | + * |
|
| 166 | + * @return array Array of user_ids |
|
| 167 | + */ |
|
| 168 | 168 | public function users_to_query() |
| 169 | 169 | { |
| 170 | 170 | return array(); |
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | /** |
| 174 | - * Function for preparing the data for insertion in an SQL query |
|
| 175 | - * (The service handles insertion) |
|
| 176 | - * |
|
| 177 | - * @param array $data Data from submit link |
|
| 178 | - * @param array $pre_create_data Data from pre_create_insert_array() |
|
| 179 | - * @return array Array of data ready to be inserted into the database |
|
| 180 | - */ |
|
| 174 | + * Function for preparing the data for insertion in an SQL query |
|
| 175 | + * (The service handles insertion) |
|
| 176 | + * |
|
| 177 | + * @param array $data Data from submit link |
|
| 178 | + * @param array $pre_create_data Data from pre_create_insert_array() |
|
| 179 | + * @return array Array of data ready to be inserted into the database |
|
| 180 | + */ |
|
| 181 | 181 | public function create_insert_array($data, $pre_create_data = array()) |
| 182 | 182 | { |
| 183 | 183 | $this->set_data('link_name', $data['link_name']); |
@@ -24,11 +24,11 @@ discard block |
||
| 24 | 24 | protected $watch_table; |
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | - * Set the controller helper |
|
| 28 | - * |
|
| 29 | - * @param \phpbb\controller\helper $helper |
|
| 30 | - * @return null |
|
| 31 | - */ |
|
| 27 | + * Set the controller helper |
|
| 28 | + * |
|
| 29 | + * @param \phpbb\controller\helper $helper |
|
| 30 | + * @return null |
|
| 31 | + */ |
|
| 32 | 32 | public function set_controller_helper(\phpbb\controller\helper $helper) |
| 33 | 33 | { |
| 34 | 34 | $this->helper = $helper; |
@@ -46,21 +46,21 @@ discard block |
||
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | - * Get notification type name |
|
| 50 | - * |
|
| 51 | - * @return string |
|
| 52 | - */ |
|
| 49 | + * Get notification type name |
|
| 50 | + * |
|
| 51 | + * @return string |
|
| 52 | + */ |
|
| 53 | 53 | public function get_type() |
| 54 | 54 | { |
| 55 | 55 | return 'ernadoo.phpbbdirectory.notification.type.directory_website'; |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | /** |
| 59 | - * Notification option data (for outputting to the user) |
|
| 60 | - * |
|
| 61 | - * @var bool|array False if the service should use it's default data |
|
| 62 | - * Array of data (including keys 'id', 'lang', and 'group') |
|
| 63 | - */ |
|
| 59 | + * Notification option data (for outputting to the user) |
|
| 60 | + * |
|
| 61 | + * @var bool|array False if the service should use it's default data |
|
| 62 | + * Array of data (including keys 'id', 'lang', and 'group') |
|
| 63 | + */ |
|
| 64 | 64 | public static $notification_option = array( |
| 65 | 65 | 'lang' => 'NOTIFICATION_TYPE_DIR_UCP_WEBSITE', |
| 66 | 66 | 'group' => 'NOTIFICATION_DIR_UCP', |
@@ -75,31 +75,31 @@ discard block |
||
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | /** |
| 78 | - * Is available |
|
| 79 | - * |
|
| 80 | - * @return bool True/False whether or not this is available to the user |
|
| 81 | - */ |
|
| 78 | + * Is available |
|
| 79 | + * |
|
| 80 | + * @return bool True/False whether or not this is available to the user |
|
| 81 | + */ |
|
| 82 | 82 | public function is_available() |
| 83 | 83 | { |
| 84 | 84 | return true; |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | /** |
| 88 | - * Get link id |
|
| 89 | - * |
|
| 90 | - * @param array $data The data from the link |
|
| 91 | - * @return int |
|
| 92 | - */ |
|
| 88 | + * Get link id |
|
| 89 | + * |
|
| 90 | + * @param array $data The data from the link |
|
| 91 | + * @return int |
|
| 92 | + */ |
|
| 93 | 93 | static public function get_item_id($data) |
| 94 | 94 | { |
| 95 | 95 | return (int) $data['link_id']; |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | /** |
| 99 | - * Get parent id - it's not used |
|
| 100 | - * |
|
| 101 | - * @param array $data The data from the link |
|
| 102 | - */ |
|
| 99 | + * Get parent id - it's not used |
|
| 100 | + * |
|
| 101 | + * @param array $data The data from the link |
|
| 102 | + */ |
|
| 103 | 103 | static public function get_item_parent_id($data) |
| 104 | 104 | { |
| 105 | 105 | // No parent |
@@ -107,12 +107,12 @@ discard block |
||
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | /** |
| 110 | - * Find the users who want to receive notifications |
|
| 111 | - * |
|
| 112 | - * @param array $data Data from submit link |
|
| 113 | - * @param array $options Options for finding users for notification |
|
| 114 | - * @return array |
|
| 115 | - */ |
|
| 110 | + * Find the users who want to receive notifications |
|
| 111 | + * |
|
| 112 | + * @param array $data Data from submit link |
|
| 113 | + * @param array $options Options for finding users for notification |
|
| 114 | + * @return array |
|
| 115 | + */ |
|
| 116 | 116 | public function find_users_for_notification($data, $options = array()) |
| 117 | 117 | { |
| 118 | 118 | $options = array_merge(array( |
@@ -144,8 +144,8 @@ discard block |
||
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | /** |
| 147 | - * Get the user's avatar |
|
| 148 | - */ |
|
| 147 | + * Get the user's avatar |
|
| 148 | + */ |
|
| 149 | 149 | public function get_avatar() |
| 150 | 150 | { |
| 151 | 151 | return $this->user_loader->get_avatar($this->get_data('user_from'), false, true); |
@@ -153,10 +153,10 @@ discard block |
||
| 153 | 153 | |
| 154 | 154 | |
| 155 | 155 | /** |
| 156 | - * Get the HTML formatted title of this notification |
|
| 157 | - * |
|
| 158 | - * @return string |
|
| 159 | - */ |
|
| 156 | + * Get the HTML formatted title of this notification |
|
| 157 | + * |
|
| 158 | + * @return string |
|
| 159 | + */ |
|
| 160 | 160 | |
| 161 | 161 | public function get_title() |
| 162 | 162 | { |
@@ -169,20 +169,20 @@ discard block |
||
| 169 | 169 | |
| 170 | 170 | |
| 171 | 171 | /** |
| 172 | - * Get email template |
|
| 173 | - * |
|
| 174 | - * @return string |
|
| 175 | - */ |
|
| 172 | + * Get email template |
|
| 173 | + * |
|
| 174 | + * @return string |
|
| 175 | + */ |
|
| 176 | 176 | public function get_email_template() |
| 177 | 177 | { |
| 178 | 178 | return '@ernadoo_phpbbdirectory/directory_website'; |
| 179 | 179 | } |
| 180 | 180 | |
| 181 | 181 | /** |
| 182 | - * Get email template variables |
|
| 183 | - * |
|
| 184 | - * @return array |
|
| 185 | - */ |
|
| 182 | + * Get email template variables |
|
| 183 | + * |
|
| 184 | + * @return array |
|
| 185 | + */ |
|
| 186 | 186 | public function get_email_template_variables() |
| 187 | 187 | { |
| 188 | 188 | return array( |
@@ -194,33 +194,33 @@ discard block |
||
| 194 | 194 | } |
| 195 | 195 | |
| 196 | 196 | /** |
| 197 | - * Get the url to this item |
|
| 198 | - * |
|
| 199 | - * @return string URL |
|
| 200 | - */ |
|
| 197 | + * Get the url to this item |
|
| 198 | + * |
|
| 199 | + * @return string URL |
|
| 200 | + */ |
|
| 201 | 201 | public function get_url() |
| 202 | 202 | { |
| 203 | 203 | return $this->helper->route('ernadoo_phpbbdirectory_dynamic_route_' . $this->get_data('cat_id')); |
| 204 | 204 | } |
| 205 | 205 | |
| 206 | 206 | /** |
| 207 | - * Users needed to query before this notification can be displayed |
|
| 208 | - * |
|
| 209 | - * @return array Array of user_ids |
|
| 210 | - */ |
|
| 207 | + * Users needed to query before this notification can be displayed |
|
| 208 | + * |
|
| 209 | + * @return array Array of user_ids |
|
| 210 | + */ |
|
| 211 | 211 | public function users_to_query() |
| 212 | 212 | { |
| 213 | 213 | return array($this->get_data('user_from')); |
| 214 | 214 | } |
| 215 | 215 | |
| 216 | 216 | /** |
| 217 | - * Function for preparing the data for insertion in an SQL query |
|
| 218 | - * (The service handles insertion) |
|
| 219 | - * |
|
| 220 | - * @param array $data Data from submit link |
|
| 221 | - * @param array $pre_create_data Data from pre_create_insert_array() |
|
| 222 | - * @return array Array of data ready to be inserted into the database |
|
| 223 | - */ |
|
| 217 | + * Function for preparing the data for insertion in an SQL query |
|
| 218 | + * (The service handles insertion) |
|
| 219 | + * |
|
| 220 | + * @param array $data Data from submit link |
|
| 221 | + * @param array $pre_create_data Data from pre_create_insert_array() |
|
| 222 | + * @return array Array of data ready to be inserted into the database |
|
| 223 | + */ |
|
| 224 | 224 | public function create_insert_array($data, $pre_create_data = array()) |
| 225 | 225 | { |
| 226 | 226 | $this->set_data('link_name', $data['link_name']); |
@@ -69,19 +69,19 @@ discard block |
||
| 69 | 69 | private $update; |
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | - * Constructor |
|
| 73 | - * |
|
| 74 | - * @param \phpbb\cache\service $cache Cache object |
|
| 75 | - * @param \phpbb\db\driver\driver_interface $db Database object |
|
| 76 | - * @param \phpbb\controller\helper $helper Helper object |
|
| 77 | - * @param \phpbb\language\language $language Language object |
|
| 78 | - * @param \phpbb\log\log $log Log object |
|
| 79 | - * @param \phpbb\request\request $request Request object |
|
| 80 | - * @param \phpbb\template\template $template Template object |
|
| 81 | - * @param \phpbb\user $user User object |
|
| 82 | - * @param \ernadoo\phpbbdirectory\core\categorie $categorie PhpBB Directory extension categorie object |
|
| 83 | - * @param \ernadoo\phpbbdirectory\core\nestedset_category $nestedset_category PhpBB Directory extension nestedset object |
|
| 84 | - */ |
|
| 72 | + * Constructor |
|
| 73 | + * |
|
| 74 | + * @param \phpbb\cache\service $cache Cache object |
|
| 75 | + * @param \phpbb\db\driver\driver_interface $db Database object |
|
| 76 | + * @param \phpbb\controller\helper $helper Helper object |
|
| 77 | + * @param \phpbb\language\language $language Language object |
|
| 78 | + * @param \phpbb\log\log $log Log object |
|
| 79 | + * @param \phpbb\request\request $request Request object |
|
| 80 | + * @param \phpbb\template\template $template Template object |
|
| 81 | + * @param \phpbb\user $user User object |
|
| 82 | + * @param \ernadoo\phpbbdirectory\core\categorie $categorie PhpBB Directory extension categorie object |
|
| 83 | + * @param \ernadoo\phpbbdirectory\core\nestedset_category $nestedset_category PhpBB Directory extension nestedset object |
|
| 84 | + */ |
|
| 85 | 85 | public function __construct(\phpbb\cache\service $cache, \phpbb\db\driver\driver_interface $db, \phpbb\controller\helper $helper, \phpbb\language\language $language, \phpbb\log\log $log, \phpbb\request\request $request, \phpbb\template\template $template, \phpbb\user $user, \ernadoo\phpbbdirectory\core\categorie $categorie, \ernadoo\phpbbdirectory\core\nestedset_category $nestedset_category) |
| 86 | 86 | { |
| 87 | 87 | $this->cache = $cache; |
@@ -105,10 +105,10 @@ discard block |
||
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | /** |
| 108 | - * Initialize defaults data for add page |
|
| 109 | - * |
|
| 110 | - * @return null |
|
| 111 | - */ |
|
| 108 | + * Initialize defaults data for add page |
|
| 109 | + * |
|
| 110 | + * @return null |
|
| 111 | + */ |
|
| 112 | 112 | public function action_add() |
| 113 | 113 | { |
| 114 | 114 | $this->cat_id = $this->parent_id; |
@@ -143,10 +143,10 @@ discard block |
||
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | /** |
| 146 | - * Display deleting page |
|
| 147 | - * |
|
| 148 | - * @return null |
|
| 149 | - */ |
|
| 146 | + * Display deleting page |
|
| 147 | + * |
|
| 148 | + * @return null |
|
| 149 | + */ |
|
| 150 | 150 | public function action_delete() |
| 151 | 151 | { |
| 152 | 152 | if (!$this->cat_id) |
@@ -197,10 +197,10 @@ discard block |
||
| 197 | 197 | } |
| 198 | 198 | |
| 199 | 199 | /** |
| 200 | - * Initialize data for edit page |
|
| 201 | - * |
|
| 202 | - * @return null |
|
| 203 | - */ |
|
| 200 | + * Initialize data for edit page |
|
| 201 | + * |
|
| 202 | + * @return null |
|
| 203 | + */ |
|
| 204 | 204 | public function action_edit() |
| 205 | 205 | { |
| 206 | 206 | $row = $this->_get_cat_info($this->cat_id); |
@@ -227,10 +227,10 @@ discard block |
||
| 227 | 227 | } |
| 228 | 228 | |
| 229 | 229 | /** |
| 230 | - * Move order categories |
|
| 231 | - * |
|
| 232 | - * @return null |
|
| 233 | - */ |
|
| 230 | + * Move order categories |
|
| 231 | + * |
|
| 232 | + * @return null |
|
| 233 | + */ |
|
| 234 | 234 | public function action_move() |
| 235 | 235 | { |
| 236 | 236 | if (!$this->cat_id) |
@@ -273,10 +273,10 @@ discard block |
||
| 273 | 273 | } |
| 274 | 274 | |
| 275 | 275 | /** |
| 276 | - * Display progress bar for syncinc categories |
|
| 277 | - * |
|
| 278 | - * @return null |
|
| 279 | - */ |
|
| 276 | + * Display progress bar for syncinc categories |
|
| 277 | + * |
|
| 278 | + * @return null |
|
| 279 | + */ |
|
| 280 | 280 | public function action_progress_bar() |
| 281 | 281 | { |
| 282 | 282 | $start = $this->request->variable('start', 0); |
@@ -297,10 +297,10 @@ discard block |
||
| 297 | 297 | } |
| 298 | 298 | |
| 299 | 299 | /** |
| 300 | - * Get link's ID interval for _sync_dir_links() |
|
| 301 | - * |
|
| 302 | - * @return null |
|
| 303 | - */ |
|
| 300 | + * Get link's ID interval for _sync_dir_links() |
|
| 301 | + * |
|
| 302 | + * @return null |
|
| 303 | + */ |
|
| 304 | 304 | public function action_sync() |
| 305 | 305 | { |
| 306 | 306 | if (!$this->cat_id) |
@@ -382,10 +382,10 @@ discard block |
||
| 382 | 382 | } |
| 383 | 383 | |
| 384 | 384 | /** |
| 385 | - * Sync category data |
|
| 386 | - * |
|
| 387 | - * @return null |
|
| 388 | - */ |
|
| 385 | + * Sync category data |
|
| 386 | + * |
|
| 387 | + * @return null |
|
| 388 | + */ |
|
| 389 | 389 | public function action_sync_cat() |
| 390 | 390 | { |
| 391 | 391 | $sql = 'SELECT cat_name |
@@ -409,10 +409,10 @@ discard block |
||
| 409 | 409 | } |
| 410 | 410 | |
| 411 | 411 | /** |
| 412 | - * Display categories page |
|
| 413 | - * |
|
| 414 | - * @return null |
|
| 415 | - */ |
|
| 412 | + * Display categories page |
|
| 413 | + * |
|
| 414 | + * @return null |
|
| 415 | + */ |
|
| 416 | 416 | public function display_cats() |
| 417 | 417 | { |
| 418 | 418 | // Default management page |
@@ -506,22 +506,22 @@ discard block |
||
| 506 | 506 | } |
| 507 | 507 | |
| 508 | 508 | /** |
| 509 | - * Set page url |
|
| 510 | - * |
|
| 511 | - * @param string $u_action Custom form action |
|
| 512 | - * @return null |
|
| 513 | - * @access public |
|
| 514 | - */ |
|
| 509 | + * Set page url |
|
| 510 | + * |
|
| 511 | + * @param string $u_action Custom form action |
|
| 512 | + * @return null |
|
| 513 | + * @access public |
|
| 514 | + */ |
|
| 515 | 515 | public function set_page_url($u_action) |
| 516 | 516 | { |
| 517 | 517 | $this->u_action = $u_action; |
| 518 | 518 | } |
| 519 | 519 | |
| 520 | 520 | /** |
| 521 | - * Update cat table |
|
| 522 | - * |
|
| 523 | - * @return null |
|
| 524 | - */ |
|
| 521 | + * Update cat table |
|
| 522 | + * |
|
| 523 | + * @return null |
|
| 524 | + */ |
|
| 525 | 525 | public function update() |
| 526 | 526 | { |
| 527 | 527 | if (!check_form_key($this->form_key)) |
@@ -619,13 +619,13 @@ discard block |
||
| 619 | 619 | } |
| 620 | 620 | |
| 621 | 621 | /** |
| 622 | - * Check route |
|
| 623 | - * |
|
| 624 | - * @param string $route Route text |
|
| 625 | - * @return null |
|
| 626 | - * @access public |
|
| 627 | - * @throws \phpbb\pages\exception\unexpected_value |
|
| 628 | - */ |
|
| 622 | + * Check route |
|
| 623 | + * |
|
| 624 | + * @param string $route Route text |
|
| 625 | + * @return null |
|
| 626 | + * @access public |
|
| 627 | + * @throws \phpbb\pages\exception\unexpected_value |
|
| 628 | + */ |
|
| 629 | 629 | private function _check_route($route) |
| 630 | 630 | { |
| 631 | 631 | // Route is a required field |
@@ -656,11 +656,11 @@ discard block |
||
| 656 | 656 | } |
| 657 | 657 | |
| 658 | 658 | /** |
| 659 | - * Display form |
|
| 660 | - * |
|
| 661 | - * @param string $parents_list Drop-down list |
|
| 662 | - * @return null |
|
| 663 | - */ |
|
| 659 | + * Display form |
|
| 660 | + * |
|
| 661 | + * @param string $parents_list Drop-down list |
|
| 662 | + * @return null |
|
| 663 | + */ |
|
| 664 | 664 | private function _display_cat_form($parents_list) |
| 665 | 665 | { |
| 666 | 666 | $dir_cat_desc_data = array( |
@@ -732,11 +732,11 @@ discard block |
||
| 732 | 732 | } |
| 733 | 733 | |
| 734 | 734 | /** |
| 735 | - * Get category details |
|
| 736 | - * |
|
| 737 | - * @param int $cat_id The category ID |
|
| 738 | - * @return array |
|
| 739 | - */ |
|
| 735 | + * Get category details |
|
| 736 | + * |
|
| 737 | + * @param int $cat_id The category ID |
|
| 738 | + * @return array |
|
| 739 | + */ |
|
| 740 | 740 | private function _get_cat_info($cat_id) |
| 741 | 741 | { |
| 742 | 742 | $sql = 'SELECT cat_id, parent_id, right_id, left_id, cat_desc, cat_desc_uid, cat_desc_options, cat_icon, cat_name, cat_route, display_subcat_list, cat_allow_comments, cat_allow_votes, cat_must_describe, cat_count_all, cat_validate, cat_cron_freq, cat_cron_nb_check, cat_link_back, cat_cron_enable, cat_cron_next |
@@ -755,10 +755,10 @@ discard block |
||
| 755 | 755 | } |
| 756 | 756 | |
| 757 | 757 | /** |
| 758 | - * Update category data |
|
| 759 | - * |
|
| 760 | - * @return array |
|
| 761 | - */ |
|
| 758 | + * Update category data |
|
| 759 | + * |
|
| 760 | + * @return array |
|
| 761 | + */ |
|
| 762 | 762 | private function _update_cat_data() |
| 763 | 763 | { |
| 764 | 764 | if (!$this->cat_data['cat_name']) |
@@ -854,14 +854,14 @@ discard block |
||
| 854 | 854 | } |
| 855 | 855 | |
| 856 | 856 | /** |
| 857 | - * Remove complete category |
|
| 858 | - * |
|
| 859 | - * @param string $action_links Action for categories links |
|
| 860 | - * @param string $action_subcats Action for sub-categories |
|
| 861 | - * @param int $links_to_id New category ID for links |
|
| 862 | - * @param int $subcats_to_id New category ID for sub-categories |
|
| 863 | - * @return array |
|
| 864 | - */ |
|
| 857 | + * Remove complete category |
|
| 858 | + * |
|
| 859 | + * @param string $action_links Action for categories links |
|
| 860 | + * @param string $action_subcats Action for sub-categories |
|
| 861 | + * @param int $links_to_id New category ID for links |
|
| 862 | + * @param int $subcats_to_id New category ID for sub-categories |
|
| 863 | + * @return array |
|
| 864 | + */ |
|
| 865 | 865 | private function _delete_cat($action_links = 'delete', $action_subcats = 'delete', $links_to_id = 0, $subcats_to_id = 0) |
| 866 | 866 | { |
| 867 | 867 | $this->cat_data = $this->_get_cat_info($this->cat_id); |
@@ -978,12 +978,12 @@ discard block |
||
| 978 | 978 | } |
| 979 | 979 | |
| 980 | 980 | /** |
| 981 | - * Move category content from one to another forum |
|
| 982 | - * |
|
| 983 | - * @param int $from_id |
|
| 984 | - * @param int $to_id |
|
| 985 | - * @return null |
|
| 986 | - */ |
|
| 981 | + * Move category content from one to another forum |
|
| 982 | + * |
|
| 983 | + * @param int $from_id |
|
| 984 | + * @param int $to_id |
|
| 985 | + * @return null |
|
| 986 | + */ |
|
| 987 | 987 | private function _move_cat_content($from_id, $to_id) |
| 988 | 988 | { |
| 989 | 989 | $sql = 'UPDATE ' . $this->links_table . ' |
@@ -999,10 +999,10 @@ discard block |
||
| 999 | 999 | } |
| 1000 | 1000 | |
| 1001 | 1001 | /** |
| 1002 | - * Delete category content |
|
| 1003 | - * |
|
| 1004 | - * @return array |
|
| 1005 | - */ |
|
| 1002 | + * Delete category content |
|
| 1003 | + * |
|
| 1004 | + * @return array |
|
| 1005 | + */ |
|
| 1006 | 1006 | private function _delete_cat_content() |
| 1007 | 1007 | { |
| 1008 | 1008 | $this->db->sql_transaction('begin'); |
@@ -1061,11 +1061,11 @@ discard block |
||
| 1061 | 1061 | } |
| 1062 | 1062 | |
| 1063 | 1063 | /** |
| 1064 | - * Update links counter |
|
| 1065 | - * |
|
| 1066 | - * @param int $cat_id The category ID |
|
| 1067 | - * @return null |
|
| 1068 | - */ |
|
| 1064 | + * Update links counter |
|
| 1065 | + * |
|
| 1066 | + * @param int $cat_id The category ID |
|
| 1067 | + * @return null |
|
| 1068 | + */ |
|
| 1069 | 1069 | private function _sync_dir_cat($cat_id) |
| 1070 | 1070 | { |
| 1071 | 1071 | $sql = 'SELECT COUNT(link_id) AS num_links |
@@ -1083,12 +1083,12 @@ discard block |
||
| 1083 | 1083 | } |
| 1084 | 1084 | |
| 1085 | 1085 | /** |
| 1086 | - * Update link data (note, vote, comment) |
|
| 1087 | - * |
|
| 1088 | - * @param int $start |
|
| 1089 | - * @param int $stop |
|
| 1090 | - * @return null |
|
| 1091 | - */ |
|
| 1086 | + * Update link data (note, vote, comment) |
|
| 1087 | + * |
|
| 1088 | + * @param int $start |
|
| 1089 | + * @param int $stop |
|
| 1090 | + * @return null |
|
| 1091 | + */ |
|
| 1092 | 1092 | private function _sync_dir_links($start, $stop) |
| 1093 | 1093 | { |
| 1094 | 1094 | $sql_ary = array( |
@@ -1131,12 +1131,12 @@ discard block |
||
| 1131 | 1131 | } |
| 1132 | 1132 | |
| 1133 | 1133 | /** |
| 1134 | - * Display icons drop-down list |
|
| 1135 | - * |
|
| 1136 | - * @param string $icons_path |
|
| 1137 | - * @param string $img_selected |
|
| 1138 | - * @return string |
|
| 1139 | - */ |
|
| 1134 | + * Display icons drop-down list |
|
| 1135 | + * |
|
| 1136 | + * @param string $icons_path |
|
| 1137 | + * @param string $img_selected |
|
| 1138 | + * @return string |
|
| 1139 | + */ |
|
| 1140 | 1140 | private function _get_dir_icon_list($icons_path, $img_selected) |
| 1141 | 1141 | { |
| 1142 | 1142 | $imglist = filelist($icons_path, ''); |
@@ -17,11 +17,11 @@ discard block |
||
| 17 | 17 | class ext extends \phpbb\extension\base |
| 18 | 18 | { |
| 19 | 19 | /** |
| 20 | - * Enable extension if requirements are met |
|
| 21 | - * |
|
| 22 | - * @return bool |
|
| 23 | - * @aceess public |
|
| 24 | - */ |
|
| 20 | + * Enable extension if requirements are met |
|
| 21 | + * |
|
| 22 | + * @return bool |
|
| 23 | + * @aceess public |
|
| 24 | + */ |
|
| 25 | 25 | public function is_enableable() |
| 26 | 26 | { |
| 27 | 27 | $php_ini = $this->container->get('php_ini'); |
@@ -42,11 +42,11 @@ discard block |
||
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | - * Single enable step that installs any included migrations |
|
| 46 | - * |
|
| 47 | - * @param mixed $old_state State returned by previous call of this method |
|
| 48 | - * @return mixed Returns false after last step, otherwise temporary state |
|
| 49 | - */ |
|
| 45 | + * Single enable step that installs any included migrations |
|
| 46 | + * |
|
| 47 | + * @param mixed $old_state State returned by previous call of this method |
|
| 48 | + * @return mixed Returns false after last step, otherwise temporary state |
|
| 49 | + */ |
|
| 50 | 50 | public function enable_step($old_state) |
| 51 | 51 | { |
| 52 | 52 | switch ($old_state) |
@@ -80,11 +80,11 @@ discard block |
||
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | /** |
| 83 | - * Single disable step that does nothing |
|
| 84 | - * |
|
| 85 | - * @param mixed $old_state State returned by previous call of this method |
|
| 86 | - * @return mixed Returns false after last step, otherwise temporary state |
|
| 87 | - */ |
|
| 83 | + * Single disable step that does nothing |
|
| 84 | + * |
|
| 85 | + * @param mixed $old_state State returned by previous call of this method |
|
| 86 | + * @return mixed Returns false after last step, otherwise temporary state |
|
| 87 | + */ |
|
| 88 | 88 | public function disable_step($old_state) |
| 89 | 89 | { |
| 90 | 90 | switch ($old_state) |
@@ -112,11 +112,11 @@ discard block |
||
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | /** |
| 115 | - * Single purge step that reverts any included and installed migrations |
|
| 116 | - * |
|
| 117 | - * @param mixed $old_state State returned by previous call of this method |
|
| 118 | - * @return mixed Returns false after last step, otherwise temporary state |
|
| 119 | - */ |
|
| 115 | + * Single purge step that reverts any included and installed migrations |
|
| 116 | + * |
|
| 117 | + * @param mixed $old_state State returned by previous call of this method |
|
| 118 | + * @return mixed Returns false after last step, otherwise temporary state |
|
| 119 | + */ |
|
| 120 | 120 | public function purge_step($old_state) |
| 121 | 121 | { |
| 122 | 122 | switch ($old_state) |
@@ -144,16 +144,16 @@ discard block |
||
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | /** |
| 147 | - * Notification handler to call notification enable/disable/purge steps |
|
| 148 | - * |
|
| 149 | - * @author VSEphpbb (Matt Friedman) |
|
| 150 | - * @copyright (c) 2014 phpBB Limited <https://www.phpbb.com> |
|
| 151 | - * @license GNU General Public License, version 2 (GPL-2.0) |
|
| 152 | - * @param string $step The step (enable, disable, purge) |
|
| 153 | - * @param array $notification_types The notification type names |
|
| 154 | - * @return string Return notifications as temporary state |
|
| 155 | - * @access protected |
|
| 156 | - */ |
|
| 147 | + * Notification handler to call notification enable/disable/purge steps |
|
| 148 | + * |
|
| 149 | + * @author VSEphpbb (Matt Friedman) |
|
| 150 | + * @copyright (c) 2014 phpBB Limited <https://www.phpbb.com> |
|
| 151 | + * @license GNU General Public License, version 2 (GPL-2.0) |
|
| 152 | + * @param string $step The step (enable, disable, purge) |
|
| 153 | + * @param array $notification_types The notification type names |
|
| 154 | + * @return string Return notifications as temporary state |
|
| 155 | + * @access protected |
|
| 156 | + */ |
|
| 157 | 157 | protected function notification_handler($step, $notification_types) |
| 158 | 158 | { |
| 159 | 159 | $phpbb_notifications = $this->container->get('notification_manager'); |
@@ -26,12 +26,12 @@ discard block |
||
| 26 | 26 | protected $categories_table; |
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | - * Constructor |
|
| 30 | - * |
|
| 31 | - * @param \phpbb\db\driver\driver_interface $db Database connection |
|
| 32 | - * @param string $categories_table Table name |
|
| 33 | - * @access public |
|
| 34 | - */ |
|
| 29 | + * Constructor |
|
| 30 | + * |
|
| 31 | + * @param \phpbb\db\driver\driver_interface $db Database connection |
|
| 32 | + * @param string $categories_table Table name |
|
| 33 | + * @access public |
|
| 34 | + */ |
|
| 35 | 35 | public function __construct(\phpbb\db\driver\driver_interface $db, $categories_table) |
| 36 | 36 | { |
| 37 | 37 | $this->db = $db; |
@@ -39,10 +39,10 @@ discard block |
||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | - * {@inheritdoc} |
|
| 43 | - * |
|
| 44 | - * @api |
|
| 45 | - */ |
|
| 42 | + * {@inheritdoc} |
|
| 43 | + * |
|
| 44 | + * @api |
|
| 45 | + */ |
|
| 46 | 46 | public function load($resource, $type = null) |
| 47 | 47 | { |
| 48 | 48 | $routes = new RouteCollection(); |
@@ -78,10 +78,10 @@ discard block |
||
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | - * {@inheritdoc} |
|
| 82 | - * |
|
| 83 | - * @api |
|
| 84 | - */ |
|
| 81 | + * {@inheritdoc} |
|
| 82 | + * |
|
| 83 | + * @api |
|
| 84 | + */ |
|
| 85 | 85 | public function supports($resource, $type = null) |
| 86 | 86 | { |
| 87 | 87 | return $type === 'ernadoo_phpbbdirectory_route'; |
@@ -50,20 +50,20 @@ discard block |
||
| 50 | 50 | protected $link; |
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | - * Constructor |
|
| 54 | - * |
|
| 55 | - * @param \phpbb\db\driver\driver_interface $db Database object |
|
| 56 | - * @param \phpbb\config\config $config Config object |
|
| 57 | - * @param \phpbb\language\language $language Language object |
|
| 58 | - * @param \phpbb\template\template $template Template object |
|
| 59 | - * @param \phpbb\user $user User object |
|
| 60 | - * @param \phpbb\controller\helper $helper Controller helper object |
|
| 61 | - * @param \phpbb\request\request $request Request object |
|
| 62 | - * @param \phpbb\auth\auth $auth Auth object |
|
| 63 | - * @param \phpbb\pagination $pagination Pagination object |
|
| 64 | - * @param \ernadoo\phpbbdirectory\core\categorie $categorie PhpBB Directory extension categorie object |
|
| 65 | - * @param \ernadoo\phpbbdirectory\core\link $link PhpBB Directory extension link object |
|
| 66 | - */ |
|
| 53 | + * Constructor |
|
| 54 | + * |
|
| 55 | + * @param \phpbb\db\driver\driver_interface $db Database object |
|
| 56 | + * @param \phpbb\config\config $config Config object |
|
| 57 | + * @param \phpbb\language\language $language Language object |
|
| 58 | + * @param \phpbb\template\template $template Template object |
|
| 59 | + * @param \phpbb\user $user User object |
|
| 60 | + * @param \phpbb\controller\helper $helper Controller helper object |
|
| 61 | + * @param \phpbb\request\request $request Request object |
|
| 62 | + * @param \phpbb\auth\auth $auth Auth object |
|
| 63 | + * @param \phpbb\pagination $pagination Pagination object |
|
| 64 | + * @param \ernadoo\phpbbdirectory\core\categorie $categorie PhpBB Directory extension categorie object |
|
| 65 | + * @param \ernadoo\phpbbdirectory\core\link $link PhpBB Directory extension link object |
|
| 66 | + */ |
|
| 67 | 67 | public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\config\config $config, \phpbb\language\language $language, \phpbb\template\template $template, \phpbb\user $user, \phpbb\controller\helper $helper, \phpbb\request\request $request, \phpbb\auth\auth $auth, \phpbb\pagination $pagination, \ernadoo\phpbbdirectory\core\categorie $categorie, \ernadoo\phpbbdirectory\core\link $link) |
| 68 | 68 | { |
| 69 | 69 | $this->db = $db; |
@@ -86,10 +86,10 @@ discard block |
||
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | /** |
| 89 | - * Base controller to be accessed with the URL /directory |
|
| 90 | - * |
|
| 91 | - * @return \Symfony\Component\HttpFoundation\Response A Symfony Response object |
|
| 92 | - */ |
|
| 89 | + * Base controller to be accessed with the URL /directory |
|
| 90 | + * |
|
| 91 | + * @return \Symfony\Component\HttpFoundation\Response A Symfony Response object |
|
| 92 | + */ |
|
| 93 | 93 | public function base() |
| 94 | 94 | { |
| 95 | 95 | $this->categorie->display(); |
@@ -99,19 +99,19 @@ discard block |
||
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | /** |
| 102 | - * Legacy view controller for display a category |
|
| 103 | - * Used with /directory/categorie/{cat_id} |
|
| 104 | - * @deprecated 2.0.0 No longer used since dynamic routing. |
|
| 105 | - * |
|
| 106 | - * @param int $cat_id The category ID |
|
| 107 | - * @param int $page Page number taken from the URL |
|
| 108 | - * @param int $sort_days Specifies the maximum amount of days a link may be old |
|
| 109 | - * @param string $sort_key is the key of $sort_by_sql for the selected sorting: a|t|r|s|v |
|
| 110 | - * @param string $sort_dir is either a or d representing ASC and DESC (ascending|descending) |
|
| 111 | - * @param string $mode watch|unwatch |
|
| 112 | - * @return \Symfony\Component\HttpFoundation\Response A Symfony Response object |
|
| 113 | - * @throws \phpbb\exception\http_exception |
|
| 114 | - */ |
|
| 102 | + * Legacy view controller for display a category |
|
| 103 | + * Used with /directory/categorie/{cat_id} |
|
| 104 | + * @deprecated 2.0.0 No longer used since dynamic routing. |
|
| 105 | + * |
|
| 106 | + * @param int $cat_id The category ID |
|
| 107 | + * @param int $page Page number taken from the URL |
|
| 108 | + * @param int $sort_days Specifies the maximum amount of days a link may be old |
|
| 109 | + * @param string $sort_key is the key of $sort_by_sql for the selected sorting: a|t|r|s|v |
|
| 110 | + * @param string $sort_dir is either a or d representing ASC and DESC (ascending|descending) |
|
| 111 | + * @param string $mode watch|unwatch |
|
| 112 | + * @return \Symfony\Component\HttpFoundation\Response A Symfony Response object |
|
| 113 | + * @throws \phpbb\exception\http_exception |
|
| 114 | + */ |
|
| 115 | 115 | public function view($cat_id, $page, $sort_days, $sort_key, $sort_dir, $mode = '') |
| 116 | 116 | { |
| 117 | 117 | $url = $this->helper->route('ernadoo_phpbbdirectory_dynamic_route_' . $cat_id, array('page' => $page, 'sort_days' => $sort_days, 'sort_key' => $sort_key, 'sort_dir' => $sort_dir)); |
@@ -120,17 +120,17 @@ discard block |
||
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | /** |
| 123 | - * View controller for display a category |
|
| 124 | - * |
|
| 125 | - * @param int $cat_id The category ID |
|
| 126 | - * @param int $page Page number taken from the URL |
|
| 127 | - * @param int $sort_days Specifies the maximum amount of days a link may be old |
|
| 128 | - * @param string $sort_key is the key of $sort_by_sql for the selected sorting: a|t|r|s|v|p |
|
| 129 | - * @param string $sort_dir is either a or d representing ASC and DESC (ascending|descending) |
|
| 130 | - * @param string $mode watch|unwatch |
|
| 131 | - * @return \Symfony\Component\HttpFoundation\Response A Symfony Response object |
|
| 132 | - * @throws \phpbb\exception\http_exception |
|
| 133 | - */ |
|
| 123 | + * View controller for display a category |
|
| 124 | + * |
|
| 125 | + * @param int $cat_id The category ID |
|
| 126 | + * @param int $page Page number taken from the URL |
|
| 127 | + * @param int $sort_days Specifies the maximum amount of days a link may be old |
|
| 128 | + * @param string $sort_key is the key of $sort_by_sql for the selected sorting: a|t|r|s|v|p |
|
| 129 | + * @param string $sort_dir is either a or d representing ASC and DESC (ascending|descending) |
|
| 130 | + * @param string $mode watch|unwatch |
|
| 131 | + * @return \Symfony\Component\HttpFoundation\Response A Symfony Response object |
|
| 132 | + * @throws \phpbb\exception\http_exception |
|
| 133 | + */ |
|
| 134 | 134 | public function view_route($cat_id, $page = 1, $sort_days = 0, $sort_key = '', $sort_dir = '', $mode = '') |
| 135 | 135 | { |
| 136 | 136 | if (false === $this->categorie->get($cat_id)) |
@@ -385,11 +385,11 @@ discard block |
||
| 385 | 385 | } |
| 386 | 386 | |
| 387 | 387 | /** |
| 388 | - * date controller for return a date |
|
| 389 | - * |
|
| 390 | - * @return \phpbb\json_response A Json Response |
|
| 391 | - * @throws \phpbb\exception\http_exception |
|
| 392 | - */ |
|
| 388 | + * date controller for return a date |
|
| 389 | + * |
|
| 390 | + * @return \phpbb\json_response A Json Response |
|
| 391 | + * @throws \phpbb\exception\http_exception |
|
| 392 | + */ |
|
| 393 | 393 | public function return_date() |
| 394 | 394 | { |
| 395 | 395 | if (!$this->request->is_ajax()) |
@@ -406,11 +406,11 @@ discard block |
||
| 406 | 406 | } |
| 407 | 407 | |
| 408 | 408 | /** |
| 409 | - * slug controller for return a slugify category name |
|
| 410 | - * |
|
| 411 | - * @return \phpbb\json_response A Json Response |
|
| 412 | - * @throws \phpbb\exception\http_exception |
|
| 413 | - */ |
|
| 409 | + * slug controller for return a slugify category name |
|
| 410 | + * |
|
| 411 | + * @return \phpbb\json_response A Json Response |
|
| 412 | + * @throws \phpbb\exception\http_exception |
|
| 413 | + */ |
|
| 414 | 414 | public function return_slug() |
| 415 | 415 | { |
| 416 | 416 | if (!$this->request->is_ajax()) |
@@ -20,8 +20,8 @@ discard block |
||
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | - * @inheritDoc |
|
| 24 | - */ |
|
| 23 | + * @inheritDoc |
|
| 24 | + */ |
|
| 25 | 25 | public function update_schema() |
| 26 | 26 | { |
| 27 | 27 | return array( |
@@ -34,8 +34,8 @@ discard block |
||
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | - * @inheritDoc |
|
| 38 | - */ |
|
| 37 | + * @inheritDoc |
|
| 38 | + */ |
|
| 39 | 39 | public function update_data() |
| 40 | 40 | { |
| 41 | 41 | return array( |
@@ -44,8 +44,8 @@ discard block |
||
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | - * @inheritDoc |
|
| 48 | - */ |
|
| 47 | + * @inheritDoc |
|
| 48 | + */ |
|
| 49 | 49 | public function revert_schema() |
| 50 | 50 | { |
| 51 | 51 | return array( |