@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | * |
| 157 | 157 | * @param array $options |
| 158 | 158 | * |
| 159 | - * @return array |
|
| 159 | + * @return string |
|
| 160 | 160 | * @since 2.0 |
| 161 | 161 | */ |
| 162 | 162 | public function schema ( $options = null ) { |
@@ -168,10 +168,9 @@ discard block |
||
| 168 | 168 | /** |
| 169 | 169 | * Change the way the value of the field is displayed with Pods::get |
| 170 | 170 | * |
| 171 | - * @param mixed $value |
|
| 171 | + * @param string $value |
|
| 172 | 172 | * @param string $name |
| 173 | 173 | * @param array $options |
| 174 | - * @param array $fields |
|
| 175 | 174 | * @param array $pod |
| 176 | 175 | * @param int $id |
| 177 | 176 | * |
@@ -935,7 +935,7 @@ |
||
| 935 | 935 | * @param $args |
| 936 | 936 | * @param string $type |
| 937 | 937 | * |
| 938 | - * @return array |
|
| 938 | + * @return string |
|
| 939 | 939 | */ |
| 940 | 940 | public static function object_label_fix( $args, $type = 'post_type' ) { |
| 941 | 941 | |
@@ -1559,7 +1559,7 @@ discard block |
||
| 1559 | 1559 | * |
| 1560 | 1560 | * @param array $params An associative array of parameters |
| 1561 | 1561 | * @param bool $sanitized (optional) Decides whether the params have been sanitized before being passed, will sanitize them if false. |
| 1562 | - * @param bool|int $db (optional) Whether to save into the DB or just return Pod array. |
|
| 1562 | + * @param boolean $db (optional) Whether to save into the DB or just return Pod array. |
|
| 1563 | 1563 | * |
| 1564 | 1564 | * @return int Pod ID |
| 1565 | 1565 | * @since 1.7.9 |
@@ -3903,7 +3903,7 @@ discard block |
||
| 3903 | 3903 | * Save relationships |
| 3904 | 3904 | * |
| 3905 | 3905 | * @param int $id ID of item |
| 3906 | - * @param int|array $related_id ID or IDs to save |
|
| 3906 | + * @param int|array $related_ids ID or IDs to save |
|
| 3907 | 3907 | * @param array $pod Pod data |
| 3908 | 3908 | * @param array $field Field data |
| 3909 | 3909 | */ |
@@ -5061,7 +5061,6 @@ discard block |
||
| 5061 | 5061 | * Delete an object from tableless fields |
| 5062 | 5062 | * |
| 5063 | 5063 | * @param int $id |
| 5064 | - * @param string $type |
|
| 5065 | 5064 | * @param string $name |
| 5066 | 5065 | * |
| 5067 | 5066 | * @return bool |
@@ -5284,6 +5283,7 @@ discard block |
||
| 5284 | 5283 | * $params['name'] string Pod name |
| 5285 | 5284 | * |
| 5286 | 5285 | * @param array $params An associative array of parameters |
| 5286 | + * @param string $type |
|
| 5287 | 5287 | * |
| 5288 | 5288 | * @return bool True if exists |
| 5289 | 5289 | * |
@@ -6792,7 +6792,7 @@ discard block |
||
| 6792 | 6792 | * @param string $type Field type to look for |
| 6793 | 6793 | * @param array $options (optional) Options of the field to pass to the schema function. |
| 6794 | 6794 | * |
| 6795 | - * @return array|bool|mixed|null |
|
| 6795 | + * @return string |
|
| 6796 | 6796 | * |
| 6797 | 6797 | * @since 2.0 |
| 6798 | 6798 | */ |
@@ -7228,7 +7228,7 @@ discard block |
||
| 7228 | 7228 | * |
| 7229 | 7229 | * Load the information about an objects MySQL table |
| 7230 | 7230 | * |
| 7231 | - * @param $object_type |
|
| 7231 | + * @param string $object_type |
|
| 7232 | 7232 | * @param string $object The object to look for |
| 7233 | 7233 | * @param null $name (optional) Name of the pod to load |
| 7234 | 7234 | * @param array $pod (optional) Array with pod information |
@@ -427,7 +427,7 @@ discard block |
||
| 427 | 427 | * @param mixed $options Object, Array, or String containing Pod or Options to be used |
| 428 | 428 | * @param bool $deprecated Set to true to support old options array from Pods UI plugin |
| 429 | 429 | * |
| 430 | - * @return \PodsUI |
|
| 430 | + * @return false|null |
|
| 431 | 431 | * |
| 432 | 432 | * @license http://www.gnu.org/licenses/gpl-2.0.html |
| 433 | 433 | * @since 2.0 |
@@ -1295,7 +1295,7 @@ discard block |
||
| 1295 | 1295 | } |
| 1296 | 1296 | |
| 1297 | 1297 | /** |
| 1298 | - * @return mixed |
|
| 1298 | + * @return null|boolean |
|
| 1299 | 1299 | */ |
| 1300 | 1300 | public function go () { |
| 1301 | 1301 | $this->do_hook( 'go' ); |
@@ -1495,7 +1495,7 @@ discard block |
||
| 1495 | 1495 | * @param bool $create |
| 1496 | 1496 | * @param bool $duplicate |
| 1497 | 1497 | * |
| 1498 | - * @return bool|mixed |
|
| 1498 | + * @return null|boolean |
|
| 1499 | 1499 | */ |
| 1500 | 1500 | public function form ( $create = false, $duplicate = false ) { |
| 1501 | 1501 | if ( in_array( 'duplicate', $this->actions_disabled ) ) |
@@ -1636,7 +1636,7 @@ discard block |
||
| 1636 | 1636 | } |
| 1637 | 1637 | |
| 1638 | 1638 | /** |
| 1639 | - * @return bool|mixed |
|
| 1639 | + * @return null|boolean |
|
| 1640 | 1640 | * @since 2.3.10 |
| 1641 | 1641 | */ |
| 1642 | 1642 | public function view () { |
@@ -1887,9 +1887,9 @@ discard block |
||
| 1887 | 1887 | } |
| 1888 | 1888 | |
| 1889 | 1889 | /** |
| 1890 | - * @param null $id |
|
| 1890 | + * @param integer $id |
|
| 1891 | 1891 | * |
| 1892 | - * @return bool|mixed |
|
| 1892 | + * @return null|boolean |
|
| 1893 | 1893 | */ |
| 1894 | 1894 | public function delete ( $id = null ) { |
| 1895 | 1895 | $this->do_hook( 'pre_delete', $id ); |
@@ -2291,7 +2291,6 @@ discard block |
||
| 2291 | 2291 | } |
| 2292 | 2292 | |
| 2293 | 2293 | /** |
| 2294 | - * @param bool $full Whether to get ALL data or use pagination |
|
| 2295 | 2294 | * |
| 2296 | 2295 | * @return bool |
| 2297 | 2296 | */ |
@@ -2410,6 +2409,7 @@ discard block |
||
| 2410 | 2409 | } |
| 2411 | 2410 | |
| 2412 | 2411 | /** |
| 2412 | + * @param string $method |
|
| 2413 | 2413 | * @return array |
| 2414 | 2414 | */ |
| 2415 | 2415 | public function get_row ( &$counter = 0, $method = null ) { |
@@ -3300,7 +3300,7 @@ discard block |
||
| 3300 | 3300 | /** |
| 3301 | 3301 | * @param bool $reorder |
| 3302 | 3302 | * |
| 3303 | - * @return bool|mixed |
|
| 3303 | + * @return null|boolean |
|
| 3304 | 3304 | */ |
| 3305 | 3305 | public function table ( $reorder = false ) { |
| 3306 | 3306 | if ( false !== $this->callback( 'table', $reorder ) ) { |
@@ -4143,7 +4143,7 @@ discard block |
||
| 4143 | 4143 | } |
| 4144 | 4144 | |
| 4145 | 4145 | /** |
| 4146 | - * @param bool|array $exclude |
|
| 4146 | + * @param string[] $exclude |
|
| 4147 | 4147 | * @param bool|array $array |
| 4148 | 4148 | */ |
| 4149 | 4149 | public function hidden_vars ( $exclude = false, $array = false ) { |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | * |
| 135 | 135 | * @param array $options |
| 136 | 136 | * |
| 137 | - * @return array |
|
| 137 | + * @return string |
|
| 138 | 138 | * @since 2.0 |
| 139 | 139 | */ |
| 140 | 140 | public function schema ( $options = null ) { |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | * |
| 164 | 164 | * @param array $options |
| 165 | 165 | * |
| 166 | - * @return array |
|
| 166 | + * @return string |
|
| 167 | 167 | * @since 2.0 |
| 168 | 168 | */ |
| 169 | 169 | public function prepare ( $options = null ) { |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | * @param array $pod |
| 202 | 202 | * @param int $id |
| 203 | 203 | * |
| 204 | - * @return mixed|null|string |
|
| 204 | + * @return string |
|
| 205 | 205 | * @since 2.0 |
| 206 | 206 | */ |
| 207 | 207 | public function display ( $value = null, $name = null, $options = null, $pod = null, $id = null ) { |
@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | * @param int $id |
| 310 | 310 | * @param null $params |
| 311 | 311 | * |
| 312 | - * @return bool|mixed |
|
| 312 | + * @return string|boolean |
|
| 313 | 313 | * @since 2.0 |
| 314 | 314 | */ |
| 315 | 315 | public function validate ( $value, $name = null, $options = null, $fields = null, $pod = null, $id = null, $params = null ) { |
@@ -368,7 +368,7 @@ discard block |
||
| 368 | 368 | * @param array $pod |
| 369 | 369 | * @param object $params |
| 370 | 370 | * |
| 371 | - * @return mixed|string |
|
| 371 | + * @return string |
|
| 372 | 372 | * @since 2.0 |
| 373 | 373 | */ |
| 374 | 374 | public function pre_save ( $value, $id = null, $name = null, $options = null, $fields = null, $pod = null, $params = null ) { |
@@ -434,7 +434,7 @@ discard block |
||
| 434 | 434 | * @param array $fields |
| 435 | 435 | * @param array $pod |
| 436 | 436 | * |
| 437 | - * @return mixed|null|string |
|
| 437 | + * @return string |
|
| 438 | 438 | * @since 2.0 |
| 439 | 439 | */ |
| 440 | 440 | public function ui ( $id, $value, $name = null, $options = null, $fields = null, $pod = null ) { |
@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | * @param array $pod |
| 268 | 268 | * @param int $id |
| 269 | 269 | * |
| 270 | - * @return mixed|null|string |
|
| 270 | + * @return string |
|
| 271 | 271 | * @since 2.0 |
| 272 | 272 | */ |
| 273 | 273 | public function display( $value = null, $name = null, $options = null, $pod = null, $id = null ) { |
@@ -427,7 +427,7 @@ discard block |
||
| 427 | 427 | * @param int $id |
| 428 | 428 | * @param null $params |
| 429 | 429 | * |
| 430 | - * @return bool|mixed |
|
| 430 | + * @return string|boolean |
|
| 431 | 431 | * @since 2.0 |
| 432 | 432 | */ |
| 433 | 433 | public function validate( $value, $name = null, $options = null, $fields = null, $pod = null, $id = null, $params = null ) { |
@@ -509,7 +509,7 @@ discard block |
||
| 509 | 509 | * @param array $pod |
| 510 | 510 | * @param object $params |
| 511 | 511 | * |
| 512 | - * @return mixed|string |
|
| 512 | + * @return string |
|
| 513 | 513 | * @since 2.0 |
| 514 | 514 | */ |
| 515 | 515 | public function pre_save( $value, $id = null, $name = null, $options = null, $fields = null, $pod = null, $params = null ) { |
@@ -604,7 +604,7 @@ discard block |
||
| 604 | 604 | * @param array $fields |
| 605 | 605 | * @param array $pod |
| 606 | 606 | * |
| 607 | - * @return mixed|null|string |
|
| 607 | + * @return string |
|
| 608 | 608 | * @since 2.0 |
| 609 | 609 | */ |
| 610 | 610 | public function ui( $id, $value, $name = null, $options = null, $fields = null, $pod = null ) { |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | * |
| 117 | 117 | * @param array $options |
| 118 | 118 | * |
| 119 | - * @return array |
|
| 119 | + * @return string |
|
| 120 | 120 | * @since 2.0 |
| 121 | 121 | */ |
| 122 | 122 | public function schema ( $options = null ) { |
@@ -283,8 +283,8 @@ discard block |
||
| 283 | 283 | } |
| 284 | 284 | |
| 285 | 285 | /** |
| 286 | - * @param $format |
|
| 287 | - * @param $date |
|
| 286 | + * @param string $format |
|
| 287 | + * @param string $date |
|
| 288 | 288 | * |
| 289 | 289 | * @return DateTime |
| 290 | 290 | */ |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | * Convert a date from one format to another |
| 315 | 315 | * |
| 316 | 316 | * @param $value |
| 317 | - * @param $new_format |
|
| 317 | + * @param string $new_format |
|
| 318 | 318 | * @param string $original_format |
| 319 | 319 | * |
| 320 | 320 | * @return string |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | * |
| 65 | 65 | * @param array $options |
| 66 | 66 | * |
| 67 | - * @return array |
|
| 67 | + * @return string |
|
| 68 | 68 | * @since 2.0 |
| 69 | 69 | */ |
| 70 | 70 | public function schema ( $options = null ) { |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | * |
| 162 | 162 | * @param array $options |
| 163 | 163 | * |
| 164 | - * @return array |
|
| 164 | + * @return string |
|
| 165 | 165 | * @since 2.0 |
| 166 | 166 | */ |
| 167 | 167 | public function schema ( $options = null ) { |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | * @param array $pod |
| 262 | 262 | * @param object $params |
| 263 | 263 | * |
| 264 | - * @return mixed|string |
|
| 264 | + * @return string |
|
| 265 | 265 | * @since 2.0 |
| 266 | 266 | */ |
| 267 | 267 | public function pre_save ( $value, $id = null, $name = null, $options = null, $fields = null, $pod = null, $params = null ) { |