@@ -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 |
@@ -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 ) ) |
@@ -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 |
@@ -1294,7 +1294,7 @@ discard block |
||
| 1294 | 1294 | } |
| 1295 | 1295 | |
| 1296 | 1296 | /** |
| 1297 | - * @return mixed |
|
| 1297 | + * @return null|boolean |
|
| 1298 | 1298 | */ |
| 1299 | 1299 | public function go () { |
| 1300 | 1300 | $this->do_hook( 'go' ); |
@@ -1494,7 +1494,7 @@ discard block |
||
| 1494 | 1494 | * @param bool $create |
| 1495 | 1495 | * @param bool $duplicate |
| 1496 | 1496 | * |
| 1497 | - * @return bool|mixed |
|
| 1497 | + * @return null|boolean |
|
| 1498 | 1498 | */ |
| 1499 | 1499 | public function form ( $create = false, $duplicate = false ) { |
| 1500 | 1500 | if ( in_array( 'duplicate', $this->actions_disabled ) ) |
@@ -1635,7 +1635,7 @@ discard block |
||
| 1635 | 1635 | } |
| 1636 | 1636 | |
| 1637 | 1637 | /** |
| 1638 | - * @return bool|mixed |
|
| 1638 | + * @return null|boolean |
|
| 1639 | 1639 | * @since 2.3.10 |
| 1640 | 1640 | */ |
| 1641 | 1641 | public function view () { |
@@ -1886,9 +1886,9 @@ discard block |
||
| 1886 | 1886 | } |
| 1887 | 1887 | |
| 1888 | 1888 | /** |
| 1889 | - * @param null $id |
|
| 1889 | + * @param integer $id |
|
| 1890 | 1890 | * |
| 1891 | - * @return bool|mixed |
|
| 1891 | + * @return null|boolean |
|
| 1892 | 1892 | */ |
| 1893 | 1893 | public function delete ( $id = null ) { |
| 1894 | 1894 | $this->do_hook( 'pre_delete', $id ); |
@@ -1922,7 +1922,6 @@ discard block |
||
| 1922 | 1922 | } |
| 1923 | 1923 | |
| 1924 | 1924 | /** |
| 1925 | - * @param null $id |
|
| 1926 | 1925 | * |
| 1927 | 1926 | * @return bool|mixed |
| 1928 | 1927 | */ |
@@ -2179,7 +2178,6 @@ discard block |
||
| 2179 | 2178 | } |
| 2180 | 2179 | |
| 2181 | 2180 | /** |
| 2182 | - * @param bool $full Whether to get ALL data or use pagination |
|
| 2183 | 2181 | * |
| 2184 | 2182 | * @return bool |
| 2185 | 2183 | */ |
@@ -2298,6 +2296,7 @@ discard block |
||
| 2298 | 2296 | } |
| 2299 | 2297 | |
| 2300 | 2298 | /** |
| 2299 | + * @param string $method |
|
| 2301 | 2300 | * @return array |
| 2302 | 2301 | */ |
| 2303 | 2302 | public function get_row ( &$counter = 0, $method = null ) { |
@@ -3188,7 +3187,7 @@ discard block |
||
| 3188 | 3187 | /** |
| 3189 | 3188 | * @param bool $reorder |
| 3190 | 3189 | * |
| 3191 | - * @return bool|mixed |
|
| 3190 | + * @return null|boolean |
|
| 3192 | 3191 | */ |
| 3193 | 3192 | public function table ( $reorder = false ) { |
| 3194 | 3193 | if ( false !== $this->callback( 'table', $reorder ) ) { |
@@ -3982,7 +3981,7 @@ discard block |
||
| 3982 | 3981 | } |
| 3983 | 3982 | |
| 3984 | 3983 | /** |
| 3985 | - * @param bool|array $exclude |
|
| 3984 | + * @param string[] $exclude |
|
| 3986 | 3985 | * @param bool|array $array |
| 3987 | 3986 | */ |
| 3988 | 3987 | public function hidden_vars ( $exclude = false, $array = false ) { |
@@ -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 |