@@ -45,7 +45,6 @@ discard block |
||
| 45 | 45 | * Trick the GF fileupload field to render with the proper HTML ID to enable the plupload JS to work properly |
| 46 | 46 | * |
| 47 | 47 | * @param array $form The Form Object currently being processed. |
| 48 | - * @param string|array $value The field value. From default/dynamic population, $_POST, or a resumed incomplete submission. |
|
| 49 | 48 | * @param null|array $entry Null or the Entry Object currently being edited. |
| 50 | 49 | * @param GF_Field_FileUpload $field Gravity Forms field |
| 51 | 50 | * |
@@ -74,6 +73,7 @@ discard block |
||
| 74 | 73 | * |
| 75 | 74 | * @since 2.0 |
| 76 | 75 | * @param \GV\Template_Context The context. |
| 76 | + * @param GV\Template_Context $context |
|
| 77 | 77 | * |
| 78 | 78 | * @return array Array of file output, with `file_path` and `html` keys (see comments above) |
| 79 | 79 | */ |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | * |
| 73 | 73 | * @param mixed $value The value in. |
| 74 | 74 | * |
| 75 | - * @return mixed The value out. |
|
| 75 | + * @return string The value out. |
|
| 76 | 76 | */ |
| 77 | 77 | public function get_value( $value ) { |
| 78 | 78 | return $this->get_string_from_value( $value ); |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | * @param \GV\Entry $entry The entry. |
| 39 | 39 | * @param \GV\Request $request The request context. |
| 40 | 40 | * |
| 41 | - * @return mixed $value The filtered value. |
|
| 41 | + * @return string $value The filtered value. |
|
| 42 | 42 | */ |
| 43 | 43 | public function get_value( $value, $field, $view, $source, $entry, $request ) { |
| 44 | 44 | /** Passwords should never be exposed. */ |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | * @param \GV\Entry $entry The entry. |
| 70 | 70 | * @param \GV\Request $request The request context. |
| 71 | 71 | * |
| 72 | - * @return mixed $value The filtered value. |
|
| 72 | + * @return string $value The filtered value. |
|
| 73 | 73 | */ |
| 74 | 74 | public function get_value( $value, $field, $view, $source, $entry, $request ) { |
| 75 | 75 | return $this->get_content( $value, $entry->as_entry(), $field->as_configuration() ); |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | * |
| 73 | 73 | * @param mixed $value The value in. |
| 74 | 74 | * |
| 75 | - * @return mixed The value out. |
|
| 75 | + * @return string The value out. |
|
| 76 | 76 | */ |
| 77 | 77 | public function get_value( $value ) { |
| 78 | 78 | return $this->get_string_from_value( $value ); |
@@ -236,7 +236,6 @@ discard block |
||
| 236 | 236 | * |
| 237 | 237 | * @access public |
| 238 | 238 | * @param array $entry |
| 239 | - * @param array $field |
|
| 240 | 239 | * @return null|string |
| 241 | 240 | */ |
| 242 | 241 | public static function field_value( $entry, $field_settings, $format = 'html' ) { |
@@ -741,6 +740,9 @@ discard block |
||
| 741 | 740 | return $value; |
| 742 | 741 | } |
| 743 | 742 | |
| 743 | +/** |
|
| 744 | + * @param GV\Template_Context $context |
|
| 745 | + */ |
|
| 744 | 746 | function gv_directory_link( $post = NULL, $add_pagination = true, $context = null ) { |
| 745 | 747 | return GravityView_API::directory_link( $post, $add_pagination, $context ); |
| 746 | 748 | } |
@@ -1216,6 +1218,7 @@ discard block |
||
| 1216 | 1218 | * @param array $passed_args Associative array with field data. `field` and `form` are required. |
| 1217 | 1219 | * @since 2.0 |
| 1218 | 1220 | * @param \GV\Template_Context The template context. |
| 1221 | + * @param GV\Template_Context $context |
|
| 1219 | 1222 | * @return string Field output. If empty value and hide empty is true, return empty. |
| 1220 | 1223 | */ |
| 1221 | 1224 | function gravityview_field_output( $passed_args, $context = null ) { |
@@ -195,7 +195,6 @@ discard block |
||
| 195 | 195 | * |
| 196 | 196 | * @deprecated 2.0.7 |
| 197 | 197 | * |
| 198 | - * @param array $handles Array of meta keys to check for existence of shortcodes |
|
| 199 | 198 | * @param int $post_id The ID being checked by GravityView |
| 200 | 199 | * |
| 201 | 200 | * @return array Meta key array, merged with existing meta keys |
@@ -209,7 +208,6 @@ discard block |
||
| 209 | 208 | * |
| 210 | 209 | * @since 2.0.7 |
| 211 | 210 | * |
| 212 | - * @param array $handles Array of meta keys to check for existence of shortcodes |
|
| 213 | 211 | * @param \WP_Post $post The ID being checked by GravityView |
| 214 | 212 | * |
| 215 | 213 | * @return array Meta key array, merged with existing meta keys |
@@ -350,7 +350,7 @@ discard block |
||
| 350 | 350 | * Generate the status message box HTML based on the current status |
| 351 | 351 | * |
| 352 | 352 | * @since 1.7.4 |
| 353 | - * @param $message |
|
| 353 | + * @param string $message |
|
| 354 | 354 | * @param string $class |
| 355 | 355 | * |
| 356 | 356 | * @return string |
@@ -470,6 +470,9 @@ discard block |
||
| 470 | 470 | $this->settings->set( $settings ); |
| 471 | 471 | } |
| 472 | 472 | |
| 473 | + /** |
|
| 474 | + * @param boolean $echo |
|
| 475 | + */ |
|
| 473 | 476 | public function settings_edd_license_activation( $field, $echo ) { |
| 474 | 477 | $script_debug = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min'; |
| 475 | 478 | |
@@ -569,7 +572,6 @@ discard block |
||
| 569 | 572 | * Check the GravityView license information |
| 570 | 573 | * |
| 571 | 574 | * @since 1.19.3 |
| 572 | - * @param bool $force Whether to force checking license, even if AJAX |
|
| 573 | 575 | * |
| 574 | 576 | * @return void |
| 575 | 577 | */ |
@@ -24,9 +24,8 @@ |
||
| 24 | 24 | /** |
| 25 | 25 | * Get a \GV\Field by Field ID for this data source. |
| 26 | 26 | * |
| 27 | - * @param int $field_id The internal field ID (custom content, etc.) |
|
| 28 | 27 | * |
| 29 | - * @return \GV\Field|null The requested field or null if not found. |
|
| 28 | + * @return null|Internal_Field The requested field or null if not found. |
|
| 30 | 29 | */ |
| 31 | 30 | public static function get_field( /** varargs */ ) { |
| 32 | 31 | $args = func_get_args(); |