@@ -193,7 +193,6 @@ |
||
193 | 193 | * @param mixed $value |
194 | 194 | * @param string $name |
195 | 195 | * @param array $options |
196 | - * @param array $fields |
|
197 | 196 | * @param array $pod |
198 | 197 | * @param int $id |
199 | 198 | * |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | /** |
331 | 331 | * Rewind Iterator |
332 | 332 | * |
333 | - * @return void|boolean |
|
333 | + * @return null|false |
|
334 | 334 | * |
335 | 335 | * @since 2.3.4 |
336 | 336 | * |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | /** |
382 | 382 | * Move onto the next Iterator row |
383 | 383 | * |
384 | - * @return void|boolean |
|
384 | + * @return null|false |
|
385 | 385 | * |
386 | 386 | * @since 2.3.4 |
387 | 387 | * |
@@ -475,7 +475,7 @@ discard block |
||
475 | 475 | /** |
476 | 476 | * Return field array from a Pod, a field's data, or a field option |
477 | 477 | * |
478 | - * @param null $field |
|
478 | + * @param string $field |
|
479 | 479 | * @param null $option |
480 | 480 | * |
481 | 481 | * @return bool|mixed |
@@ -1927,7 +1927,6 @@ discard block |
||
1927 | 1927 | * Return the next item ID, loops at the first id to return the last |
1928 | 1928 | * |
1929 | 1929 | * @param int $id |
1930 | - * @param array $find_params |
|
1931 | 1930 | * |
1932 | 1931 | * @return int |
1933 | 1932 | * @since 2.0 |
@@ -2443,7 +2442,7 @@ discard block |
||
2443 | 2442 | * @param null|int $offset Offset of rows |
2444 | 2443 | * @param null|int $total Total rows |
2445 | 2444 | * |
2446 | - * @return int Number of pages |
|
2445 | + * @return double Number of pages |
|
2447 | 2446 | * @since 2.3.10 |
2448 | 2447 | */ |
2449 | 2448 | public function total_pages( $limit = null, $offset = null, $total = null ) { |
@@ -2552,7 +2551,7 @@ discard block |
||
2552 | 2551 | * @see PodsAPI::save_pod_item |
2553 | 2552 | * |
2554 | 2553 | * @param string $field Field name |
2555 | - * @param mixed $value ID(s) to add, int|float to add to number field, string for dates (+1 week), or string for text |
|
2554 | + * @param string $value ID(s) to add, int|float to add to number field, string for dates (+1 week), or string for text |
|
2556 | 2555 | * @param int $id (optional) ID of the pod item to update |
2557 | 2556 | * |
2558 | 2557 | * @return int The item ID |
@@ -2658,7 +2657,7 @@ discard block |
||
2658 | 2657 | * @see PodsAPI::save_pod_item |
2659 | 2658 | * |
2660 | 2659 | * @param string $field Field name |
2661 | - * @param mixed $value ID(s) to add, int|float to add to number field, string for dates (-1 week), or string for text |
|
2660 | + * @param string $value ID(s) to add, int|float to add to number field, string for dates (-1 week), or string for text |
|
2662 | 2661 | * @param int $id (optional) ID of the pod item to update |
2663 | 2662 | * |
2664 | 2663 | * @return int The item ID |
@@ -3261,7 +3260,7 @@ discard block |
||
3261 | 3260 | * |
3262 | 3261 | * @see Pods_Templates::template |
3263 | 3262 | * |
3264 | - * @param string $template The template name |
|
3263 | + * @param string $template_name The template name |
|
3265 | 3264 | * @param string $code Custom template code to use instead |
3266 | 3265 | * @param bool $deprecated Whether to use deprecated functionality based on old function usage |
3267 | 3266 | * |
@@ -3547,7 +3546,6 @@ discard block |
||
3547 | 3546 | * Replace magic tags with their values |
3548 | 3547 | * |
3549 | 3548 | * @param string $code The content to evaluate |
3550 | - * @param object $obj The Pods object |
|
3551 | 3549 | * |
3552 | 3550 | * @return string Code with Magic Tags evaluated |
3553 | 3551 | * |
@@ -3561,7 +3559,6 @@ discard block |
||
3561 | 3559 | * Replace magic tags with their values |
3562 | 3560 | * |
3563 | 3561 | * @param string $tag The magic tag to process |
3564 | - * @param object $obj The Pods object |
|
3565 | 3562 | * |
3566 | 3563 | * @return string Code with Magic Tags evaluated |
3567 | 3564 | * |
@@ -92,7 +92,7 @@ |
||
92 | 92 | /** |
93 | 93 | * Validate value on a specific type and set default (if empty) |
94 | 94 | * |
95 | - * @param mixed $offset Used to get value of Array or Variable on Object |
|
95 | + * @param string $offset Used to get value of Array or Variable on Object |
|
96 | 96 | * @param mixed $default Used to set default value if it doesn't exist |
97 | 97 | * @param string $type Used to force a specific type of variable (allowed: array, object, integer, absint, boolean) |
98 | 98 | * @param mixed $extra Used in advanced types of variables |
@@ -2019,8 +2019,8 @@ discard block |
||
2019 | 2019 | * |
2020 | 2020 | * @param string|array $sql The SQL to execute |
2021 | 2021 | * @param string $error Error to throw on problems |
2022 | - * @param null $results_error (optional) |
|
2023 | - * @param null $no_results_error (optional) |
|
2022 | + * @param string|null $results_error (optional) |
|
2023 | + * @param string|null $no_results_error (optional) |
|
2024 | 2024 | * |
2025 | 2025 | * @return array|bool|mixed|null|void Result of the query |
2026 | 2026 | * |
@@ -2347,7 +2347,7 @@ discard block |
||
2347 | 2347 | /** |
2348 | 2348 | * Get the string to use in a query for matching, uses WP_Query meta_query arguments |
2349 | 2349 | * |
2350 | - * @param string|int $field Field name or array index |
|
2350 | + * @param string $field Field name or array index |
|
2351 | 2351 | * @param array|string $q Query array (meta_query) or string for matching |
2352 | 2352 | * @param array $pod Related Pod |
2353 | 2353 | * @param object $params Parameters passed from select() |
@@ -332,6 +332,9 @@ discard block |
||
332 | 332 | self::$settings = pods_api()->load_pods( array( 'type' => 'settings', 'refresh' => true ) ); |
333 | 333 | } |
334 | 334 | |
335 | + /** |
|
336 | + * @param string $type |
|
337 | + */ |
|
335 | 338 | public function register ( $type, $pod ) { |
336 | 339 | $pod_type = $type; |
337 | 340 | |
@@ -795,7 +798,7 @@ discard block |
||
795 | 798 | } |
796 | 799 | |
797 | 800 | /** |
798 | - * @param $type |
|
801 | + * @param string $type |
|
799 | 802 | * @param $name |
800 | 803 | * @param $default_fields |
801 | 804 | * |
@@ -2688,7 +2691,7 @@ discard block |
||
2688 | 2691 | * @param string $meta_value |
2689 | 2692 | * @param bool $unique |
2690 | 2693 | * |
2691 | - * @return bool|int|null |
|
2694 | + * @return null|integer |
|
2692 | 2695 | */ |
2693 | 2696 | public function add_meta ( $object_type, $_null = null, $object_id = 0, $meta_key = '', $meta_value = '', $unique = false ) { |
2694 | 2697 | if ( pods_tableless() ) |
@@ -2729,7 +2732,7 @@ discard block |
||
2729 | 2732 | * @param string $meta_value |
2730 | 2733 | * @param string $prev_value |
2731 | 2734 | * |
2732 | - * @return bool|int|null |
|
2735 | + * @return null|integer |
|
2733 | 2736 | */ |
2734 | 2737 | public function update_meta ( $object_type, $_null = null, $object_id = 0, $meta_key = '', $meta_value = '', $prev_value = '' ) { |
2735 | 2738 | if ( pods_tableless() ) |
@@ -2870,6 +2873,9 @@ discard block |
||
2870 | 2873 | return $this->delete_object( 'media', $id ); |
2871 | 2874 | } |
2872 | 2875 | |
2876 | + /** |
|
2877 | + * @param string $type |
|
2878 | + */ |
|
2873 | 2879 | public function delete_object ( $type, $id, $name = null ) { |
2874 | 2880 | if ( empty( $name ) ) |
2875 | 2881 | $name = $type; |
@@ -457,7 +457,7 @@ discard block |
||
457 | 457 | * @param array $data Array of data |
458 | 458 | * @param string $delimiter Delimiter for export type 'sv' |
459 | 459 | * |
460 | - * @return bool |
|
460 | + * @return false|string |
|
461 | 461 | */ |
462 | 462 | public function build_sv ( $data = null, $delimiter = null ) { |
463 | 463 | if ( !empty( $data ) ) |
@@ -521,7 +521,7 @@ discard block |
||
521 | 521 | /** |
522 | 522 | * @param array $data Array of data |
523 | 523 | * |
524 | - * @return bool |
|
524 | + * @return false|string |
|
525 | 525 | */ |
526 | 526 | public function build_xml ( $data = null ) { |
527 | 527 | if ( !empty( $data ) ) |
@@ -359,7 +359,7 @@ |
||
359 | 359 | * $params['name'] string Field name |
360 | 360 | * |
361 | 361 | * @param array $params An associative array of parameters |
362 | - * @param null $obj |
|
362 | + * @param Pods $obj |
|
363 | 363 | * |
364 | 364 | * @return mixed Anything returned by the helper |
365 | 365 | * @since 2.0 |
@@ -1018,6 +1018,10 @@ discard block |
||
1018 | 1018 | |
1019 | 1019 | var $list_level = 0; |
1020 | 1020 | |
1021 | + /** |
|
1022 | + * @param string $list_str |
|
1023 | + * @param string $marker_any_re |
|
1024 | + */ |
|
1021 | 1025 | function processListItems($list_str, $marker_any_re) { |
1022 | 1026 | # |
1023 | 1027 | # Process the contents of a single ordered or unordered list, splitting it |
@@ -1121,6 +1125,9 @@ discard block |
||
1121 | 1125 | } |
1122 | 1126 | |
1123 | 1127 | |
1128 | + /** |
|
1129 | + * @param string $code |
|
1130 | + */ |
|
1124 | 1131 | function makeCodeSpan($code) { |
1125 | 1132 | # |
1126 | 1133 | # Create a code span markup for $code. Called from handleSpanToken. |
@@ -1613,6 +1620,9 @@ discard block |
||
1613 | 1620 | # hanlde UTF-8 if the default function does not exist. |
1614 | 1621 | var $utf8_strlen = 'mb_strlen'; |
1615 | 1622 | |
1623 | + /** |
|
1624 | + * @param string $text |
|
1625 | + */ |
|
1616 | 1626 | function detab($text) { |
1617 | 1627 | # |
1618 | 1628 | # Replace tabs with the appropriate amount of space. |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | * Disable this Post Type from appearing in the Builder layouts list |
135 | 135 | * |
136 | 136 | * @param array $post_types |
137 | - * @return array |
|
137 | + * @return string[] |
|
138 | 138 | */ |
139 | 139 | public function disable_builder_layout ( $post_types ) { |
140 | 140 | $post_types[] = $this->object_type; |
@@ -621,7 +621,7 @@ discard block |
||
621 | 621 | * |
622 | 622 | * @param string $uri The Pod Page URI to check if exists |
623 | 623 | * |
624 | - * @return array|bool |
|
624 | + * @return boolean |
|
625 | 625 | */ |
626 | 626 | public static function exists ( $uri = null ) { |
627 | 627 | if ( null === $uri ) { |