![]()  | 
  
    GravityView
    2.17
    
   The best, easiest way to display Gravity Forms entries on your website. 
   | 
 
Public Member Functions | |
| __construct () | |
| add_field_buttons ( $field_groups) | |
| Inject new add field buttons in the gravity form editor page.  More... | |
| add_scripts_and_styles ( $hook) | |
| filter_links_entry_list ( $filter_links=array(), $form=array(), $include_counts=true) | |
| Add filter links to the Entries page.  More... | |
| register_gform_noconflict_script ( $scripts) | |
| register_gform_noconflict_style ( $styles) | |
| set_defaults () | |
| At edit form page, set the field Approve defaults.  More... | |
| tooltips ( $tooltips) | |
| Add the GravityView Fields group tooltip.  More... | |
Static Public Member Functions | |
| static | add_entry_approved_hidden_input ( $form_id, $field_id, $value, $entry, $query_string) | 
| Add a hidden input that is used in the Javascript to show approved/disapproved entries checkbox.  More... | |
| static | get_approved_column ( $form) | 
| Calculate the approve field.input id.  More... | |
| static | update_approved ( $entry_id=0, $approved=0, $form_id=0, $approvedcolumn=0) | 
| update_approved function.  More... | |
Data Fields | |
| $bulk_update_message = '' | |
Private Member Functions | |
| add_hooks () | |
| get_first_form_id () | |
| Get the first form ID from Gravity Forms, sorted in the same order as in the All Forms page.  More... | |
| get_form_id () | |
| Get the form ID of the form currently being displayed.  More... | |
| get_sort_link ( $form_id=0) | |
| Generate a link to sort by approval status.  More... | |
| show_approve_entry_column ( $form_id) | |
| Should the Approve/Reject Entry column be shown in the GF Entries page?  More... | |
Private Attributes | |
| $bulk_action_prefixes | |
Definition at line 15 of file class-admin-approve-entries.php.
| __construct | ( | ) | 
Definition at line 30 of file class-admin-approve-entries.php.
References add_hooks().
      
  | 
  static | 
Add a hidden input that is used in the Javascript to show approved/disapproved entries checkbox.
See the /assets/js/admin-entries-list.js setInitialApprovedEntries method
| $form_id | |
| $field_id | |
| $value | |
| $entry | |
| $query_string | 
Definition at line 293 of file class-admin-approve-entries.php.
References $entry, GravityView_Entry_Approval\get_entry_status(), and GVCommon\has_cap().
| add_field_buttons | ( | $field_groups | ) | 
Inject new add field buttons in the gravity form editor page.
| mixed | $field_groups | 
Definition at line 163 of file class-admin-approve-entries.php.
      
  | 
  private | 
Edit Gravity Form page
gf_entries page - entries table screen
Definition at line 36 of file class-admin-approve-entries.php.
Referenced by __construct().
| add_scripts_and_styles | ( | $hook | ) | 
Definition at line 355 of file class-admin-approve-entries.php.
References $form_id, GravityView_Entry_Approval_Status\APPROVED, GravityView_Entry_Approval_Status\DISAPPROVED, GravityView_Bulk_Actions\get_bulk_actions(), get_form_id(), GravityView_Entry_Approval\get_popover_placement(), GravityView_Entry_Approval\get_popover_template(), get_sort_link(), GravityView_Entry_Approval_Status\get_title_attr(), gravityview(), GRAVITYVIEW_FILE, GV_PLUGIN_VERSION, GVCommon\has_cap(), show_approve_entry_column(), and GravityView_Entry_Approval_Status\UNAPPROVED.
| filter_links_entry_list | ( | $filter_links = array(),  | 
        |
$form = array(),  | 
        |||
$include_counts = true  | 
        |||
| ) | 
Add filter links to the Entries page.
Can be disabled by returning false on the gravityview/approve_entries/show_filter_links_entry_list filter
| array | $filter_links | Array of links to include in the subsubsub filter list. Includes id, field_filters, count, and label keys  | 
| array | $form | GF Form object of current form | 
| bool | $include_counts | Whether to include counts in the output | 
gravityview/approve_entries/show_filter_links_entry_list Disable filter links | bool | $show_filter_links | True: show the "approved"/"disapproved" filter links. False: hide them. | 
| array | $form | GF Form object of current form | 
Definition at line 73 of file class-admin-approve-entries.php.
References GV\$form, GravityView_Entry_Approval_Status\APPROVED, GravityView_Entry_Approval_Status\DISAPPROVED, GravityView_Entry_Approval_Status\get_label(), gravityview_get_entry_ids(), GravityView_Entry_Approval\meta_key, and GravityView_Entry_Approval_Status\UNAPPROVED.
      
  | 
  static | 
Calculate the approve field.input id.
| mixed | $form | GF Form or Form ID | 
Definition at line 276 of file class-admin-approve-entries.php.
References GV\$form.
      
  | 
  private | 
Get the first form ID from Gravity Forms, sorted in the same order as in the All Forms page.
0 if no forms were found. Definition at line 338 of file class-admin-approve-entries.php.
References $form_id, $forms, and gravityview().
Referenced by get_form_id().
      
  | 
  private | 
Get the form ID of the form currently being displayed.
0 is returned if no forms are found. Definition at line 317 of file class-admin-approve-entries.php.
References $form_id, and get_first_form_id().
Referenced by add_scripts_and_styles().
      
  | 
  private | 
Generate a link to sort by approval status.
Note: Sorting by approval will never be great because it's not possible currently to declare the sorting as numeric, but it does group the approved entries together.
| int | $form_id | [NO LONGER USED] | 
Definition at line 419 of file class-admin-approve-entries.php.
References $args.
Referenced by add_scripts_and_styles().
| register_gform_noconflict_script | ( | $scripts | ) | 
Definition at line 468 of file class-admin-approve-entries.php.
| register_gform_noconflict_style | ( | $styles | ) | 
Definition at line 475 of file class-admin-approve-entries.php.
| set_defaults | ( | ) | 
At edit form page, set the field Approve defaults.
Definition at line 199 of file class-admin-approve-entries.php.
      
  | 
  private | 
Should the Approve/Reject Entry column be shown in the GF Entries page?
| int | $form_id | The ID of the Gravity Forms form for which entries are being shown | 
gravityview/approve_entries/hide-if-no-connections Return true to hide reject/approve if there are no connected Views | boolean | $hide_if_no_connections | 
gravityview/approve_entries/show-column Override whether the column is shown | boolean | $show_approve_column | Whether the column will be shown | 
| int | $form_id | The ID of the Gravity Forms form for which entries are being shown | 
Definition at line 438 of file class-admin-approve-entries.php.
References $form_id, gravityview_get_connected_views(), and GVCommon\has_cap().
Referenced by add_scripts_and_styles().
| tooltips | ( | $tooltips | ) | 
Add the GravityView Fields group tooltip.
| $tooltips | 
Definition at line 146 of file class-admin-approve-entries.php.
      
  | 
  static | 
update_approved function.
| int | $entry_id | (default: 0) | 
| int | $approved | (default: 0) | 
| int | $form_id | (default: 0) | 
| int | $approvedcolumn | (default: 0) | 
Definition at line 263 of file class-admin-approve-entries.php.
References $form_id, and GravityView_Entry_Approval\update_approved().
      
  | 
  private | 
Definition at line 24 of file class-admin-approve-entries.php.
| $bulk_update_message = '' | 
Definition at line 18 of file class-admin-approve-entries.php.