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

If this file is called directly, abort. More...

Inheritance diagram for View_Settings:
Settings

Public Member Functions

 as_atts ()
 Turn to an $atts array as used around the old codebase. More...
 
- Public Member Functions inherited from Settings
 __construct ( $settings=array())
 Create with new. More...
 
 all ()
 Returns all the objects in this collection as an an array. More...
 
 get ( $key, $default=null)
 Set an setting. More...
 
 set ( $key, $value)
 Set a setting. More...
 
 update ( $settings)
 Mass update values from the allowed ones. More...
 

Static Public Member Functions

static defaults ( $detailed=false, $group=null)
 Retrieve the default View settings. More...
 
static with_defaults ( $detailed=false)
 Retrieve an instance of the settings with default values. More...
 

Detailed Description

If this file is called directly, abort.

The View Settings class.

Definition at line 12 of file class-gv-settings-view.php.

Member Function Documentation

◆ as_atts()

as_atts ( )

Turn to an $atts array as used around the old codebase.

Definition at line 687 of file class-gv-settings-view.php.

◆ defaults()

static defaults (   $detailed = false,
  $group = null 
)
static

Retrieve the default View settings.

Parameters
bool$detailedWhether to return detailed setting meta information or just the value.
string$groupRetrieve settings of a particular group.
Since
2.0
Returns
array The default settings along with their values.
Parameters
string$labelSetting label shown in admin
string$typeGravity Forms field type
string$groupThe field group the setting is associated with. Default: "default"
mixed$valueThe default value for the setting
string$tooltipTooltip displayed for the setting
boolean$show_in_shortcodeWhether to show the setting in the shortcode configuration modal
array$optionsArray of values to use when generating select, multiselect, radio, or checkboxes fields
boolean$full_widthTrue: Display the input and label together when rendering. False: Display label and input in separate columns when rendering.
Runs Filter:
gravityview_default_args Modify the default settings for new Views
See also
filter gravityview/view/settings/defaults
Parameters
array$default_argsArray of default args.
Runs Filter:
gravityview/view/defaults Modify the default settings for new Views
Parameters
array$default_settingsArray of default settings.

Definition at line 48 of file class-gv-settings-view.php.

References $value, GVCommon\get_forms_as_options(), gravityview(), gravityview_get_form_id(), GravityView_Delete_Entry\REDIRECT_TO_MULTIPLE_ENTRIES_VALUE, and GravityView_Delete_Entry\REDIRECT_TO_URL_VALUE.

Referenced by GravityView_Admin_Add_Shortcode\add_shortcode_popup(), GravityView_View_Data\get_default_arg(), GravityView_Shortcode\parse_and_sanitize_atts(), gravityview\parse_and_sanitize_atts(), and GravityView_Admin_Views\tooltips().

◆ with_defaults()

static with_defaults (   $detailed = false)
static

Retrieve an instance of the settings with default values.

Parameters
bool$detailedWhether to return detailed setting meta information or just the value.
Since
2.0
Returns

Definition at line 23 of file class-gv-settings-view.php.

References $settings.

Referenced by GravityView_View_Data\get_id_from_atts(), and GravityView_Render_Settings\render_setting_row().


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