@@ -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 |
@@ -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 ) { |
@@ -289,6 +289,8 @@ discard block |
||
289 | 289 | /** |
290 | 290 | * create and register an instance ID |
291 | 291 | * |
292 | + * @param string $id |
|
293 | + * @param string $process |
|
292 | 294 | */ |
293 | 295 | public function element_instance_id( $id, $process ) { |
294 | 296 | |
@@ -456,6 +458,11 @@ discard block |
||
456 | 458 | * Get the current URL |
457 | 459 | * |
458 | 460 | */ |
461 | + |
|
462 | + /** |
|
463 | + * @param string $src |
|
464 | + * @param string $path |
|
465 | + */ |
|
459 | 466 | static function get_url( $src = null, $path = null ) { |
460 | 467 | |
461 | 468 | if ( !empty( $path ) ) { |
@@ -469,6 +476,10 @@ discard block |
||
469 | 476 | * Get the current URL |
470 | 477 | * |
471 | 478 | */ |
479 | + |
|
480 | + /** |
|
481 | + * @param string $src |
|
482 | + */ |
|
472 | 483 | static function get_path( $src = null ) { |
473 | 484 | |
474 | 485 | return plugin_dir_path( $src ); |
@@ -224,7 +224,7 @@ |
||
224 | 224 | * |
225 | 225 | * @param bool $load_in_admin Optional. Whether to load in admin. Default is false. |
226 | 226 | * |
227 | - * @return Pods_PFAT_Frontend |
|
227 | + * @return Pods_Templates_Auto_Template_Front_End|null |
|
228 | 228 | * |
229 | 229 | * @since 2.5.5 |
230 | 230 | */ |
@@ -219,7 +219,7 @@ |
||
219 | 219 | * @param array attributes from template |
220 | 220 | * @param string template to be processed |
221 | 221 | * |
222 | - * @return null |
|
222 | + * @return string |
|
223 | 223 | * @since 2.4 |
224 | 224 | */ |
225 | 225 | function frontier_do_subtemplate( $atts, $content ) { |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | /** |
20 | 20 | * Constructor - Pods Deprecated functionality (pre 2.0) |
21 | 21 | * |
22 | - * @param object $obj The Pods object |
|
22 | + * @param Pods $obj The Pods object |
|
23 | 23 | * @license http://www.gnu.org/licenses/gpl-2.0.html |
24 | 24 | * @since 2.0 |
25 | 25 | */ |
@@ -603,7 +603,7 @@ discard block |
||
603 | 603 | /** |
604 | 604 | * Run a helper within a Pod Page or WP Template |
605 | 605 | * |
606 | - * @param string $helper The helper name |
|
606 | + * @param string $helper_name The helper name |
|
607 | 607 | * |
608 | 608 | * @return mixed Anything returned by the helper |
609 | 609 | * @since 1.2.0 |