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

Public Member Functions

 __construct (GravityView_Edit_Entry $loader)
 
 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...
 
 edit_link_field_options ( $field_options, $template_id, $field_id, $context, $input_type)
 Add "Edit Link Text" setting to the edit_link field settings. More...
 
 field_options ( $field_options, $template_id, $field_id, $context, $input_type, $form_id)
 Add "Edit 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...
 
 tooltips ( $tooltips)
 Add tooltips. More...
 
 view_settings_metabox ( $current_settings)
 Render Edit Entry View metabox settings. More...
 

Protected Attributes

 $loader
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

__construct ( GravityView_Edit_Entry  $loader)

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

References $loader.

Member Function Documentation

◆ 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.

Parameters
array$entry_default_fieldsExisting fields
string | array$formform_ID or form object
string$zoneEither 'single', 'directory', 'header', 'footer'

Definition at line 82 of file class-edit-entry-admin.php.

◆ edit_link_field_options()

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

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

Parameters
array$field_options
string$template_id
string$field_id
string$context
string$input_type
Returns
array $field_options, with "Edit Link Text" field option

Definition at line 136 of file class-edit-entry-admin.php.

◆ field_options()

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

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

Parameters
array$field_options
string$template_id
string$field_id
string$context
string$input_type
int$form_id
Returns
array $field_options, with added field options

Definition at line 192 of file class-edit-entry-admin.php.

References $field_id, and GravityView_Render_Settings\get_cap_choices().

◆ load()

load ( )

Definition at line 25 of file class-edit-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.

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 109 of file class-edit-entry-admin.php.

◆ tooltips()

tooltips (   $tooltips)

Add tooltips.

Parameters
array$tooltipsExisting tooltips
Returns
array Modified tooltips

Definition at line 168 of file class-edit-entry-admin.php.

◆ view_settings_metabox()

view_settings_metabox (   $current_settings)

Render Edit Entry View metabox settings.

Since
2.9
Parameters
$current_settings
Returns
void

Definition at line 59 of file class-edit-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-edit-entry-admin.php.

Referenced by __construct().


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