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

More...

Inheritance diagram for GravityView_Plugin_Hooks_Gravity_Flow:
GravityView_Plugin_and_Theme_Hooks

Public Member Functions

 add_hooks ()
 Filter the values shown in GravityView frontend. More...
 
 clear_cache_after_workflow ( $form, $entry_id, $step_id, $starting_step_id)
 Clears GravityView entry cache after running a Gravity Flow Workflow. More...
 
 maybe_add_non_default_fields ( $fields, $form, $zone)
 Add the current status timestamp field to available View configuration fields. More...
 
 maybe_add_non_default_filter_fields ( $fields, $view_id)
 Add the current status timestamp field to available Advanced Filters. More...
 
 modify_search_bar_fields_dropdown ( $fields, $form_id)
 Get the list of active Workflow Steps and Workflow Step Statuses. More...
 
- Public Member Functions inherited from GravityView_Plugin_and_Theme_Hooks
 __construct ()
 GravityView_Theme_Support constructor. More...
 
 _wp_loaded ()
 Fired when all themes and plugins have been loaded. More...
 
 merge_content_meta_keys ( $meta_keys=array(), $post=null, & $views=null)
 Merge plugin or theme meta keys that store shortcode data with existing keys to check. More...
 
 merge_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...
 

Static Public Member Functions

static get_status_options ( $form_id=0, $status_key='workflow_final_status')
 Get the available status choices from Gravity Flow. More...
 

Protected Attributes

 $constant_name = 'GRAVITY_FLOW_VERSION'
 
- 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/view_collection/from_post/meta_keys hook. More...
 
 $function_name = false
 string Optional. More...
 
 $meta_keys = array()
 Define the keys to be parsed by the gravityview/data/parse/meta_keys hook. 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 added to allowed no-conflict scripts. More...
 
 $style_handles = array()
 Define style handles used by the theme or plugin to be added to allowed no-conflict styles. More...
 

Additional Inherited Members

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

Detailed Description

Since
1.17

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

Member Function Documentation

◆ add_hooks()

add_hooks ( )

Filter the values shown in GravityView frontend.

Since
1.17

Definition at line 32 of file class-gravityview-plugin-hooks-gravity-flow.php.

◆ clear_cache_after_workflow()

clear_cache_after_workflow (   $form,
  $entry_id,
  $step_id,
  $starting_step_id 
)

Clears GravityView entry cache after running a Gravity Flow Workflow.

Parameters
array$form
int$entry_id
int$step_id
int$starting_step_id
Returns
void

Definition at line 55 of file class-gravityview-plugin-hooks-gravity-flow.php.

References GV\$form.

◆ get_status_options()

static get_status_options (   $form_id = 0,
  $status_key = 'workflow_final_status' 
)
static

Get the available status choices from Gravity Flow.

Gravity_Flow::get_entry_meta()

Since
1.17.3
Parameters
int$form_id
string$status_keyBy default, get all statuses
Returns
array

Definition at line 71 of file class-gravityview-plugin-hooks-gravity-flow.php.

References $form_id, Utils\get(), and GravityView_View\getInstance().

Referenced by GravityView_Field_Workflow_Step\modify_frontend_search_fields(), and GravityView_Field_Workflow_Final_Status\modify_search_filters().

◆ maybe_add_non_default_fields()

maybe_add_non_default_fields (   $fields,
  $form,
  $zone 
)

Add the current status timestamp field to available View configuration fields.

Definition at line 151 of file class-gravityview-plugin-hooks-gravity-flow.php.

◆ maybe_add_non_default_filter_fields()

maybe_add_non_default_filter_fields (   $fields,
  $view_id 
)

Add the current status timestamp field to available Advanced Filters.

Definition at line 130 of file class-gravityview-plugin-hooks-gravity-flow.php.

◆ modify_search_bar_fields_dropdown()

modify_search_bar_fields_dropdown (   $fields,
  $form_id 
)

Get the list of active Workflow Steps and Workflow Step Statuses.

Since
1.17.3

Gravity_Flow_API::get_current_step

Parameters
array$fieldsArray of searchable fields
int$form_id
Returns
array Updated Array of searchable fields

Definition at line 95 of file class-gravityview-plugin-hooks-gravity-flow.php.

References $form_id.

Field Documentation

◆ $constant_name

$constant_name = 'GRAVITY_FLOW_VERSION'
protected

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