@@ -405,8 +405,8 @@ discard block |
||
405 | 405 | /** |
406 | 406 | * Assign DataStore instance for use during load, save and delete |
407 | 407 | * |
408 | - * @param object $datastore |
|
409 | - * @return object $this |
|
408 | + * @param Datastore_Interface $datastore |
|
409 | + * @return Field $this |
|
410 | 410 | **/ |
411 | 411 | public function set_datastore( Datastore_Interface $datastore, $set_as_default = false ) { |
412 | 412 | if ( $set_as_default && !$this->has_default_datastore() ) { |
@@ -420,7 +420,7 @@ discard block |
||
420 | 420 | /** |
421 | 421 | * Return the DataStore instance used by the field |
422 | 422 | * |
423 | - * @return object $datastore |
|
423 | + * @return Datastore_Interface $datastore |
|
424 | 424 | **/ |
425 | 425 | public function get_datastore() { |
426 | 426 | return $this->datastore; |
@@ -430,7 +430,7 @@ discard block |
||
430 | 430 | * Assign the type of the container this field is in |
431 | 431 | * |
432 | 432 | * @param string |
433 | - * @return object $this |
|
433 | + * @return Field $this |
|
434 | 434 | **/ |
435 | 435 | public function set_context( $context ) { |
436 | 436 | $this->context = $context; |
@@ -467,7 +467,7 @@ discard block |
||
467 | 467 | /** |
468 | 468 | * Return a differently formatted value for end-users |
469 | 469 | * |
470 | - * @return mixed |
|
470 | + * @return string |
|
471 | 471 | **/ |
472 | 472 | public function get_formatted_value() { |
473 | 473 | $value = $this->get_value(); |
@@ -587,7 +587,7 @@ discard block |
||
587 | 587 | * Set additional text to be displayed during field render, |
588 | 588 | * containing information and guidance for the user |
589 | 589 | * |
590 | - * @return object $this |
|
590 | + * @return Field $this |
|
591 | 591 | **/ |
592 | 592 | public function set_help_text( $help_text ) { |
593 | 593 | $this->help_text = $help_text; |
@@ -598,7 +598,7 @@ discard block |
||
598 | 598 | * Alias for set_help_text() |
599 | 599 | * |
600 | 600 | * @see set_help_text() |
601 | - * @return object $this |
|
601 | + * @return Field $this |
|
602 | 602 | **/ |
603 | 603 | public function help_text( $help_text ) { |
604 | 604 | return $this->set_help_text( $help_text ); |
@@ -607,7 +607,7 @@ discard block |
||
607 | 607 | /** |
608 | 608 | * Return the field help text |
609 | 609 | * |
610 | - * @return object $this |
|
610 | + * @return string $this |
|
611 | 611 | **/ |
612 | 612 | public function get_help_text() { |
613 | 613 | return $this->help_text; |
@@ -617,7 +617,7 @@ discard block |
||
617 | 617 | * Whether or not this value should be auto loaded. Applicable to theme options only. |
618 | 618 | * |
619 | 619 | * @param bool $autoload |
620 | - * @return object $this |
|
620 | + * @return Field $this |
|
621 | 621 | **/ |
622 | 622 | public function set_autoload( $autoload ) { |
623 | 623 | $this->autoload = $autoload; |
@@ -637,7 +637,7 @@ discard block |
||
637 | 637 | * Whether or not this field will be initialized when the field is in the viewport (visible). |
638 | 638 | * |
639 | 639 | * @param bool $lazyload |
640 | - * @return object $this |
|
640 | + * @return Field $this |
|
641 | 641 | **/ |
642 | 642 | public function set_lazyload( $lazyload ) { |
643 | 643 | $this->lazyload = $lazyload; |
@@ -657,7 +657,7 @@ discard block |
||
657 | 657 | * Set the field width. |
658 | 658 | * |
659 | 659 | * @param int $width |
660 | - * @return object $this |
|
660 | + * @return Field $this |
|
661 | 661 | **/ |
662 | 662 | public function set_width( $width ) { |
663 | 663 | $this->width = (int) $width; |
@@ -677,7 +677,7 @@ discard block |
||
677 | 677 | * Add custom CSS class to the field html container. |
678 | 678 | * |
679 | 679 | * @param string|array $classes |
680 | - * @return object $this |
|
680 | + * @return Field $this |
|
681 | 681 | **/ |
682 | 682 | public function add_class( $classes ) { |
683 | 683 | if ( ! is_array( $classes ) ) { |
@@ -701,7 +701,7 @@ discard block |
||
701 | 701 | * Whether this field is mandatory for the user |
702 | 702 | * |
703 | 703 | * @param bool $required |
704 | - * @return object $this |
|
704 | + * @return Field $this |
|
705 | 705 | **/ |
706 | 706 | public function set_required( $required = true ) { |
707 | 707 | $this->required = $required; |
@@ -750,6 +750,7 @@ discard block |
||
750 | 750 | /** |
751 | 751 | * Cleans up an object class for usage as HTML class |
752 | 752 | * |
753 | + * @param string $type |
|
753 | 754 | * @return string |
754 | 755 | */ |
755 | 756 | protected function clean_type( $type ) { |
@@ -767,7 +768,7 @@ discard block |
||
767 | 768 | /** |
768 | 769 | * Return an array of html classes to be used for the field container |
769 | 770 | * |
770 | - * @return array |
|
771 | + * @return string[] |
|
771 | 772 | */ |
772 | 773 | public function get_html_class() { |
773 | 774 | $html_classes = array(); |
@@ -345,7 +345,7 @@ |
||
345 | 345 | /** |
346 | 346 | * Convert field data to a new storage key |
347 | 347 | * |
348 | - * @param array $hierarchy |
|
348 | + * @param array $full_hierarchy |
|
349 | 349 | * @param array $hierarchy_index |
350 | 350 | * @param integer $value_index |
351 | 351 | * @param string $value_key |
@@ -54,6 +54,7 @@ |
||
54 | 54 | /** |
55 | 55 | * Recursive function to replace meta keys in meta_query arrays |
56 | 56 | * |
57 | + * @param string $container_type |
|
57 | 58 | * @return array |
58 | 59 | */ |
59 | 60 | protected function filter_meta_query_array( $condition, $container_type ) { |