@@ -393,7 +393,7 @@ |
||
| 393 | 393 | * @internal |
| 394 | 394 | * @since 2.0 |
| 395 | 395 | * |
| 396 | - * @return \GV\Widget|null The widget implementation from configuration or none. |
|
| 396 | + * @return Widget The widget implementation from configuration or none. |
|
| 397 | 397 | */ |
| 398 | 398 | public static function from_configuration( $configuration ) { |
| 399 | 399 | $registered_widgets = self::registered(); |
@@ -222,7 +222,6 @@ discard block |
||
| 222 | 222 | * |
| 223 | 223 | * @since 1.5.1 |
| 224 | 224 | * @param array $visibility_caps Array of capabilities to display in field dropdown. |
| 225 | - * @param string $field_type Type of field options to render (`field` or `widget`) |
|
| 226 | 225 | * @param string $template_id Table slug |
| 227 | 226 | * @param float $field_id GF Field ID - Example: `3`, `5.2`, `entry_link`, `created_by` |
| 228 | 227 | * @param string $context What context are we in? Example: `single` or `directory` |
@@ -651,7 +650,7 @@ discard block |
||
| 651 | 650 | * |
| 652 | 651 | * @param array $entry Gravity Forms entry array |
| 653 | 652 | * @param array $field Field settings (optional) |
| 654 | - * @param int|\GV\View $view Pass a View ID to check caps against. If not set, check against current View (@deprecated no longer optional) |
|
| 653 | + * @param integer $view Pass a View ID to check caps against. If not set, check against current View (@deprecated no longer optional) |
|
| 655 | 654 | * @return bool |
| 656 | 655 | */ |
| 657 | 656 | public static function check_user_cap_delete_entry( $entry, $field = array(), $view = 0 ) { |
@@ -262,6 +262,8 @@ |
||
| 262 | 262 | /** |
| 263 | 263 | * Process the attributes passed to the shortcode. Make sure they're valid |
| 264 | 264 | * |
| 265 | + * @param string $content |
|
| 266 | + * @param string $tag |
|
| 265 | 267 | * @return array Array of attributes parsed for the shortcode |
| 266 | 268 | */ |
| 267 | 269 | private function parse_atts( $atts, $content, $tag ) { |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | * |
| 58 | 58 | * @see GVCommon::get_form_fields() |
| 59 | 59 | * @access public |
| 60 | - * @param string|array $form_id (default: '') or $form object |
|
| 60 | + * @param string|array $form (default: '') or $form object |
|
| 61 | 61 | * @return array |
| 62 | 62 | */ |
| 63 | 63 | function gravityview_get_form_fields( $form = '', $add_default_properties = false, $include_parent_field = true ) { |
@@ -219,7 +219,6 @@ discard block |
||
| 219 | 219 | * |
| 220 | 220 | * @see GravityView_Template::template_id |
| 221 | 221 | * |
| 222 | - * @param int $view_id The ID of the View to get the layout of |
|
| 223 | 222 | * |
| 224 | 223 | * @return string GravityView_Template::template_id value. Empty string if not. |
| 225 | 224 | */ |
@@ -357,7 +357,7 @@ discard block |
||
| 357 | 357 | * |
| 358 | 358 | * @param array $file_paths List of template paths ordered |
| 359 | 359 | * |
| 360 | - * @return array File paths with `./` and `./partials/` paths added |
|
| 360 | + * @return string[] File paths with `./` and `./partials/` paths added |
|
| 361 | 361 | */ |
| 362 | 362 | public function add_template_path( $file_paths ) { |
| 363 | 363 | |
@@ -549,7 +549,7 @@ discard block |
||
| 549 | 549 | * @param array $entry |
| 550 | 550 | * @param array $data Note details array |
| 551 | 551 | * |
| 552 | - * @return int|WP_Error |
|
| 552 | + * @return integer |
|
| 553 | 553 | */ |
| 554 | 554 | private function add_note( $entry, $data ) { |
| 555 | 555 | global $current_user, $wpdb; |
@@ -84,6 +84,7 @@ discard block |
||
| 84 | 84 | /** |
| 85 | 85 | * Return the query class for this View. |
| 86 | 86 | * |
| 87 | + * @param View $view |
|
| 87 | 88 | * @return string The class name. |
| 88 | 89 | */ |
| 89 | 90 | public function get_query_class( $view ) { |
@@ -575,10 +576,8 @@ discard block |
||
| 575 | 576 | /** |
| 576 | 577 | * Get a \GV\Field by Form and Field ID for this data source. |
| 577 | 578 | * |
| 578 | - * @param \GV\GF_Form $form The Gravity Form form ID. |
|
| 579 | - * @param int $field_id The Gravity Form field ID for the $form_id. |
|
| 580 | 579 | * |
| 581 | - * @return \GV\Field|null The requested field or null if not found. |
|
| 580 | + * @return null|GF_Field The requested field or null if not found. |
|
| 582 | 581 | */ |
| 583 | 582 | public static function get_field( /** varargs */ ) { |
| 584 | 583 | $args = func_get_args(); |
@@ -55,6 +55,7 @@ |
||
| 55 | 55 | * Magic shortcuts. |
| 56 | 56 | * |
| 57 | 57 | * - `entries` -> `$this->get_entries()` |
| 58 | + * @param string $key |
|
| 58 | 59 | */ |
| 59 | 60 | public function __get( $key ) { |
| 60 | 61 | switch ( $key ): |
@@ -64,6 +64,9 @@ discard block |
||
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | |
| 67 | + /** |
|
| 68 | + * @param string $component |
|
| 69 | + */ |
|
| 67 | 70 | private function load_components( $component ) { |
| 68 | 71 | |
| 69 | 72 | $dir = trailingslashit( self::$file ); |
@@ -183,7 +186,7 @@ discard block |
||
| 183 | 186 | * "You can edit this post from the post page" fields, for example. |
| 184 | 187 | * |
| 185 | 188 | * @param $entry array Gravity Forms entry object |
| 186 | - * @param $view_id int GravityView view id |
|
| 189 | + * @param integer $view_id int GravityView view id |
|
| 187 | 190 | * @param $post_id int GravityView Post ID where View may be embedded {@since 1.9.2} |
| 188 | 191 | * @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/ } |
| 189 | 192 | * @return string |
@@ -286,7 +289,7 @@ discard block |
||
| 286 | 289 | * Needs to be used combined with GravityView_Edit_Entry::user_can_edit_entry for maximum security!! |
| 287 | 290 | * |
| 288 | 291 | * @param array $entry Gravity Forms entry array |
| 289 | - * @param \GV\View|int $view ID of the view you want to check visibility against {@since 1.9.2}. Required since 2.0 |
|
| 292 | + * @param integer $view ID of the view you want to check visibility against {@since 1.9.2}. Required since 2.0 |
|
| 290 | 293 | * @return bool |
| 291 | 294 | */ |
| 292 | 295 | public static function check_user_cap_edit_entry( $entry, $view = 0 ) { |
@@ -143,6 +143,7 @@ |
||
| 143 | 143 | /** |
| 144 | 144 | * @deprecated |
| 145 | 145 | * @see \GV\View_Collection::get() |
| 146 | + * @param integer|null $view_id |
|
| 146 | 147 | */ |
| 147 | 148 | function get_view( $view_id, $atts = NULL ) { |
| 148 | 149 | if ( ! $view = $this->views->get( $view_id ) ) { |