@@ -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 | */ |
@@ -130,7 +129,7 @@ discard block |
||
| 130 | 129 | * |
| 131 | 130 | * @param array $options |
| 132 | 131 | * |
| 133 | - * @return array |
|
| 132 | + * @return boolean |
|
| 134 | 133 | * @since 2.0 |
| 135 | 134 | */ |
| 136 | 135 | public function schema ( $options = null ) { |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | * |
| 79 | 79 | * @param array $options |
| 80 | 80 | * |
| 81 | - * @return array |
|
| 81 | + * @return string |
|
| 82 | 82 | * @since 2.0 |
| 83 | 83 | */ |
| 84 | 84 | public function schema ( $options = null ) { |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | * @param array $pod |
| 232 | 232 | * @param object $params |
| 233 | 233 | * |
| 234 | - * @return int|mixed |
|
| 234 | + * @return integer |
|
| 235 | 235 | * @since 2.0 |
| 236 | 236 | */ |
| 237 | 237 | public function pre_save ( $value, $id = null, $name = null, $options = null, $fields = null, $pod = null, $params = null ) { |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | * |
| 102 | 102 | * @param array $options |
| 103 | 103 | * |
| 104 | - * @return array |
|
| 104 | + * @return string |
|
| 105 | 105 | * @since 2.0 |
| 106 | 106 | */ |
| 107 | 107 | public function schema ( $options = null ) { |
@@ -122,7 +122,6 @@ discard block |
||
| 122 | 122 | * @param mixed $value |
| 123 | 123 | * @param string $name |
| 124 | 124 | * @param array $options |
| 125 | - * @param array $fields |
|
| 126 | 125 | * @param array $pod |
| 127 | 126 | * @param int $id |
| 128 | 127 | * |
@@ -59,7 +59,6 @@ discard block |
||
| 59 | 59 | /** |
| 60 | 60 | * Add options and set defaults to |
| 61 | 61 | * |
| 62 | - * @param array $options |
|
| 63 | 62 | * |
| 64 | 63 | * @since 2.0 |
| 65 | 64 | */ |
@@ -205,7 +204,7 @@ discard block |
||
| 205 | 204 | * |
| 206 | 205 | * @param array $options |
| 207 | 206 | * |
| 208 | - * @return array |
|
| 207 | + * @return boolean |
|
| 209 | 208 | * @since 2.0 |
| 210 | 209 | */ |
| 211 | 210 | public function schema ( $options = null ) { |
@@ -414,7 +413,7 @@ discard block |
||
| 414 | 413 | * @param array $fields |
| 415 | 414 | * @param array $pod |
| 416 | 415 | * |
| 417 | - * @return mixed|void |
|
| 416 | + * @return null|string |
|
| 418 | 417 | * @since 2.0 |
| 419 | 418 | */ |
| 420 | 419 | public function ui ( $id, $value, $name = null, $options = null, $fields = null, $pod = null ) { |
@@ -121,7 +121,7 @@ |
||
| 121 | 121 | * |
| 122 | 122 | * @param array $options |
| 123 | 123 | * |
| 124 | - * @return array |
|
| 124 | + * @return boolean |
|
| 125 | 125 | * @since 2.0 |
| 126 | 126 | */ |
| 127 | 127 | public function schema ( $options = null ) { |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | * |
| 113 | 113 | * @param array $options |
| 114 | 114 | * |
| 115 | - * @return array |
|
| 115 | + * @return string |
|
| 116 | 116 | * @since 2.0 |
| 117 | 117 | */ |
| 118 | 118 | public function schema ( $options = null ) { |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | * @param array $pod |
| 223 | 223 | * @param object $params |
| 224 | 224 | * |
| 225 | - * @return mixed|string |
|
| 225 | + * @return string |
|
| 226 | 226 | * @since 2.0 |
| 227 | 227 | */ |
| 228 | 228 | public function pre_save ( $value, $id = null, $name = null, $options = null, $fields = null, $pod = null, $params = null ) { |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | * |
| 127 | 127 | * @param array $options |
| 128 | 128 | * |
| 129 | - * @return array |
|
| 129 | + * @return string |
|
| 130 | 130 | * @since 2.0 |
| 131 | 131 | */ |
| 132 | 132 | public function schema ( $options = null ) { |
@@ -298,8 +298,8 @@ discard block |
||
| 298 | 298 | } |
| 299 | 299 | |
| 300 | 300 | /** |
| 301 | - * @param $format |
|
| 302 | - * @param $date |
|
| 301 | + * @param string $format |
|
| 302 | + * @param string $date |
|
| 303 | 303 | * |
| 304 | 304 | * @return DateTime |
| 305 | 305 | */ |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | * Convert a date from one format to another |
| 330 | 330 | * |
| 331 | 331 | * @param $date |
| 332 | - * @param $new_format |
|
| 332 | + * @param string $new_format |
|
| 333 | 333 | * @param $original_format |
| 334 | 334 | */ |
| 335 | 335 | public function convert_date ( $value, $new_format, $original_format = 'H:i:s' ) { |
@@ -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 | * |