@@ -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` |
@@ -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 |
@@ -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 | |
@@ -158,6 +158,7 @@ |
||
| 158 | 158 | /** |
| 159 | 159 | * important! Override this class if needed |
| 160 | 160 | * outputs the field setting html |
| 161 | + * @param string $override_input |
|
| 161 | 162 | */ |
| 162 | 163 | function render_setting( $override_input = NULL ) { |
| 163 | 164 | |
@@ -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 |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | * |
| 70 | 70 | * @since 1.16 |
| 71 | 71 | * |
| 72 | - * @param int|string $value Number value for the field |
|
| 72 | + * @param string $value Number value for the field |
|
| 73 | 73 | * |
| 74 | 74 | * @return string Based on $value; `1`: "One-Time Payment"; `2`: "Subscription" |
| 75 | 75 | */ |
@@ -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 | */ |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | * @since 1.15 Added $object param |
| 136 | 136 | * |
| 137 | 137 | * @param string $file_path Full path to a file |
| 138 | - * @param mixed $object Pass pseudo-global to the included file |
|
| 138 | + * @param GravityView_Edit_Entry_Render $object Pass pseudo-global to the included file |
|
| 139 | 139 | * @return string Included file contents |
| 140 | 140 | */ |
| 141 | 141 | function gravityview_ob_include( $file_path, $object = NULL ) { |
@@ -310,7 +310,6 @@ discard block |
||
| 310 | 310 | * Do a _very_ basic match for second-level TLD domains, like `.co.uk` |
| 311 | 311 | * |
| 312 | 312 | * 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). |
| 313 | - * @param string $domain Domain to check if it's a TLD or subdomain |
|
| 314 | 313 | * @return string Extracted domain if it has a subdomain |
| 315 | 314 | */ |
| 316 | 315 | function _gravityview_strip_subdomain( $string_maybe_has_subdomain ) { |