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

Public Member Functions

 __construct (GravityView_Delete_Entry $loader)
 
 add_available_field ( $available_fields=array())
 Add Delete Entry Link to the Add Field dialog. More...
 
 add_default_field ( $entry_default_fields, $form=array(), $zone='')
 Add Edit Link as a default field, outside those set in the Gravity Form form. More...
 
 delete_link_field_options ( $field_options, $template_id, $field_id, $context, $input_type)
 Add "Delete Link Text" setting to the edit_link field settings. More...
 
 load ()
 
 modify_visibility_caps ( $visibility_caps=array(), $template_id='', $field_id='', $context='', $input_type='')
 Change wording for the Edit context to read Entry Creator. More...
 
 view_settings_delete_entry_metabox ( $current_settings)
 Render Delete Entry Permissions settings. More...
 
 view_settings_edit_entry_metabox ( $current_settings)
 Renders settings relating to Delete Entry that should appear in the Edit Entry metabox. More...
 
 view_settings_metabox ( $current_settings)
 Render Delete Entry View metabox settings. More...
 

Protected Attributes

 $loader
 

Detailed Description

Definition at line 17 of file class-delete-entry-admin.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( GravityView_Delete_Entry  $loader)

Definition at line 21 of file class-delete-entry-admin.php.

References $loader.

Member Function Documentation

◆ add_available_field()

add_available_field (   $available_fields = array())

Add Delete Entry Link to the Add Field dialog.

Since
1.5.1
2.9.2 Moved here from GravityView_Delete_Entry
Parameters
array$available_fields
Returns
array

Definition at line 164 of file class-delete-entry-admin.php.

◆ add_default_field()

add_default_field (   $entry_default_fields,
  $form = array(),
  $zone = '' 
)

Add Edit Link as a default field, outside those set in the Gravity Form form.

Since
1.5.1
2.9.2 Moved here from GravityView_Delete_Entry
Parameters
array$entry_default_fieldsExisting fields
string | array$formform_ID or form object
string$zoneEither 'single', 'directory', 'edit', 'header', 'footer'
Returns
array

Definition at line 205 of file class-delete-entry-admin.php.

◆ delete_link_field_options()

delete_link_field_options (   $field_options,
  $template_id,
  $field_id,
  $context,
  $input_type 
)

Add "Delete Link Text" setting to the edit_link field settings.

Since
1.5.1
2.9.2 Moved here from GravityView_Delete_Entry
Parameters
array$field_options
string$template_id
string$field_id
string$context
string$input_type
Returns
array $field_options, with "Delete Link Text" and "Allow the following users to delete the entry:" field options.

Definition at line 123 of file class-delete-entry-admin.php.

References $field_id, and GravityView_Render_Settings\get_cap_choices().

◆ load()

load ( )

Definition at line 25 of file class-delete-entry-admin.php.

◆ modify_visibility_caps()

modify_visibility_caps (   $visibility_caps = array(),
  $template_id = '',
  $field_id = '',
  $context = '',
  $input_type = '' 
)

Change wording for the Edit context to read Entry Creator.

Since
1.5.1
2.9.2 Moved here from GravityView_Delete_Entry
Parameters
array$visibility_capsArray of capabilities to display in field dropdown.
string$field_typeType of field options to render (field or widget)
string$template_idTable slug
float$field_idGF Field ID - Example: 3, 5.2, entry_link, created_by
string$contextWhat context are we in? Example: single or directory
string$input_type(textarea, list, select, etc.)
Returns
array Array of field options with label, value, type, default keys

Definition at line 93 of file class-delete-entry-admin.php.

References $field_id.

◆ view_settings_delete_entry_metabox()

view_settings_delete_entry_metabox (   $current_settings)

Render Delete Entry Permissions settings.

Since
2.9.2
Parameters
$current_settings
Returns
void

Definition at line 187 of file class-delete-entry-admin.php.

References $current_settings, and GravityView_Render_Settings\render_setting_row().

◆ view_settings_edit_entry_metabox()

view_settings_edit_entry_metabox (   $current_settings)

Renders settings relating to Delete Entry that should appear in the Edit Entry metabox.

Since
2.11
Parameters
$current_settings

Definition at line 74 of file class-delete-entry-admin.php.

References $current_settings, and GravityView_Render_Settings\render_setting_row().

◆ view_settings_metabox()

view_settings_metabox (   $current_settings)

Render Delete Entry View metabox settings.

Since
2.9.1
Parameters
$current_settings
Returns
void

Definition at line 59 of file class-delete-entry-admin.php.

References $current_settings, and GravityView_Render_Settings\render_setting_row().

Field Documentation

◆ $loader

$loader
protected

Definition at line 19 of file class-delete-entry-admin.php.

Referenced by __construct().


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