GravityView  1.22.6
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...
 
 update ( $settings)
 Mass update values from the allowed ones. More...
 
- Public Member Functions inherited from Settings
 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...
 

Static Public Member Functions

static defaults ( $detailed=false, $group=null)
 Retrieve the default View settings. 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 292 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
future
Returns
array The default settings along with their values.
Parameters
[out]string$labelSetting label shown in admin
[out]string$typeGravity Forms field type
[out]string$groupThe field group the setting is associated with. Default: "default"
[out]mixed$valueThe default value for the setting
[out]string$tooltipTooltip displayed for the setting
[out]boolean$show_in_shortcodeWhether to show the setting in the shortcode configuration modal
[out]array$optionsArray of values to use when generating select, multiselect, radio, or checkboxes fields
[out]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
Parameters
[in,out]array$default_argsArray of default args.
Deprecated:
See also
filter gravityview/view/settings/defaults
Runs Filter:
gravityview/view/defaults Modify the default settings for new Views
Parameters
[in,out]array$default_settingsArray of default settings.

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

References $value.

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

◆ update()

update (   $settings)

Mass update values from the allowed ones.

Since
future
Parameters
arrayAn array of settings to update.
Returns
void

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

References $value.


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