@@ -48,7 +48,6 @@ discard block |
||
| 48 | 48 | /** |
| 49 | 49 | * Add options and set defaults to |
| 50 | 50 | * |
| 51 | - * @param array $options |
|
| 52 | 51 | * |
| 53 | 52 | * @since 2.0 |
| 54 | 53 | */ |
@@ -106,7 +105,7 @@ discard block |
||
| 106 | 105 | * |
| 107 | 106 | * @param array $options |
| 108 | 107 | * |
| 109 | - * @return array |
|
| 108 | + * @return string |
|
| 110 | 109 | * @since 2.0 |
| 111 | 110 | */ |
| 112 | 111 | public function schema ( $options = null ) { |
@@ -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 | * |
@@ -1564,7 +1564,7 @@ discard block |
||
| 1564 | 1564 | * |
| 1565 | 1565 | * @param array $params An associative array of parameters |
| 1566 | 1566 | * @param bool $sanitized (optional) Decides whether the params have been sanitized before being passed, will sanitize them if false. |
| 1567 | - * @param bool|int $db (optional) Whether to save into the DB or just return Pod array. |
|
| 1567 | + * @param boolean $db (optional) Whether to save into the DB or just return Pod array. |
|
| 1568 | 1568 | * |
| 1569 | 1569 | * @return int Pod ID |
| 1570 | 1570 | * @since 1.7.9 |
@@ -3901,7 +3901,7 @@ discard block |
||
| 3901 | 3901 | * Save relationships |
| 3902 | 3902 | * |
| 3903 | 3903 | * @param int $id ID of item |
| 3904 | - * @param int|array $related_id ID or IDs to save |
|
| 3904 | + * @param int|array $related_ids ID or IDs to save |
|
| 3905 | 3905 | * @param array $pod Pod data |
| 3906 | 3906 | * @param array $field Field data |
| 3907 | 3907 | */ |
@@ -4995,7 +4995,6 @@ discard block |
||
| 4995 | 4995 | * Delete an object from tableless fields |
| 4996 | 4996 | * |
| 4997 | 4997 | * @param int $id |
| 4998 | - * @param string $type |
|
| 4999 | 4998 | * @param string $name |
| 5000 | 4999 | * |
| 5001 | 5000 | * @return bool |
@@ -5218,6 +5217,7 @@ discard block |
||
| 5218 | 5217 | * $params['name'] string Pod name |
| 5219 | 5218 | * |
| 5220 | 5219 | * @param array $params An associative array of parameters |
| 5220 | + * @param string $type |
|
| 5221 | 5221 | * |
| 5222 | 5222 | * @return bool True if exists |
| 5223 | 5223 | * |
@@ -6682,7 +6682,7 @@ discard block |
||
| 6682 | 6682 | * @param string $type Field type to look for |
| 6683 | 6683 | * @param array $options (optional) Options of the field to pass to the schema function. |
| 6684 | 6684 | * |
| 6685 | - * @return array|bool|mixed|null |
|
| 6685 | + * @return string |
|
| 6686 | 6686 | * |
| 6687 | 6687 | * @since 2.0 |
| 6688 | 6688 | */ |
@@ -7118,7 +7118,7 @@ discard block |
||
| 7118 | 7118 | * |
| 7119 | 7119 | * Load the information about an objects MySQL table |
| 7120 | 7120 | * |
| 7121 | - * @param $object_type |
|
| 7121 | + * @param string $object_type |
|
| 7122 | 7122 | * @param string $object The object to look for |
| 7123 | 7123 | * @param null $name (optional) Name of the pod to load |
| 7124 | 7124 | * @param array $pod (optional) Array with pod information |
@@ -7759,7 +7759,7 @@ discard block |
||
| 7759 | 7759 | * @param array|string $data (optional) An associative array containing a package, or the json encoded package |
| 7760 | 7760 | * @param bool $output (optional) |
| 7761 | 7761 | * |
| 7762 | - * @return array|bool |
|
| 7762 | + * @return boolean |
|
| 7763 | 7763 | * |
| 7764 | 7764 | * @since 1.9.0 |
| 7765 | 7765 | * @deprecated 2.0 |
@@ -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 |
@@ -493,6 +493,9 @@ discard block |
||
| 493 | 493 | } |
| 494 | 494 | } |
| 495 | 495 | |
| 496 | + /** |
|
| 497 | + * @param string $settings |
|
| 498 | + */ |
|
| 496 | 499 | public function admin ( $options, $settings, $component ) { |
| 497 | 500 | if ( !isset( $this->components[ $component ] ) ) |
| 498 | 501 | wp_die( 'Invalid Component' ); |
@@ -507,7 +510,7 @@ discard block |
||
| 507 | 510 | * |
| 508 | 511 | * @param string $component The component name to toggle |
| 509 | 512 | * |
| 510 | - * @return bool |
|
| 513 | + * @return boolean|null |
|
| 511 | 514 | * |
| 512 | 515 | * @since 2.0 |
| 513 | 516 | */ |
@@ -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() |
@@ -144,7 +144,7 @@ |
||
| 144 | 144 | * |
| 145 | 145 | * @param array $options |
| 146 | 146 | * |
| 147 | - * @return array |
|
| 147 | + * @return string |
|
| 148 | 148 | * @since 2.0 |
| 149 | 149 | */ |
| 150 | 150 | public function prepare ( $options = null ) { |
@@ -414,6 +414,8 @@ discard block |
||
| 414 | 414 | * Merge attributes and handle classes |
| 415 | 415 | * |
| 416 | 416 | * @since 2.0 |
| 417 | + * @param string $name |
|
| 418 | + * @param string $type |
|
| 417 | 419 | */ |
| 418 | 420 | public static function merge_attributes( $attributes, $name = null, $type = null, $options = null, $classes = '' ) { |
| 419 | 421 | $options = (array) $options; |
@@ -832,7 +834,6 @@ discard block |
||
| 832 | 834 | * @param mixed $value |
| 833 | 835 | * @param string $name |
| 834 | 836 | * @param array $options |
| 835 | - * @param array $fields |
|
| 836 | 837 | * @param array $pod |
| 837 | 838 | * @param int $id |
| 838 | 839 | * @param array $traverse |
@@ -874,7 +875,6 @@ discard block |
||
| 874 | 875 | * @param mixed $value |
| 875 | 876 | * @param string $name |
| 876 | 877 | * @param array $options |
| 877 | - * @param array $fields |
|
| 878 | 878 | * @param array $pod |
| 879 | 879 | * @param int $id |
| 880 | 880 | * @param array $traverse |
@@ -1225,9 +1225,6 @@ discard block |
||
| 1225 | 1225 | /** |
| 1226 | 1226 | * Run a method from a Field Type's class |
| 1227 | 1227 | * |
| 1228 | - * @param string $field_type Field Type indentifier |
|
| 1229 | - * @param string $method Method name |
|
| 1230 | - * @param mixed $arg More arguments |
|
| 1231 | 1228 | * |
| 1232 | 1229 | * @return mixed |
| 1233 | 1230 | * @access public |