@@ -132,10 +132,8 @@ |
||
| 132 | 132 | /** |
| 133 | 133 | * Get a \GV\Field by Form and Field ID for this data source. |
| 134 | 134 | * |
| 135 | - * @param \GV\GF_Form $form The Gravity Form form ID. |
|
| 136 | - * @param int $field_id The Gravity Form field ID for the $form_id. |
|
| 137 | 135 | * |
| 138 | - * @return \GV\Field|null The requested field or null if not found. |
|
| 136 | + * @return null|GF_Field The requested field or null if not found. |
|
| 139 | 137 | */ |
| 140 | 138 | public static function get_field( /** varargs */ ) { |
| 141 | 139 | $args = func_get_args(); |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * |
| 23 | 23 | * @param \GV\Field $field The field to be ouput. |
| 24 | 24 | * |
| 25 | - * @return string|false The field output or false if "hide_empty" is set. |
|
| 25 | + * @return null|string The field output or false if "hide_empty" is set. |
|
| 26 | 26 | */ |
| 27 | 27 | public function the_field( \GV\Field $field ) { |
| 28 | 28 | $renderer = new Field_Renderer(); |
@@ -63,7 +63,6 @@ |
||
| 63 | 63 | * Initializer. |
| 64 | 64 | * |
| 65 | 65 | * @param \GV\View $view The View connected to this template. |
| 66 | - * @param \GV\Entry_Collection $entries A collection of entries for this view. |
|
| 67 | 66 | * @param \GV\Request $request The request context. |
| 68 | 67 | */ |
| 69 | 68 | public function __construct( Entry $entry, View $view, Request $request ) { |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | * @param \GV\Field $field The Field. |
| 52 | 52 | * @param \GV\Request $request The request. |
| 53 | 53 | * |
| 54 | - * @return void |
|
| 54 | + * @return string|null |
|
| 55 | 55 | */ |
| 56 | 56 | public function __construct( \GV\View $view, \GV\Entry $entry = null, \GV\Field $field = null, \GV\Request $request = null ) { |
| 57 | 57 | add_filter( $this->filter_prefix . '_get_template_part', array( $this, 'add_id_specific_templates' ), 10, 3 ); |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | * @param GF_Field|false $field |
| 185 | 185 | * @param string $value |
| 186 | 186 | * |
| 187 | - * @return mixed|string |
|
| 187 | + * @return string |
|
| 188 | 188 | */ |
| 189 | 189 | private static function maybe_urlencode( $field = false, $value = '' ) { |
| 190 | 190 | |
@@ -349,7 +349,7 @@ discard block |
||
| 349 | 349 | * @param bool $url_encode Whether to URL-encode output |
| 350 | 350 | * @param bool $esc_html Whether to apply `esc_html()` to output |
| 351 | 351 | * |
| 352 | - * @return mixed |
|
| 352 | + * @return string |
|
| 353 | 353 | */ |
| 354 | 354 | public static function replace_gv_merge_tags( $text, $form = array(), $entry = array(), $url_encode = false, $esc_html = false ) { |
| 355 | 355 | |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | class GV_License_Handler extends \GV\License_Handler { |
| 11 | 11 | /** |
| 12 | - * @param \GV\Addon_Settings $GFAddOn |
|
| 13 | 12 | * |
| 14 | 13 | * @deprecated Use \GV\License_Handler::get instead |
| 15 | 14 | * |
@@ -219,6 +219,9 @@ discard block |
||
| 219 | 219 | |
| 220 | 220 | } |
| 221 | 221 | |
| 222 | + /** |
|
| 223 | + * @param string $key |
|
| 224 | + */ |
|
| 222 | 225 | public function getCurrentFieldSetting( $key ) { |
| 223 | 226 | $settings = $this->getCurrentField('field_settings'); |
| 224 | 227 | |
@@ -725,6 +728,7 @@ discard block |
||
| 725 | 728 | * |
| 726 | 729 | * @inheritdoc |
| 727 | 730 | * @see Gamajo_Template_Loader::locate_template() |
| 731 | + * @param string $template_names |
|
| 728 | 732 | * @return null|string NULL: Template not found; String: path to template |
| 729 | 733 | */ |
| 730 | 734 | function locate_template( $template_names, $load = false, $require_once = true ) { |
@@ -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 ); |