@@ -301,6 +301,7 @@ |
||
| 301 | 301 | * Make protected public |
| 302 | 302 | * @inheritDoc |
| 303 | 303 | * @access public |
| 304 | + * @param string $setting_name |
|
| 304 | 305 | */ |
| 305 | 306 | public function get_app_setting( $setting_name ) { |
| 306 | 307 | |
@@ -41,7 +41,6 @@ discard block |
||
| 41 | 41 | * |
| 42 | 42 | * @see GVCommon::get_forms() |
| 43 | 43 | * @access public |
| 44 | - * @param mixed $form_id |
|
| 45 | 44 | * @return array (id, title) |
| 46 | 45 | */ |
| 47 | 46 | function gravityview_get_forms() { |
@@ -53,7 +52,7 @@ discard block |
||
| 53 | 52 | * |
| 54 | 53 | * @see GVCommon::get_form_fields() |
| 55 | 54 | * @access public |
| 56 | - * @param string|array $form_id (default: '') or $form object |
|
| 55 | + * @param string|array $form (default: '') or $form object |
|
| 57 | 56 | * @return array |
| 58 | 57 | */ |
| 59 | 58 | function gravityview_get_form_fields( $form = '', $add_default_properties = false, $include_parent_field = true ) { |
@@ -91,6 +90,7 @@ discard block |
||
| 91 | 90 | * @param int|array $form_ids The ID of the form or an array IDs of the Forms. Zero for all forms. |
| 92 | 91 | * @param mixed $passed_criteria (default: null) |
| 93 | 92 | * @param mixed &$total (default: null) |
| 93 | + * @param integer $total |
|
| 94 | 94 | * @return mixed False: Error fetching entries. Array: Multi-dimensional array of Gravity Forms entry arrays |
| 95 | 95 | */ |
| 96 | 96 | function gravityview_get_entries( $form_ids = null, $passed_criteria = null, &$total = null ) { |
@@ -103,7 +103,6 @@ discard block |
||
| 103 | 103 | * Since 1.4, supports custom entry slugs. The way that GravityView fetches an entry based on the custom slug is by searching `gravityview_unique_id` meta. The `$entry_slug` is fetched by getting the current query var set by `is_single_entry()` |
| 104 | 104 | * |
| 105 | 105 | * @access public |
| 106 | - * @param mixed $entry_id |
|
| 107 | 106 | * @param boolean $force_allow_ids Force the get_entry() method to allow passed entry IDs, even if the `gravityview_custom_entry_slug_allow_id` filter returns false. |
| 108 | 107 | * @param boolean $check_entry_display Check whether the entry is visible for the current View configuration. Default: true {@since 1.14} |
| 109 | 108 | * @return array|boolean |
@@ -177,7 +176,7 @@ discard block |
||
| 177 | 176 | * |
| 178 | 177 | * @param int $view_id ID of the View you want the form of |
| 179 | 178 | * |
| 180 | - * @return int |
|
| 179 | + * @return string |
|
| 181 | 180 | */ |
| 182 | 181 | function gravityview_get_form_id( $view_id ) { |
| 183 | 182 | return GVCommon::get_meta_form_id( $view_id ); |
@@ -188,7 +187,6 @@ discard block |
||
| 188 | 187 | * |
| 189 | 188 | * @see GravityView_Template::template_id |
| 190 | 189 | * |
| 191 | - * @param int $view_id The ID of the View to get the layout of |
|
| 192 | 190 | * |
| 193 | 191 | * @return string GravityView_Template::template_id value. Empty string if not. |
| 194 | 192 | */ |
@@ -170,7 +170,6 @@ |
||
| 170 | 170 | * |
| 171 | 171 | * @since 1.5.1 |
| 172 | 172 | * @param array $visibility_caps Array of capabilities to display in field dropdown. |
| 173 | - * @param string $field_type Type of field options to render (`field` or `widget`) |
|
| 174 | 173 | * @param string $template_id Table slug |
| 175 | 174 | * @param float $field_id GF Field ID - Example: `3`, `5.2`, `entry_link`, `created_by` |
| 176 | 175 | * @param string $context What context are we in? Example: `single` or `directory` |
@@ -69,7 +69,6 @@ |
||
| 69 | 69 | * Change wording for the Edit context to read Entry Creator |
| 70 | 70 | * |
| 71 | 71 | * @param array $visibility_caps Array of capabilities to display in field dropdown. |
| 72 | - * @param string $field_type Type of field options to render (`field` or `widget`) |
|
| 73 | 72 | * @param string $template_id Table slug |
| 74 | 73 | * @param float $field_id GF Field ID - Example: `3`, `5.2`, `entry_link`, `created_by` |
| 75 | 74 | * @param string $context What context are we in? Example: `single` or `directory` |
@@ -1249,7 +1249,7 @@ |
||
| 1249 | 1249 | /** |
| 1250 | 1250 | * Override GF Form field properties with the ones defined on the View |
| 1251 | 1251 | * @param GF_Field $field GF Form field object |
| 1252 | - * @param array $setting GV field options |
|
| 1252 | + * @param array $field_setting GV field options |
|
| 1253 | 1253 | * @since 1.5 |
| 1254 | 1254 | * @return array |
| 1255 | 1255 | */ |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | * @since 1.11 |
| 58 | 58 | * |
| 59 | 59 | * @param array $form Gravity Forms form array |
| 60 | - * @param string $entry_id Gravity Forms entry ID |
|
| 60 | + * @param integer $entry_id Gravity Forms entry ID |
|
| 61 | 61 | * @return void |
| 62 | 62 | */ |
| 63 | 63 | public function update_user( $form = array(), $entry_id = 0 ) { |
@@ -65,6 +65,9 @@ discard block |
||
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | |
| 68 | + /** |
|
| 69 | + * @param string $component |
|
| 70 | + */ |
|
| 68 | 71 | private function load_components( $component ) { |
| 69 | 72 | |
| 70 | 73 | $dir = trailingslashit( self::$file ); |
@@ -141,7 +144,7 @@ discard block |
||
| 141 | 144 | * "You can edit this post from the post page" fields, for example. |
| 142 | 145 | * |
| 143 | 146 | * @param $entry array Gravity Forms entry object |
| 144 | - * @param $view_id int GravityView view id |
|
| 147 | + * @param integer $view_id int GravityView view id |
|
| 145 | 148 | * @param $post_id int GravityView Post ID where View may be embedded {@since 1.9.2} |
| 146 | 149 | * @param string|array $field_values Parameters to pass in to the Edit Entry form to prefill data. Uses the same format as Gravity Forms "Allow field to be populated dynamically" {@since 1.9.2} {@see https://www.gravityhelp.com/documentation/article/allow-field-to-be-populated-dynamically/ } |
| 147 | 150 | * @return string |
@@ -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 | |