@@ -177,10 +177,10 @@ |
||
| 177 | 177 | * </pre> |
| 178 | 178 | * |
| 179 | 179 | * @param [type] $field_options [description] |
| 180 | - * @param [type] $template_id [description] |
|
| 181 | - * @param [type] $field_id [description] |
|
| 182 | - * @param [type] $context [description] |
|
| 183 | - * @param [type] $input_type [description] |
|
| 180 | + * @param string $template_id [description] |
|
| 181 | + * @param string $field_id [description] |
|
| 182 | + * @param string $context [description] |
|
| 183 | + * @param string $input_type [description] |
|
| 184 | 184 | * @return [type] [description] |
| 185 | 185 | */ |
| 186 | 186 | function field_options( $field_options, $template_id, $field_id, $context, $input_type ) { |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | * |
| 26 | 26 | * @param GF_Field_List $field Gravity Forms field |
| 27 | 27 | * @param string|array $field_value Serialized or unserialized array value for the field |
| 28 | - * @param int|string $column_id The numeric key of the column (0-index) or the label of the column |
|
| 28 | + * @param integer $column_id The numeric key of the column (0-index) or the label of the column |
|
| 29 | 29 | * @param string $format If set to 'raw', return an array of values for the column. Otherwise, allow Gravity Forms to render using `html` or `text` |
| 30 | 30 | * |
| 31 | 31 | * @return array|string|null Returns null if the $field_value passed wasn't an array or serialized array |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | * |
| 29 | 29 | * We could do this in a cleaner fashion, but this prevents a lot of code duplication, checking for URL structure, etc. |
| 30 | 30 | * |
| 31 | - * @param int|WP_Post $id Optional. Post ID or post object. Default current post. |
|
| 31 | + * @param integer $id Optional. Post ID or post object. Default current post. |
|
| 32 | 32 | * |
| 33 | 33 | * @return array URL args, if exists. Empty array if not. |
| 34 | 34 | */ |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | * @since 1.15 Added $object param |
| 102 | 102 | * |
| 103 | 103 | * @param string $file_path Full path to a file |
| 104 | - * @param mixed $object Pass pseudo-global to the included file |
|
| 104 | + * @param GravityView_Edit_Entry_Render $object Pass pseudo-global to the included file |
|
| 105 | 105 | * @return string Included file contents |
| 106 | 106 | */ |
| 107 | 107 | function gravityview_ob_include( $file_path, $object = NULL ) { |
@@ -276,7 +276,6 @@ discard block |
||
| 276 | 276 | * Do a _very_ basic match for second-level TLD domains, like `.co.uk` |
| 277 | 277 | * |
| 278 | 278 | * Ideally, we'd use https://github.com/jeremykendall/php-domain-parser to check for this, but it's too much work for such a basic functionality. Maybe if it's needed more in the future. So instead, we use [Basic matching regex](http://stackoverflow.com/a/12372310). |
| 279 | - * @param string $domain Domain to check if it's a TLD or subdomain |
|
| 280 | 279 | * @return string Extracted domain if it has a subdomain |
| 281 | 280 | */ |
| 282 | 281 | function _gravityview_strip_subdomain( $string_maybe_has_subdomain ) { |
@@ -296,7 +295,7 @@ discard block |
||
| 296 | 295 | * Checks whether `false`, `null`, empty string, empty array, object with no vars defined |
| 297 | 296 | * |
| 298 | 297 | * @since 1.15.1 |
| 299 | - * @param mixed $value Check whether this is empty |
|
| 298 | + * @param string $value Check whether this is empty |
|
| 300 | 299 | * @param boolean $zero_is_empty Should the number zero be treated as an empty value? |
| 301 | 300 | * @param boolean $allow_string_booleans Whether to check if 'yes', 'true' => `true` and 'no', 'false' => `false` |
| 302 | 301 | * @return boolean True: empty; false: not empty |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | * @uses api_request() |
| 69 | 69 | * |
| 70 | 70 | * @param array $_transient_data Update array build by WordPress. |
| 71 | - * @return array Modified update array with custom plugin data. |
|
| 71 | + * @return stdClass Modified update array with custom plugin data. |
|
| 72 | 72 | */ |
| 73 | 73 | function check_update( $_transient_data ) { |
| 74 | 74 | |
@@ -10,6 +10,10 @@ discard block |
||
| 10 | 10 | * WordPress Importer class for managing parsing of WXR files. |
| 11 | 11 | */ |
| 12 | 12 | class WXR_Parser { |
| 13 | + |
|
| 14 | + /** |
|
| 15 | + * @param string $file |
|
| 16 | + */ |
|
| 13 | 17 | function parse( $file ) { |
| 14 | 18 | // Attempt to use proper XML parsers first |
| 15 | 19 | if ( extension_loaded( 'simplexml' ) ) { |
@@ -479,6 +483,9 @@ discard block |
||
| 479 | 483 | ); |
| 480 | 484 | } |
| 481 | 485 | |
| 486 | + /** |
|
| 487 | + * @param string $tag |
|
| 488 | + */ |
|
| 482 | 489 | function get_tag( $string, $tag ) { |
| 483 | 490 | preg_match( "|<$tag.*?>(.*?)</$tag>|is", $string, $return ); |
| 484 | 491 | if ( isset( $return[1] ) ) { |
@@ -500,6 +507,9 @@ discard block |
||
| 500 | 507 | return $return; |
| 501 | 508 | } |
| 502 | 509 | |
| 510 | + /** |
|
| 511 | + * @param string $c |
|
| 512 | + */ |
|
| 503 | 513 | function process_category( $c ) { |
| 504 | 514 | return array( |
| 505 | 515 | 'term_id' => $this->get_tag( $c, 'wp:term_id' ), |
@@ -510,6 +520,9 @@ discard block |
||
| 510 | 520 | ); |
| 511 | 521 | } |
| 512 | 522 | |
| 523 | + /** |
|
| 524 | + * @param string $t |
|
| 525 | + */ |
|
| 513 | 526 | function process_tag( $t ) { |
| 514 | 527 | return array( |
| 515 | 528 | 'term_id' => $this->get_tag( $t, 'wp:term_id' ), |
@@ -519,6 +532,9 @@ discard block |
||
| 519 | 532 | ); |
| 520 | 533 | } |
| 521 | 534 | |
| 535 | + /** |
|
| 536 | + * @param string $t |
|
| 537 | + */ |
|
| 522 | 538 | function process_term( $t ) { |
| 523 | 539 | return array( |
| 524 | 540 | 'term_id' => $this->get_tag( $t, 'wp:term_id' ), |
@@ -530,6 +546,9 @@ discard block |
||
| 530 | 546 | ); |
| 531 | 547 | } |
| 532 | 548 | |
| 549 | + /** |
|
| 550 | + * @param string $a |
|
| 551 | + */ |
|
| 533 | 552 | function process_author( $a ) { |
| 534 | 553 | return array( |
| 535 | 554 | 'author_id' => $this->get_tag( $a, 'wp:author_id' ), |
@@ -541,6 +560,9 @@ discard block |
||
| 541 | 560 | ); |
| 542 | 561 | } |
| 543 | 562 | |
| 563 | + /** |
|
| 564 | + * @param string $post |
|
| 565 | + */ |
|
| 544 | 566 | function process_post( $post ) { |
| 545 | 567 | $post_id = $this->get_tag( $post, 'wp:post_id' ); |
| 546 | 568 | $post_title = $this->get_tag( $post, 'title' ); |
@@ -169,7 +169,6 @@ |
||
| 169 | 169 | * |
| 170 | 170 | * @since 1.15.2 |
| 171 | 171 | * |
| 172 | - * @param array $handles Array of meta keys to check for existence of shortcodes |
|
| 173 | 172 | * @param int $post_id The ID being checked by GravityView |
| 174 | 173 | * |
| 175 | 174 | * @return array Meta key array, merged with existing meta keys |
@@ -51,6 +51,9 @@ |
||
| 51 | 51 | // hold widget View options |
| 52 | 52 | private $widget_options; |
| 53 | 53 | |
| 54 | + /** |
|
| 55 | + * @param string $widget_id |
|
| 56 | + */ |
|
| 54 | 57 | function __construct( $widget_label , $widget_id , $defaults = array(), $settings = array() ) { |
| 55 | 58 | |
| 56 | 59 | |
@@ -993,7 +993,7 @@ |
||
| 993 | 993 | /** |
| 994 | 994 | * Modify the array passed to wp_localize_script() |
| 995 | 995 | * |
| 996 | - * @param array $js_localization The data padded to the Javascript file |
|
| 996 | + * @param array $localizations The data padded to the Javascript file |
|
| 997 | 997 | * @param array $view_data View data array with View settings |
| 998 | 998 | * |
| 999 | 999 | * @return array |
@@ -176,6 +176,7 @@ |
||
| 176 | 176 | * Get the entries that will be shown in the current widget |
| 177 | 177 | * |
| 178 | 178 | * @param array $instance Settings for the current widget |
| 179 | + * @param string $form_id |
|
| 179 | 180 | * |
| 180 | 181 | * @return array $entries Multidimensional array of Gravity Forms entries |
| 181 | 182 | */ |