@@ -232,7 +232,6 @@ discard block |
||
232 | 232 | * @deprecated Use \GV\Field_Template::render() or the more low-level \GV\Field::get_value() |
233 | 233 | * |
234 | 234 | * @param array $entry |
235 | - * @param array $field |
|
236 | 235 | * @return null|string |
237 | 236 | */ |
238 | 237 | public static function field_value( $entry, $field_settings, $format = 'html' ) { |
@@ -851,6 +850,9 @@ discard block |
||
851 | 850 | return $value; |
852 | 851 | } |
853 | 852 | |
853 | +/** |
|
854 | + * @param GV\Template_Context $context |
|
855 | + */ |
|
854 | 856 | function gv_directory_link( $post = NULL, $add_pagination = true, $context = null ) { |
855 | 857 | return GravityView_API::directory_link( $post, $add_pagination, $context ); |
856 | 858 | } |
@@ -1359,6 +1361,7 @@ discard block |
||
1359 | 1361 | * @param array $passed_args Associative array with field data. `field` and `form` are required. |
1360 | 1362 | * @since 2.0 |
1361 | 1363 | * @param \GV\Template_Context The template context. |
1364 | + * @param GV\Template_Context $context |
|
1362 | 1365 | * @return string Field output. If empty value and hide empty is true, return empty. |
1363 | 1366 | */ |
1364 | 1367 | function gravityview_field_output( $passed_args, $context = null ) { |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | /** |
282 | 282 | * Return array of fields' id and label, for a given Form ID |
283 | 283 | * |
284 | - * @param string|array $form_id (default: '') or $form object |
|
284 | + * @param string|array $form (default: '') or $form object |
|
285 | 285 | * @param bool $add_default_properties |
286 | 286 | * @param bool $include_parent_field |
287 | 287 | * @return array |
@@ -1034,7 +1034,7 @@ discard block |
||
1034 | 1034 | * |
1035 | 1035 | * @param array $form Gravity Forms form array |
1036 | 1036 | * @param string $field_id ID of the field. If an input, full input ID (like `1.3`) |
1037 | - * @param string|array $field_value Raw value of the field. |
|
1037 | + * @param string $field_value Raw value of the field. |
|
1038 | 1038 | * @return string |
1039 | 1039 | */ |
1040 | 1040 | public static function get_field_label( $form = array(), $field_id = '', $field_value = '' ) { |
@@ -1555,7 +1555,7 @@ discard block |
||
1555 | 1555 | * |
1556 | 1556 | * Do the same than parse_str without max_input_vars limitation: |
1557 | 1557 | * Parses $string as if it were the query string passed via a URL and sets variables in the current scope. |
1558 | - * @param $string string string to parse (not altered like in the original parse_str(), use the second parameter!) |
|
1558 | + * @param string $string string string to parse (not altered like in the original parse_str(), use the second parameter!) |
|
1559 | 1559 | * @param $result array If the second parameter is present, variables are stored in this variable as array elements |
1560 | 1560 | * @return bool true or false if $string is an empty string |
1561 | 1561 | * @since 1.5.3 |
@@ -1791,9 +1791,9 @@ discard block |
||
1791 | 1791 | * @param string $message Message body (required) |
1792 | 1792 | * @param string $from_name Displayed name of the sender |
1793 | 1793 | * @param string $message_format If "html", sent text as `text/html`. Otherwise, `text/plain`. Default: "html". |
1794 | - * @param string|array $attachments Optional. Files to attach. {@see wp_mail()} for usage. Default: "". |
|
1794 | + * @param string $attachments Optional. Files to attach. {@see wp_mail()} for usage. Default: "". |
|
1795 | 1795 | * @param array|false $entry Gravity Forms entry array, related to the email. Default: false. |
1796 | - * @param array|false $notification Gravity Forms notification that triggered the email. {@see GFCommon::send_notification}. Default:false. |
|
1796 | + * @param boolean $notification Gravity Forms notification that triggered the email. {@see GFCommon::send_notification}. Default:false. |
|
1797 | 1797 | */ |
1798 | 1798 | public static function send_email( $from, $to, $bcc, $reply_to, $subject, $message, $from_name = '', $message_format = 'html', $attachments = '', $entry = false, $notification = false ) { |
1799 | 1799 |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | * |
228 | 228 | * |
229 | 229 | * |
230 | - * @param null $view_id |
|
230 | + * @param string $view_id |
|
231 | 231 | */ |
232 | 232 | public function set_context_view_id( $view_id = null ) { |
233 | 233 | $multiple_views = $this->getGvOutputData() && $this->getGvOutputData()->has_multiple_views(); |
@@ -922,7 +922,7 @@ discard block |
||
922 | 922 | * |
923 | 923 | * |
924 | 924 | * @uses gravityview_get_entries() |
925 | - * @param array $args\n |
|
925 | + * @param array $args |
|
926 | 926 | * - $id - View id |
927 | 927 | * - $page_size - Page |
928 | 928 | * - $sort_field - form field id to sort |
@@ -1051,7 +1051,6 @@ discard block |
||
1051 | 1051 | * @since 1.19.5 |
1052 | 1052 | * |
1053 | 1053 | * @param $args |
1054 | - * @param int $form_id |
|
1055 | 1054 | */ |
1056 | 1055 | public static function get_search_criteria_paging( $args ) { |
1057 | 1056 | |
@@ -1553,7 +1552,7 @@ discard block |
||
1553 | 1552 | /** |
1554 | 1553 | * Checks if field (column) is sortable |
1555 | 1554 | * |
1556 | - * @param string $field Field settings |
|
1555 | + * @param string $field_id Field settings |
|
1557 | 1556 | * @param array $form Gravity Forms form array |
1558 | 1557 | * |
1559 | 1558 | * @since 1.7 |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | * Return array of fields' id and label, for a given Form ID |
59 | 59 | * |
60 | 60 | * @see GVCommon::get_form_fields() |
61 | - * @param string|array $form_id (default: '') or $form object |
|
61 | + * @param string|array $form (default: '') or $form object |
|
62 | 62 | * @return array |
63 | 63 | */ |
64 | 64 | function gravityview_get_form_fields( $form = '', $add_default_properties = false, $include_parent_field = true ) { |
@@ -216,7 +216,6 @@ discard block |
||
216 | 216 | * |
217 | 217 | * @see GravityView_Template::template_id |
218 | 218 | * |
219 | - * @param int $view_id The ID of the View to get the layout of |
|
220 | 219 | * |
221 | 220 | * @return string GravityView_Template::template_id value. Empty string if not. |
222 | 221 | */ |
@@ -67,7 +67,6 @@ |
||
67 | 67 | * @since 2.9.2 Moved here from GravityView_Delete_Entry |
68 | 68 | * |
69 | 69 | * @param array $visibility_caps Array of capabilities to display in field dropdown. |
70 | - * @param string $field_type Type of field options to render (`field` or `widget`) |
|
71 | 70 | * @param string $template_id Table slug |
72 | 71 | * @param float $field_id GF Field ID - Example: `3`, `5.2`, `entry_link`, `created_by` |
73 | 72 | * @param string $context What context are we in? Example: `single` or `directory` |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * |
64 | 64 | * @since 2.9.2 |
65 | 65 | * |
66 | - * @param $component |
|
66 | + * @param string $component |
|
67 | 67 | */ |
68 | 68 | private function load_components( $component ) { |
69 | 69 | |
@@ -423,7 +423,7 @@ discard block |
||
423 | 423 | * @uses GFAPI::delete_entry() |
424 | 424 | * @uses GFAPI::update_entry_property() |
425 | 425 | * |
426 | - * @return WP_Error|string "deleted" or "trashed" if successful, WP_Error if GFAPI::delete_entry() or updating entry failed. |
|
426 | + * @return string "deleted" or "trashed" if successful, WP_Error if GFAPI::delete_entry() or updating entry failed. |
|
427 | 427 | */ |
428 | 428 | private function delete_or_trash_entry( $entry ) { |
429 | 429 | |
@@ -590,7 +590,7 @@ discard block |
||
590 | 590 | * |
591 | 591 | * @since 1.5.1 |
592 | 592 | * @param array $entry Gravity Forms entry array |
593 | - * @return boolean|WP_Error True: can edit form. WP_Error: nope. |
|
593 | + * @return string True: can edit form. WP_Error: nope. |
|
594 | 594 | */ |
595 | 595 | function user_can_delete_entry( $entry = array(), $view_id = null ) { |
596 | 596 | |
@@ -631,7 +631,7 @@ discard block |
||
631 | 631 | * |
632 | 632 | * @param array $entry Gravity Forms entry array |
633 | 633 | * @param array $field Field settings (optional) |
634 | - * @param int|\GV\View $view Pass a View ID to check caps against. If not set, check against current View (@deprecated no longer optional) |
|
634 | + * @param integer $view Pass a View ID to check caps against. If not set, check against current View (@deprecated no longer optional) |
|
635 | 635 | * @return bool |
636 | 636 | */ |
637 | 637 | public static function check_user_cap_delete_entry( $entry, $field = array(), $view = 0 ) { |