@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | } |
| 263 | 263 | |
| 264 | 264 | |
| 265 | - if( GFCommon::is_product_field( $field->type ) ){ |
|
| 265 | + if( GFCommon::is_product_field( $field->type ) ) { |
|
| 266 | 266 | $has_product_fields = true; |
| 267 | 267 | } |
| 268 | 268 | |
@@ -322,7 +322,7 @@ discard block |
||
| 322 | 322 | |
| 323 | 323 | $fields = array(); |
| 324 | 324 | |
| 325 | - foreach ( $extra_fields as $key => $field ){ |
|
| 325 | + foreach ( $extra_fields as $key => $field ) { |
|
| 326 | 326 | if ( ! empty( $only_default_column ) && ! empty( $field['is_default_column'] ) ) { |
| 327 | 327 | $fields[ $key ] = array( 'label' => $field['label'], 'type' => 'entry_meta' ); |
| 328 | 328 | } |
@@ -888,7 +888,7 @@ discard block |
||
| 888 | 888 | * @return GF_Field|null Gravity Forms field object, or NULL: Gravity Forms GFFormsModel does not exist or field at $field_id doesn't exist. |
| 889 | 889 | */ |
| 890 | 890 | public static function get_field( $form, $field_id ) { |
| 891 | - if ( class_exists( 'GFFormsModel' ) ){ |
|
| 891 | + if ( class_exists( 'GFFormsModel' ) ) { |
|
| 892 | 892 | return GFFormsModel::get_field( $form, $field_id ); |
| 893 | 893 | } else { |
| 894 | 894 | return null; |
@@ -935,7 +935,7 @@ discard block |
||
| 935 | 935 | $shortcodes = array(); |
| 936 | 936 | |
| 937 | 937 | preg_match_all( '/' . get_shortcode_regex() . '/s', $content, $matches, PREG_SET_ORDER ); |
| 938 | - if ( empty( $matches ) ){ |
|
| 938 | + if ( empty( $matches ) ) { |
|
| 939 | 939 | return false; |
| 940 | 940 | } |
| 941 | 941 | |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | * Return array of fields' id and label, for a given Form ID |
| 210 | 210 | * |
| 211 | 211 | * @access public |
| 212 | - * @param string|array $form_id (default: '') or $form object |
|
| 212 | + * @param string|array $form (default: '') or $form object |
|
| 213 | 213 | * @param bool $add_default_properties |
| 214 | 214 | * @param bool $include_parent_field |
| 215 | 215 | * @return array |
@@ -850,7 +850,7 @@ discard block |
||
| 850 | 850 | * |
| 851 | 851 | * @param array $form Gravity Forms form array |
| 852 | 852 | * @param string $field_id ID of the field. If an input, full input ID (like `1.3`) |
| 853 | - * @param string|array $field_value Raw value of the field. |
|
| 853 | + * @param string $field_value Raw value of the field. |
|
| 854 | 854 | * @return string |
| 855 | 855 | */ |
| 856 | 856 | public static function get_field_label( $form = array(), $field_id = '', $field_value = '' ) { |
@@ -1503,9 +1503,9 @@ discard block |
||
| 1503 | 1503 | * @param string $message Message body (required) |
| 1504 | 1504 | * @param string $from_name Displayed name of the sender |
| 1505 | 1505 | * @param string $message_format If "html", sent text as `text/html`. Otherwise, `text/plain`. Default: "html". |
| 1506 | - * @param string|array $attachments Optional. Files to attach. {@see wp_mail()} for usage. Default: "". |
|
| 1506 | + * @param string $attachments Optional. Files to attach. {@see wp_mail()} for usage. Default: "". |
|
| 1507 | 1507 | * @param array|false $entry Gravity Forms entry array, related to the email. Default: false. |
| 1508 | - * @param array|false $notification Gravity Forms notification that triggered the email. {@see GFCommon::send_notification}. Default:false. |
|
| 1508 | + * @param boolean $notification Gravity Forms notification that triggered the email. {@see GFCommon::send_notification}. Default:false. |
|
| 1509 | 1509 | */ |
| 1510 | 1510 | public static function send_email( $from, $to, $bcc, $reply_to, $subject, $message, $from_name = '', $message_format = 'html', $attachments = '', $entry = false, $notification = false ) { |
| 1511 | 1511 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | * |
| 57 | 57 | * @see GVCommon::get_form_fields() |
| 58 | 58 | * @access public |
| 59 | - * @param string|array $form_id (default: '') or $form object |
|
| 59 | + * @param string|array $form (default: '') or $form object |
|
| 60 | 60 | * @return array |
| 61 | 61 | */ |
| 62 | 62 | function gravityview_get_form_fields( $form = '', $add_default_properties = false, $include_parent_field = true ) { |
@@ -94,6 +94,7 @@ discard block |
||
| 94 | 94 | * @param int|array $form_ids The ID of the form or an array IDs of the Forms. Zero for all forms. |
| 95 | 95 | * @param mixed $passed_criteria (default: null) |
| 96 | 96 | * @param mixed &$total (default: null) |
| 97 | + * @param integer $total |
|
| 97 | 98 | * @return mixed False: Error fetching entries. Array: Multi-dimensional array of Gravity Forms entry arrays |
| 98 | 99 | */ |
| 99 | 100 | function gravityview_get_entries( $form_ids = null, $passed_criteria = null, &$total = null ) { |
@@ -106,7 +107,6 @@ discard block |
||
| 106 | 107 | * 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()` |
| 107 | 108 | * |
| 108 | 109 | * @access public |
| 109 | - * @param mixed $entry_id |
|
| 110 | 110 | * @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. |
| 111 | 111 | * @param boolean $check_entry_display Check whether the entry is visible for the current View configuration. Default: true {@since 1.14} |
| 112 | 112 | * @return array|boolean |
@@ -193,7 +193,6 @@ discard block |
||
| 193 | 193 | * |
| 194 | 194 | * @see GravityView_Template::template_id |
| 195 | 195 | * |
| 196 | - * @param int $view_id The ID of the View to get the layout of |
|
| 197 | 196 | * |
| 198 | 197 | * @return string GravityView_Template::template_id value. Empty string if not. |
| 199 | 198 | */ |