| @@ -16,10 +16,8 @@ | ||
| 16 | 16 | */ |
| 17 | 17 | public $options; |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | - * Instance of PLL_Model. | |
| 21 | - * | |
| 22 | 20 | * @var PLL_Model |
| 23 | 21 | */ |
| 24 | 22 | public $model; |
| 25 | 23 | |
| @@ -160,8 +158,10 @@ | ||
| 160 | 158 | /** |
| 161 | 159 | * Activates the module |
| 162 | 160 | * |
| 163 | 161 | * @since 1.8 |
| 162 | + * | |
| 163 | + * @return void | |
| 164 | 164 | */ |
| 165 | 165 | public function activate() { |
| 166 | 166 | if ( ! empty( $this->active_option ) ) { |
| 167 | 167 | $this->options[ $this->active_option ] = true; |
| @@ -172,8 +172,10 @@ | ||
| 172 | 172 | /** |
| 173 | 173 | * Deactivates the module |
| 174 | 174 | * |
| 175 | 175 | * @since 1.8 |
| 176 | + * | |
| 177 | + * @return void | |
| 176 | 178 | */ |
| 177 | 179 | public function deactivate() { |
| 178 | 180 | if ( ! empty( $this->active_option ) ) { |
| 179 | 181 | $this->options[ $this->active_option ] = false; |
| @@ -184,8 +186,10 @@ | ||
| 184 | 186 | /** |
| 185 | 187 | * Protected method to display a configuration form |
| 186 | 188 | * |
| 187 | 189 | * @since 1.8 |
| 190 | + * | |
| 191 | + * @return void | |
| 188 | 192 | */ |
| 189 | 193 | protected function form() { |
| 190 | 194 | // Child classes can provide a form |
| 191 | 195 | } |
| @@ -223,8 +227,10 @@ | ||
| 223 | 227 | /** |
| 224 | 228 | * Ajax method to save the options |
| 225 | 229 | * |
| 226 | 230 | * @since 1.8 |
| 231 | + * | |
| 232 | + * @return void | |
| 227 | 233 | */ |
| 228 | 234 | public function save_options() { |
| 229 | 235 | check_ajax_referer( 'pll_options', '_pll_nonce' ); |
| 230 | 236 | if ( ! current_user_can( 'manage_options' ) ) { |
| @@ -262,13 +268,13 @@ | ||
| 262 | 268 | } |
| 263 | 269 | } |
| 264 | 270 | |
| 265 | 271 | /** |
| 266 | - * Get the row actions | |
| 272 | + * Get the row actions. | |
| 267 | 273 | * |
| 268 | 274 | * @since 1.8 |
| 269 | 275 | * |
| 270 | - * @return array | |
| 276 | + * @return string[] | |
| 271 | 277 | */ |
| 272 | 278 | protected function get_actions() { |
| 273 | 279 | $actions = array(); |
| 274 | 280 | |
| @@ -287,13 +293,13 @@ | ||
| 287 | 293 | return $actions; |
| 288 | 294 | } |
| 289 | 295 | |
| 290 | 296 | /** |
| 291 | - * Get the actions links | |
| 297 | + * Get the actions links. | |
| 292 | 298 | * |
| 293 | 299 | * @since 1.8 |
| 294 | 300 | * |
| 295 | - * @return array | |
| 301 | + * @return string[] Action links. | |
| 296 | 302 | */ |
| 297 | 303 | public function get_action_links() { |
| 298 | 304 | return array_intersect_key( $this->action_links, array_flip( $this->get_actions() ) ); |
| 299 | 305 | } |
| @@ -325,13 +331,13 @@ | ||
| 325 | 331 | return ''; |
| 326 | 332 | } |
| 327 | 333 | |
| 328 | 334 | /** |
| 329 | - * Get the buttons | |
| 335 | + * Get the buttons. | |
| 330 | 336 | * |
| 331 | 337 | * @since 1.9 |
| 332 | 338 | * |
| 333 | - * @return array | |
| 339 | + * @return string[] An array of html fragment for the buttons. | |
| 334 | 340 | */ |
| 335 | 341 | public function get_buttons() { |
| 336 | 342 | return $this->buttons; |
| 337 | 343 | } |