GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
Static Public Member Functions | |
static | _sort_by_priority ( $a, $b) |
Sort field settings by the priority key. More... | |
static | get_cap_choices ( $template_id='', $field_id='', $context='', $input_type='') |
Get capabilities options for GravityView. More... | |
static | get_default_field_options ( $field_type, $template_id, $field_id, $context, $input_type, $form_id, $grouped=false) |
Get the default options for a standard field. More... | |
static | get_field_groups () |
Get available field groups. More... | |
static | load_type_class ( $field=NULL) |
Given a field type calculates the php class. More... | |
static | render_checkbox_option ( $name='', $id='', $current='') |
static | render_field_option ( $name='', $option=array(), $curr_value=null) |
Handle rendering a field option form element. More... | |
static | render_field_options ( $form_id, $field_type, $template_id, $field_id, $field_label, $area, $input_type=NULL, $uniqid='', $current='', $context='single', $item=array()) |
Render Field Options html (shown through a dialog box) More... | |
static | render_select_option ( $name='', $id='', $choices=array(), $current='') |
Render the HTML for a select box to be used on the field & widgets options. More... | |
static | render_setting_row ( $key='', $current_settings=array(), $override_input=null, $name='template_settings[%s]', $id='gravityview_se_%s') |
Output a table row for view settings. More... | |
static | render_text_option ( $name='', $id='', $current='', $add_merge_tags=NULL, $args=array()) |
static | render_textarea_option ( $name='', $id='', $current='', $add_merge_tags=NULL, $args=array()) |
Definition at line 14 of file class.render.settings.php.
|
static |
Sort field settings by the priority
key.
Default priority is 10001. Lower is higher.
Definition at line 208 of file class.render.settings.php.
References Utils\get().
|
static |
Get capabilities options for GravityView.
Parameters are only to pass to the filter.
string | $template_id | Optional. View slug |
string | $field_id | Optional. GF Field ID - Example: 3 , 5.2 , entry_link , created_by |
string | $context | Optional. What context are we in? Example: single or directory |
string | $input_type | Optional. (textarea, list, select, etc.) |
gravityview_field_visibility_caps
Modify the capabilities shown in the field dropdown array | $select_cap_choices | Associative rray of role slugs with labels ( manage_options => Administrator ) |
string | $template_id | Optional. View slug |
string | $field_id | Optional. GF Field ID - Example: 3 , 5.2 , entry_link , created_by |
string | $context | Optional. What context are we in? Example: single or directory |
string | $input_type | Optional. (textarea, list, select, etc.) |
Definition at line 231 of file class.render.settings.php.
References $field_id.
Referenced by GravityView_Delete_Entry_Admin\delete_link_field_options(), GravityView_Duplicate_Entry\duplicate_link_field_options(), and GravityView_Edit_Entry_Admin\field_options().
|
static |
Get the default options for a standard field.
string | $field_type | Type of field options to render (field or widget ) |
string | $template_id | Layout slug (default_table , default_list , datatables_table , etc. |
float | $field_id | GF Field ID - Example: 3 , 5.2 , entry_link , created_by |
string | $context | What context are we in? Example: single or directory |
string | $input_type | (textarea, list, select, etc.) |
int | $form_id | The form ID. |
bool | $grouped | Whether to group the field settings by group key |
label
, value
, type
, default
keys gravityview_template_{$field_type}_options
Filter the field options by field type. Filter names: gravityview_template_field_options
and gravityview_template_widget_options
array | Array of field options with label , value , type , default keys | |
string | $template_id | Table slug |
float | $field_id | GF Field ID - Example: 3 , 5.2 , entry_link , created_by |
string | $context | What context are we in? Example: single or directory |
string | $input_type | (textarea, list, select, etc.) |
int | $form_id | The form ID. { |
gravityview_template_{$input_type}_options
Filter the field options by input type ($input_type
examples: textarea
, list
, select
, etc.) array | Array of field options with label , value , type , default keys | |
string | $template_id | Table slug |
float | $field_id | GF Field ID - Example: 3 , 5.2 , entry_link , created_by |
string | $context | What context are we in? Example: single or directory |
string | $input_type | (textarea, list, select, etc.) |
int | $form_id | The form ID. { |
Definition at line 50 of file class.render.settings.php.
References $field_id, $form_id, and Utils\get().
|
static |
Get available field groups.
Definition at line 23 of file class.render.settings.php.
|
static |
Given a field type calculates the php class.
If not found try to load it.
array | $field |
gravityview/setting/class/{field_type}
string | $class_suffix | field class suffix; GravityView_FieldType_{$class_suffix} |
array | $field | field data |
gravityview/setting/class_file/{field_type}
string | $field_type_include_path | field class file path |
array | $field | field data |
Definition at line 607 of file class.render.settings.php.
References $field, and GRAVITYVIEW_DIR.
|
static |
string | $name,name | attribute |
string | $current | current value |
Definition at line 649 of file class.render.settings.php.
|
static |
Handle rendering a field option form element.
string | $name | Input name attribute |
array | $option | Associative array of options. See the $defaults variable for available keys. |
mixed | $curr_value | Current value of option |
GravityView_FieldType $render_type
gravityview/option/output/{option_type}
Modify the output for a GravityView setting.$option_type
is the type of setting (radio
, text
, etc.) string | $output | field class name |
array | $option | option field data |
Definition at line 471 of file class.render.settings.php.
References $name, and $output.
Referenced by GravityView_Admin_Views\render_field_option().
|
static |
Render Field Options html (shown through a dialog box)
string | $form_id | |
string | $field_type | field / widget |
string | $template_id | |
string | $field_id | |
string | $field_label | |
string | $area | |
string | $uniqid | (default: '') |
string | $current | (default: '') |
string | $context | (default: 'single') |
array | $item | Field or widget array that's being rendered |
Definition at line 281 of file class.render.settings.php.
References $field_id, $field_settings, GV\$form, $form_id, $gv_field, $output, $template, $value, Utils\get(), GravityView_Fields\get(), and GVCommon\get_form_or_form_template().
Referenced by GravityView_Ajax\get_field_options(), and GravityView_Admin_Views\render_active_areas().
|
static |
Render the HTML for a select box to be used on the field & widgets options.
string | $name | [name attribute] |
array | $choices | [select options] |
string | $current | [current value] |
Definition at line 732 of file class.render.settings.php.
|
static |
Output a table row for view settings.
string | $key | The key of the input |
array | $current_settings | Associative array of current settings to use as input values, if set. If not set, the defaults are used. |
string | $override_input | [description] |
string | $name | [description] |
string | $id | [description] |
GravityView_FieldType $render_type
Definition at line 528 of file class.render.settings.php.
References $current_settings, $name, $output, $settings, and View_Settings\with_defaults().
Referenced by GravityView_Admin_Add_Shortcode\add_shortcode_popup(), GravityView_Admin_Views\render_setting_row(), GravityView_Delete_Entry_Admin\view_settings_delete_entry_metabox(), GravityView_Delete_Entry_Admin\view_settings_edit_entry_metabox(), GravityView_Delete_Entry_Admin\view_settings_metabox(), and GravityView_Edit_Entry_Admin\view_settings_metabox().
|
static |
string | $name | Unique name of the field. Exampe: fields[directory_list-title][5374ff6ab128b][custom_label] |
string | $current | [current value] |
string | $add_merge_tags | Add merge tags to the input? |
array | $args | Field settings, including class key for CSS class |
Definition at line 669 of file class.render.settings.php.
|
static |
string | $name | Unique name of the field. Exampe: fields[directory_list-title][5374ff6ab128b][custom_label] |
string | $current | [current value] |
string | boolean | $add_merge_tags | Add merge tags to the input? |
array | $args | Field settings, including class key for CSS class |
Definition at line 701 of file class.render.settings.php.