@@ -19,7 +19,7 @@ |
||
| 19 | 19 | /** |
| 20 | 20 | * Constructor - Pods Deprecated functionality (pre 2.0) |
| 21 | 21 | * |
| 22 | - * @param object $obj The Pods object |
|
| 22 | + * @param Pods $obj The Pods object |
|
| 23 | 23 | * |
| 24 | 24 | * @license http://www.gnu.org/licenses/gpl-2.0.html |
| 25 | 25 | * @since 2.0 |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | /** |
| 22 | 22 | * Constructor - PodsAPI Deprecated functionality (pre 2.0) |
| 23 | 23 | * |
| 24 | - * @param object $obj The PodsAPI object |
|
| 24 | + * @param PodsAPI $obj The PodsAPI object |
|
| 25 | 25 | * |
| 26 | 26 | * @license http://www.gnu.org/licenses/gpl-2.0.html |
| 27 | 27 | * @since 2.0 |
@@ -442,7 +442,7 @@ discard block |
||
| 442 | 442 | * @param string $message |
| 443 | 443 | * @param bool $error Whether or not it is an error message |
| 444 | 444 | * |
| 445 | - * @return bool |
|
| 445 | + * @return boolean|null |
|
| 446 | 446 | * |
| 447 | 447 | * @since 1.12 |
| 448 | 448 | * @deprcated 2.3 |
@@ -459,7 +459,7 @@ discard block |
||
| 459 | 459 | * |
| 460 | 460 | * @param string $message |
| 461 | 461 | * |
| 462 | - * @return bool |
|
| 462 | + * @return boolean|null |
|
| 463 | 463 | * |
| 464 | 464 | * @since 1.12 |
| 465 | 465 | * @deprcated 2.3 |
@@ -516,7 +516,7 @@ discard block |
||
| 516 | 516 | * |
| 517 | 517 | * @param $version |
| 518 | 518 | * |
| 519 | - * @return array|string |
|
| 519 | + * @return string |
|
| 520 | 520 | */ |
| 521 | 521 | function pods_version_to_point( $version ) { |
| 522 | 522 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | - * @return array|bool|int|mixed|null|void |
|
| 20 | + * @return integer |
|
| 21 | 21 | */ |
| 22 | 22 | public function prepare_relationships() { |
| 23 | 23 | |
@@ -435,7 +435,7 @@ discard block |
||
| 435 | 435 | /** |
| 436 | 436 | * Rewind Iterator |
| 437 | 437 | * |
| 438 | - * @return void|boolean |
|
| 438 | + * @return null|false |
|
| 439 | 439 | * |
| 440 | 440 | * @since 2.3.4 |
| 441 | 441 | * |
@@ -491,7 +491,7 @@ discard block |
||
| 491 | 491 | /** |
| 492 | 492 | * Move onto the next Iterator row |
| 493 | 493 | * |
| 494 | - * @return void|boolean |
|
| 494 | + * @return null|false |
|
| 495 | 495 | * |
| 496 | 496 | * @since 2.3.4 |
| 497 | 497 | * |
@@ -594,7 +594,7 @@ discard block |
||
| 594 | 594 | * Return field array from a Pod, a field's data, or a field option |
| 595 | 595 | * |
| 596 | 596 | * @param null $field Field name. |
| 597 | - * @param null $option Option name. |
|
| 597 | + * @param string $option Option name. |
|
| 598 | 598 | * |
| 599 | 599 | * @return bool|mixed |
| 600 | 600 | * |
@@ -677,7 +677,7 @@ discard block |
||
| 677 | 677 | * list of text such as "Rick, John, and Gary" |
| 678 | 678 | * |
| 679 | 679 | * @param string|array|object $name The field name, or an associative array of parameters. |
| 680 | - * @param boolean|array|object $single (optional) For tableless fields, to return an array or the first. |
|
| 680 | + * @param boolean $single (optional) For tableless fields, to return an array or the first. |
|
| 681 | 681 | * |
| 682 | 682 | * @return string|null|false The output from the field, null if the field doesn't exist, false if no value returned |
| 683 | 683 | * for tableless fields |
@@ -737,7 +737,7 @@ discard block |
||
| 737 | 737 | * list of text such as "Rick, John, and Gary" |
| 738 | 738 | * |
| 739 | 739 | * @param string|array|object $name The field name, or an associative array of parameters. |
| 740 | - * @param boolean|array|object $single (optional) For tableless fields, to return an array or the first. |
|
| 740 | + * @param boolean $single (optional) For tableless fields, to return an array or the first. |
|
| 741 | 741 | * |
| 742 | 742 | * @return string|null|false The output from the field, null if the field doesn't exist, false if no value returned |
| 743 | 743 | * for tableless fields |
@@ -2817,7 +2817,7 @@ discard block |
||
| 2817 | 2817 | * @param null|int $offset Offset of rows. |
| 2818 | 2818 | * @param null|int $total Total rows. |
| 2819 | 2819 | * |
| 2820 | - * @return int Number of pages |
|
| 2820 | + * @return double Number of pages |
|
| 2821 | 2821 | * @since 2.3.10 |
| 2822 | 2822 | */ |
| 2823 | 2823 | public function total_pages( $limit = null, $offset = null, $total = null ) { |
@@ -2931,7 +2931,7 @@ discard block |
||
| 2931 | 2931 | * @see PodsAPI::save_pod_item |
| 2932 | 2932 | * |
| 2933 | 2933 | * @param string $field Field name. |
| 2934 | - * @param mixed $value IDs to add, int|float to add to number field, string for dates (+1 day), or string for text. |
|
| 2934 | + * @param string $value IDs to add, int|float to add to number field, string for dates (+1 day), or string for text. |
|
| 2935 | 2935 | * @param int $id (optional) ID of the pod item to update. |
| 2936 | 2936 | * |
| 2937 | 2937 | * @return int The item ID |
@@ -3047,7 +3047,7 @@ discard block |
||
| 3047 | 3047 | * @see PodsAPI::save_pod_item |
| 3048 | 3048 | * |
| 3049 | 3049 | * @param string $field Field name. |
| 3050 | - * @param mixed $value IDs to add, int|float to add to number field, string for dates (-1 day), or string for text. |
|
| 3050 | + * @param string $value IDs to add, int|float to add to number field, string for dates (-1 day), or string for text. |
|
| 3051 | 3051 | * @param int $id (optional) ID of the pod item to update. |
| 3052 | 3052 | * |
| 3053 | 3053 | * @return int The item ID |
@@ -619,7 +619,7 @@ |
||
| 619 | 619 | * @param string $date Defaults to time() if empty. |
| 620 | 620 | * @param boolean $return_timestamp Whether to return the strtotime() or createFromFormat result or not. |
| 621 | 621 | * |
| 622 | - * @return DateTime|null|int|false |
|
| 622 | + * @return string |
|
| 623 | 623 | */ |
| 624 | 624 | public function createFromFormat( $format, $date, $return_timestamp = false ) { |
| 625 | 625 | |
@@ -2564,7 +2564,7 @@ discard block |
||
| 2564 | 2564 | * @param PodsUI $obj PodsUI object. |
| 2565 | 2565 | * @param int|string $id Item ID. |
| 2566 | 2566 | * |
| 2567 | - * @return mixed |
|
| 2567 | + * @return boolean|null |
|
| 2568 | 2568 | */ |
| 2569 | 2569 | public function admin_setup_reset( $obj, $id ) { |
| 2570 | 2570 | |
@@ -2613,7 +2613,7 @@ discard block |
||
| 2613 | 2613 | * @param int|string $id Item ID. |
| 2614 | 2614 | * @param PodsUI $obj PodsUI object. |
| 2615 | 2615 | * |
| 2616 | - * @return mixed |
|
| 2616 | + * @return boolean|null |
|
| 2617 | 2617 | */ |
| 2618 | 2618 | public function admin_setup_delete( $id, $obj ) { |
| 2619 | 2619 | |
@@ -2838,7 +2838,7 @@ discard block |
||
| 2838 | 2838 | * |
| 2839 | 2839 | * @param PodsUI $ui PodsUI object |
| 2840 | 2840 | * |
| 2841 | - * @return bool |
|
| 2841 | + * @return boolean|null |
|
| 2842 | 2842 | */ |
| 2843 | 2843 | public function admin_components_toggle( $ui ) { |
| 2844 | 2844 | |
@@ -2982,7 +2982,7 @@ discard block |
||
| 2982 | 2982 | * |
| 2983 | 2983 | * @param array $capabilities List of extra capabilities to add. |
| 2984 | 2984 | * |
| 2985 | - * @return array |
|
| 2985 | + * @return string[] |
|
| 2986 | 2986 | */ |
| 2987 | 2987 | public function admin_capabilities( $capabilities ) { |
| 2988 | 2988 | |
@@ -2238,8 +2238,8 @@ discard block |
||
| 2238 | 2238 | * |
| 2239 | 2239 | * @param string|array $sql The SQL to execute. |
| 2240 | 2240 | * @param string $error Error to throw on problems. |
| 2241 | - * @param null $results_error (optional). |
|
| 2242 | - * @param null $no_results_error (optional). |
|
| 2241 | + * @param string|null $results_error (optional). |
|
| 2242 | + * @param string|null $no_results_error (optional). |
|
| 2243 | 2243 | * |
| 2244 | 2244 | * @return array|bool|mixed|null|void Result of the query |
| 2245 | 2245 | * |
@@ -2586,7 +2586,7 @@ discard block |
||
| 2586 | 2586 | /** |
| 2587 | 2587 | * Get the string to use in a query for matching, uses WP_Query meta_query arguments |
| 2588 | 2588 | * |
| 2589 | - * @param string|int $field Field name or array index. |
|
| 2589 | + * @param string $field Field name or array index. |
|
| 2590 | 2590 | * @param array|string $q Query array (meta_query) or string for matching. |
| 2591 | 2591 | * @param array $pod Related Pod. |
| 2592 | 2592 | * @param object $params Parameters passed from select(). |