@@ -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 ) { |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | * |
| 171 | 171 | * @uses GravityView_frontend::get_search_criteria() Convert the $_POST search request into a properly formatted request. |
| 172 | 172 | * @access public |
| 173 | - * @return void|boolean |
|
| 173 | + * @return null|false |
|
| 174 | 174 | */ |
| 175 | 175 | public function process_bulk_action() { |
| 176 | 176 | if ( ! class_exists( 'RGForms' ) ) { |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | * @param array|boolean $entries If array, array of entry IDs that are to be updated. If true: update all entries. |
| 253 | 253 | * @param int $approved Approved status. If `0`: unapproved, if not empty, `Approved` |
| 254 | 254 | * @param int $form_id The Gravity Forms Form ID |
| 255 | - * @return boolean|void |
|
| 255 | + * @return false|null |
|
| 256 | 256 | */ |
| 257 | 257 | private static function update_bulk( $entries, $approved, $form_id ) { |
| 258 | 258 | |
@@ -470,7 +470,7 @@ discard block |
||
| 470 | 470 | * @access public |
| 471 | 471 | * @static |
| 472 | 472 | * @param mixed $form GF Form or Form ID |
| 473 | - * @return false|null|string Returns the input ID of the approved field. Returns NULL if no approved fields were found. Returns false if $form_id wasn't set. |
|
| 473 | + * @return integer Returns the input ID of the approved field. Returns NULL if no approved fields were found. Returns false if $form_id wasn't set. |
|
| 474 | 474 | */ |
| 475 | 475 | static public function get_approved_column( $form ) { |
| 476 | 476 | |
@@ -135,7 +135,7 @@ |
||
| 135 | 135 | * @param bool $url_encode Whether to URL-encode output |
| 136 | 136 | * @param bool $esc_html Whether to apply `esc_html()` to output |
| 137 | 137 | * |
| 138 | - * @return mixed |
|
| 138 | + * @return string |
|
| 139 | 139 | */ |
| 140 | 140 | public static function replace_gv_merge_tags( $text, $form = array(), $entry = array(), $url_encode = false, $esc_html = false ) { |
| 141 | 141 | |
@@ -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 | |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | /** |
| 78 | 78 | * Alias for get_instance() |
| 79 | 79 | * |
| 80 | - * @param $field_name |
|
| 80 | + * @param string $field_name |
|
| 81 | 81 | * |
| 82 | 82 | * @return GravityView_Field|false |
| 83 | 83 | */ |
@@ -88,7 +88,6 @@ discard block |
||
| 88 | 88 | /** |
| 89 | 89 | * Alias for get_instance() |
| 90 | 90 | * |
| 91 | - * @param string|GF_Field $field_name Gravity Forms field class or the class name type |
|
| 92 | 91 | * |
| 93 | 92 | * @return GravityView_Field |
| 94 | 93 | */ |
@@ -214,7 +214,6 @@ discard block |
||
| 214 | 214 | * |
| 215 | 215 | * @access public |
| 216 | 216 | * @param array $entry |
| 217 | - * @param array $field |
|
| 218 | 217 | * @return null|string |
| 219 | 218 | */ |
| 220 | 219 | public static function field_value( $entry, $field_settings, $format = 'html' ) { |
@@ -1000,7 +999,7 @@ discard block |
||
| 1000 | 999 | * Get the current View ID being rendered |
| 1001 | 1000 | * |
| 1002 | 1001 | * @global GravityView_View $gravityview_view |
| 1003 | - * @return string View context "directory" or "single" |
|
| 1002 | + * @return integer View context "directory" or "single" |
|
| 1004 | 1003 | */ |
| 1005 | 1004 | function gravityview_get_view_id() { |
| 1006 | 1005 | return GravityView_View::getInstance()->getViewId(); |