GravityView  1.19.4
The best, easiest way to display Gravity Forms entries on your website.
Public Member Functions | Protected Member Functions | Protected Attributes
GravityView_Plugin_Hooks_Gravity_Forms_Survey Class Reference

More...

Inheritance diagram for GravityView_Plugin_Hooks_Gravity_Forms_Survey:
GravityView_Plugin_and_Theme_Hooks

Public Member Functions

 add_render_hooks ()
 Add filters before rendering the Edit Entry form. More...
 
 fix_survey_field_value ($value, $field, $name)
 Survey fields inject their output using gform_field_input filter, but in Edit Entry, the values were empty. More...
 
 modify_search_bar_input_type ($input_type= 'text', $field_type= '')
 Modify the search form input type for survey fields. More...
 
 remove_render_hooks ()
 Remove the hooks added before rendering Edit Entry form. More...
 
- Public Member Functions inherited from GravityView_Plugin_and_Theme_Hooks
 __construct ()
 GravityView_Theme_Support constructor. More...
 
 merge_content_meta_keys ($meta_keys=array(), $post_id=0)
 Merge plugin or theme meta keys that store shortcode data with existing keys to check. More...
 
 merge_noconflict_scripts ($handles)
 Merge plugin or theme scripts with existing no-conflict scripts. More...
 
 merge_noconflict_styles ($handles)
 Merge plugin or theme styles with existing no-conflict styles. More...
 
 merge_post_type_support ($supports=array(), $is_hierarchical=false)
 Merge plugin or theme post type support definitions with existing support values. More...
 

Protected Member Functions

 add_hooks ()
 
- Protected Member Functions inherited from GravityView_Plugin_and_Theme_Hooks
 add_hooks ()
 Add filters for meta key and script/style handles, if defined. More...
 

Protected Attributes

 $constant_name = 'GF_SURVEY_VERSION'
 string Optional. More...
 
- Protected Attributes inherited from GravityView_Plugin_and_Theme_Hooks
 $class_name = false
 string Optional. More...
 
 $constant_name = false
 string Optional. More...
 
 $content_meta_keys = array()
 Define the keys to be parsed by the gravityview/data/parse/meta_keys hook. More...
 
 $function_name = false
 string Optional. More...
 
 $post_type_support = array()
 Define features in the admin editor used by the theme or plugin to be used when registering the GravityView post type. More...
 
 $script_handles = array()
 Define script handles used by the theme or plugin to be parsed by the gravityview/data/parse/meta_keys hook. More...
 
 $style_handles = array()
 Define style handles used by the theme or plugin to be parsed by the gravityview/data/parse/meta_keys hook. More...
 

Detailed Description

Since
1.17

Definition at line 19 of file class-gravityview-plugin-hooks-gravity-forms-survey.php.

Member Function Documentation

add_hooks ( )
protected
add_render_hooks ( )

Add filters before rendering the Edit Entry form.

Since
1.17
Returns
void

Definition at line 84 of file class-gravityview-plugin-hooks-gravity-forms-survey.php.

fix_survey_field_value (   $value,
  $field,
  $name 
)

Survey fields inject their output using gform_field_input filter, but in Edit Entry, the values were empty.

We filter the values here because it was the easiest access point: tell the survey field the correct value, GF outputs it.

Since
1.16.4
1.17 Moved to GravityView_Plugin_Hooks_Gravity_Forms_Survey class
Parameters
string$valueExisting value
GF_Field$field
string$nameField custom parameter name, normally blank.
Returns
mixed

Definition at line 114 of file class-gravityview-plugin-hooks-gravity-forms-survey.php.

References $entry, $field, $field_id, $field_value, $name, $value, and GravityView_Edit_Entry\getInstance().

modify_search_bar_input_type (   $input_type = 'text',
  $field_type = '' 
)

Modify the search form input type for survey fields.

Since
1.17.3
Parameters
string$input_typeAssign an input type according to the form field type. Defaults: boolean, multi, select, date, text
string$field_typeGravity Forms field type (also the name parameter of GravityView_Field classes)

Definition at line 44 of file class-gravityview-plugin-hooks-gravity-forms-survey.php.

References $field.

remove_render_hooks ( )

Remove the hooks added before rendering Edit Entry form.

See also
add_render_hooks
Since
1.17
Returns
void

Definition at line 97 of file class-gravityview-plugin-hooks-gravity-forms-survey.php.

Field Documentation

$constant_name = 'GF_SURVEY_VERSION'
protected

string Optional.

Constant that should be defined by plugin or theme. Used to check whether plugin is active.

Since
1.17

Definition at line 25 of file class-gravityview-plugin-hooks-gravity-forms-survey.php.


The documentation for this class was generated from the following file: