@@ -28,7 +28,7 @@ |
||
| 28 | 28 | /** |
| 29 | 29 | * Assign DataStore instance for use by the container fields |
| 30 | 30 | * |
| 31 | - * @param object $store |
|
| 31 | + * @param Meta_Datastore $store |
|
| 32 | 32 | **/ |
| 33 | 33 | public function set_datastore( Meta_Datastore $store ) { |
| 34 | 34 | parent::set_datastore( $store ); |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | /** |
| 57 | 57 | * Assign DataStore instance for use by the container fields |
| 58 | 58 | * |
| 59 | - * @param object $store |
|
| 59 | + * @param Meta_Datastore $store |
|
| 60 | 60 | **/ |
| 61 | 61 | public function set_datastore( Meta_Datastore $store ) { |
| 62 | 62 | parent::set_datastore( $store ); |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | /** |
| 68 | 68 | * Assign DataStore instance for use by the container fields |
| 69 | 69 | * |
| 70 | - * @param object $store |
|
| 70 | + * @param Meta_Datastore $store |
|
| 71 | 71 | **/ |
| 72 | 72 | public function set_datastore( Meta_Datastore $store ) { |
| 73 | 73 | parent::set_datastore( $store ); |
@@ -448,7 +448,7 @@ discard block |
||
| 448 | 448 | * Show the container only on pages whose parent is referenced by $parent_page_path. |
| 449 | 449 | * |
| 450 | 450 | * @param string $parent_page_path |
| 451 | - * @return object $this |
|
| 451 | + * @return Post_Meta_Container $this |
|
| 452 | 452 | **/ |
| 453 | 453 | public function show_on_page_children( $parent_page_path ) { |
| 454 | 454 | $page = get_page_by_path( $parent_page_path ); |
@@ -466,7 +466,7 @@ discard block |
||
| 466 | 466 | * Show the container only on particular page referenced by it's path. |
| 467 | 467 | * |
| 468 | 468 | * @param int|string $page page ID or page path |
| 469 | - * @return object $this |
|
| 469 | + * @return Post_Meta_Container $this |
|
| 470 | 470 | **/ |
| 471 | 471 | public function show_on_page( $page ) { |
| 472 | 472 | if ( is_int( $page ) ) { |
@@ -490,7 +490,7 @@ discard block |
||
| 490 | 490 | * @see show_on_taxonomy_term() |
| 491 | 491 | * |
| 492 | 492 | * @param string $category_slug |
| 493 | - * @return object $this |
|
| 493 | + * @return Post_Meta_Container $this |
|
| 494 | 494 | **/ |
| 495 | 495 | public function show_on_category( $category_slug ) { |
| 496 | 496 | $this->settings['show_on']['category'] = $category_slug; |
@@ -502,7 +502,7 @@ discard block |
||
| 502 | 502 | * Show the container only on pages whose template has filename $template_path. |
| 503 | 503 | * |
| 504 | 504 | * @param string|array $template_path |
| 505 | - * @return object $this |
|
| 505 | + * @return Post_Meta_Container $this |
|
| 506 | 506 | **/ |
| 507 | 507 | public function show_on_template( $template_path ) { |
| 508 | 508 | if ( is_array( $template_path ) ) { |
@@ -521,7 +521,7 @@ discard block |
||
| 521 | 521 | * Hide the container from pages whose template has filename $template_path. |
| 522 | 522 | * |
| 523 | 523 | * @param string|array $template_path |
| 524 | - * @return object $this |
|
| 524 | + * @return Post_Meta_Container $this |
|
| 525 | 525 | **/ |
| 526 | 526 | public function hide_on_template( $template_path ) { |
| 527 | 527 | if ( is_array( $template_path ) ) { |
@@ -541,7 +541,7 @@ discard block |
||
| 541 | 541 | * Levels start from 1 (top level post) |
| 542 | 542 | * |
| 543 | 543 | * @param int $level |
| 544 | - * @return object $this |
|
| 544 | + * @return Post_Meta_Container $this |
|
| 545 | 545 | **/ |
| 546 | 546 | public function show_on_level( $level ) { |
| 547 | 547 | if ( $level < 0 ) { |
@@ -558,7 +558,7 @@ discard block |
||
| 558 | 558 | * |
| 559 | 559 | * @param string $taxonomy_slug |
| 560 | 560 | * @param string $term_slug |
| 561 | - * @return object $this |
|
| 561 | + * @return Post_Meta_Container $this |
|
| 562 | 562 | **/ |
| 563 | 563 | public function show_on_taxonomy_term( $term_slug, $taxonomy_slug ) { |
| 564 | 564 | $term = get_term_by( 'slug', $term_slug, $taxonomy_slug ); |
@@ -575,7 +575,7 @@ discard block |
||
| 575 | 575 | * Learn more about {@link http://codex.wordpress.org/Post_Formats Post Formats (Codex)} |
| 576 | 576 | * |
| 577 | 577 | * @param string|array $post_format Name of the format as listed on Codex |
| 578 | - * @return object $this |
|
| 578 | + * @return Post_Meta_Container $this |
|
| 579 | 579 | **/ |
| 580 | 580 | public function show_on_post_format( $post_format ) { |
| 581 | 581 | if ( is_array( $post_format ) ) { |
@@ -598,7 +598,7 @@ discard block |
||
| 598 | 598 | * Show the container only on posts from the specified type(s). |
| 599 | 599 | * |
| 600 | 600 | * @param string|array $post_types |
| 601 | - * @return object $this |
|
| 601 | + * @return Post_Meta_Container $this |
|
| 602 | 602 | **/ |
| 603 | 603 | public function show_on_post_type( $post_types ) { |
| 604 | 604 | $post_types = (array) $post_types; |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | /** |
| 34 | 34 | * Assign DataStore instance for use by the container fields |
| 35 | 35 | * |
| 36 | - * @param object $store |
|
| 36 | + * @param Meta_Datastore $store |
|
| 37 | 37 | **/ |
| 38 | 38 | public function set_datastore( Meta_Datastore $store ) { |
| 39 | 39 | parent::set_datastore( $store ); |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | * Show the container only on terms from the specified taxonomies. |
| 197 | 197 | * |
| 198 | 198 | * @param string|array $taxonomies |
| 199 | - * @return object $this |
|
| 199 | + * @return Term_Meta_Container $this |
|
| 200 | 200 | **/ |
| 201 | 201 | public function show_on_taxonomy( $taxonomies ) { |
| 202 | 202 | $taxonomies = (array) $taxonomies; |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | * Show the container only on particular term level. |
| 211 | 211 | * |
| 212 | 212 | * @param int $term_level |
| 213 | - * @return object $this |
|
| 213 | + * @return Term_Meta_Container $this |
|
| 214 | 214 | */ |
| 215 | 215 | public function show_on_level( $term_level ) { |
| 216 | 216 | $this->settings['show_on_level'] = $term_level; |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | /** |
| 31 | 31 | * Assign DataStore instance for use by the container fields |
| 32 | 32 | * |
| 33 | - * @param object $store |
|
| 33 | + * @param Meta_Datastore $store |
|
| 34 | 34 | **/ |
| 35 | 35 | public function set_datastore( Meta_Datastore $store ) { |
| 36 | 36 | parent::set_datastore( $store ); |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | /** |
| 69 | 69 | * Checks whether the current request is valid |
| 70 | 70 | * |
| 71 | - * @return bool |
|
| 71 | + * @return null|boolean |
|
| 72 | 72 | **/ |
| 73 | 73 | public function is_valid_save( $user_id = 0 ) { |
| 74 | 74 | if ( ! isset( $_REQUEST[ $this->get_nonce_name() ] ) || ! wp_verify_nonce( $_REQUEST[ $this->get_nonce_name() ], $this->get_nonce_name() ) ) { // Input var okay. |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | * Perform checks whether the current save() request is valid |
| 85 | 85 | * |
| 86 | 86 | * @param int $user_id ID of the user against which save() is ran |
| 87 | - * @return bool |
|
| 87 | + * @return null|boolean |
|
| 88 | 88 | **/ |
| 89 | 89 | public function is_valid_save_conditions( $user_id ) { |
| 90 | 90 | $valid = true; |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | * Show the container only on users who have the $role role. |
| 115 | 115 | * |
| 116 | 116 | * @param string $role |
| 117 | - * @return object $this |
|
| 117 | + * @return User_Meta_Container $this |
|
| 118 | 118 | **/ |
| 119 | 119 | public function show_on_user_role( $role ) { |
| 120 | 120 | $this->settings['show_on']['role'] = (array) $role; |