@@ -323,8 +323,8 @@ discard block |
||
| 323 | 323 | /** |
| 324 | 324 | * Assign DataStore instance for use during load, save and delete |
| 325 | 325 | * |
| 326 | - * @param object $store |
|
| 327 | - * @return object $this |
|
| 326 | + * @param Datastore_Interface $store |
|
| 327 | + * @return Field $this |
|
| 328 | 328 | **/ |
| 329 | 329 | public function set_datastore( Datastore_Interface $store ) { |
| 330 | 330 | $this->store = $store; |
@@ -334,7 +334,7 @@ discard block |
||
| 334 | 334 | /** |
| 335 | 335 | * Return the DataStore instance used by the field |
| 336 | 336 | * |
| 337 | - * @return object $store |
|
| 337 | + * @return Datastore_Interface $store |
|
| 338 | 338 | **/ |
| 339 | 339 | public function get_datastore() { |
| 340 | 340 | return $this->store; |
@@ -344,7 +344,7 @@ discard block |
||
| 344 | 344 | * Assign the type of the container this field is in |
| 345 | 345 | * |
| 346 | 346 | * @param string |
| 347 | - * @return object $this |
|
| 347 | + * @return Field $this |
|
| 348 | 348 | **/ |
| 349 | 349 | public function set_context( $context ) { |
| 350 | 350 | $this->context = $context; |
@@ -447,7 +447,7 @@ discard block |
||
| 447 | 447 | * name and the conditional logic fields. |
| 448 | 448 | * |
| 449 | 449 | * @param string $prefix |
| 450 | - * @return object $this |
|
| 450 | + * @return Field $this |
|
| 451 | 451 | **/ |
| 452 | 452 | public function set_prefix( $prefix ) { |
| 453 | 453 | $escaped_prefix = preg_quote( $this->name_prefix, '~' ); |
@@ -492,7 +492,7 @@ discard block |
||
| 492 | 492 | * Set additional text to be displayed during field render, |
| 493 | 493 | * containing information and guidance for the user |
| 494 | 494 | * |
| 495 | - * @return object $this |
|
| 495 | + * @return Field $this |
|
| 496 | 496 | **/ |
| 497 | 497 | public function set_help_text( $help_text ) { |
| 498 | 498 | $this->help_text = $help_text; |
@@ -503,7 +503,7 @@ discard block |
||
| 503 | 503 | * Alias for set_help_text() |
| 504 | 504 | * |
| 505 | 505 | * @see set_help_text() |
| 506 | - * @return object $this |
|
| 506 | + * @return Field $this |
|
| 507 | 507 | **/ |
| 508 | 508 | public function help_text( $help_text ) { |
| 509 | 509 | return $this->set_help_text( $help_text ); |
@@ -512,7 +512,7 @@ discard block |
||
| 512 | 512 | /** |
| 513 | 513 | * Return the field help text |
| 514 | 514 | * |
| 515 | - * @return object $this |
|
| 515 | + * @return string $this |
|
| 516 | 516 | **/ |
| 517 | 517 | public function get_help_text() { |
| 518 | 518 | return $this->help_text; |
@@ -522,7 +522,7 @@ discard block |
||
| 522 | 522 | * Whether or not this value should be auto loaded. Applicable to theme options only. |
| 523 | 523 | * |
| 524 | 524 | * @param bool $autoload |
| 525 | - * @return object $this |
|
| 525 | + * @return Field $this |
|
| 526 | 526 | **/ |
| 527 | 527 | public function set_autoload( $autoload ) { |
| 528 | 528 | $this->autoload = $autoload; |
@@ -542,7 +542,7 @@ discard block |
||
| 542 | 542 | * Whether or not this field will be initialized when the field is in the viewport (visible). |
| 543 | 543 | * |
| 544 | 544 | * @param bool $lazyload |
| 545 | - * @return object $this |
|
| 545 | + * @return Field $this |
|
| 546 | 546 | **/ |
| 547 | 547 | public function set_lazyload( $lazyload ) { |
| 548 | 548 | $this->lazyload = $lazyload; |
@@ -562,7 +562,7 @@ discard block |
||
| 562 | 562 | * Set the field width. |
| 563 | 563 | * |
| 564 | 564 | * @param int $width |
| 565 | - * @return object $this |
|
| 565 | + * @return Field $this |
|
| 566 | 566 | **/ |
| 567 | 567 | public function set_width( $width ) { |
| 568 | 568 | $this->width = (int) $width; |
@@ -582,7 +582,7 @@ discard block |
||
| 582 | 582 | * Add custom CSS class to the field html container. |
| 583 | 583 | * |
| 584 | 584 | * @param string|array $classes |
| 585 | - * @return object $this |
|
| 585 | + * @return Field $this |
|
| 586 | 586 | **/ |
| 587 | 587 | public function add_class( $classes ) { |
| 588 | 588 | if ( ! is_array( $classes ) ) { |
@@ -606,7 +606,7 @@ discard block |
||
| 606 | 606 | * Whether this field is mandatory for the user |
| 607 | 607 | * |
| 608 | 608 | * @param bool $required |
| 609 | - * @return object $this |
|
| 609 | + * @return Field $this |
|
| 610 | 610 | **/ |
| 611 | 611 | public function set_required( $required ) { |
| 612 | 612 | $this->required = $required; |
@@ -618,7 +618,7 @@ discard block |
||
| 618 | 618 | * |
| 619 | 619 | * @param string $mask |
| 620 | 620 | * @param array $options |
| 621 | - * @return object $this |
|
| 621 | + * @return Field $this |
|
| 622 | 622 | **/ |
| 623 | 623 | public function set_mask( $mask, $options = array() ) { |
| 624 | 624 | $this->mask = $mask; |
@@ -654,7 +654,7 @@ discard block |
||
| 654 | 654 | /** |
| 655 | 655 | * Return mask format on this field |
| 656 | 656 | * |
| 657 | - * @return string |
|
| 657 | + * @return boolean |
|
| 658 | 658 | **/ |
| 659 | 659 | public function get_mask() { |
| 660 | 660 | return $this->mask; |
@@ -663,7 +663,7 @@ discard block |
||
| 663 | 663 | /** |
| 664 | 664 | * Return jQuery mask options |
| 665 | 665 | * |
| 666 | - * @return array |
|
| 666 | + * @return boolean |
|
| 667 | 667 | **/ |
| 668 | 668 | public function get_mask_options() |
| 669 | 669 | { |
@@ -687,6 +687,7 @@ discard block |
||
| 687 | 687 | /** |
| 688 | 688 | * Cleans up an object class for usage as HTML class |
| 689 | 689 | * |
| 690 | + * @param string $type |
|
| 690 | 691 | * @return string |
| 691 | 692 | */ |
| 692 | 693 | protected function clean_type( $type ) { |
@@ -704,7 +705,7 @@ discard block |
||
| 704 | 705 | /** |
| 705 | 706 | * Return an array of html classes to be used for the field container |
| 706 | 707 | * |
| 707 | - * @return array |
|
| 708 | + * @return string[] |
|
| 708 | 709 | */ |
| 709 | 710 | public function get_html_class() { |
| 710 | 711 | $html_classes = array(); |