Skip to main content

GV\View_Settings

The View Settings class.

Source: future/includes/class-gv-settings-view.php:14

Details

  • Kind: class
  • Namespace: GV
  • Extends: Settings

Methods

MethodDescription
with_defaults()Retrieve an instance of the settings with default values.
defaults()Retrieve the default View settings.

Method Reference

with_defaults()

public static function with_defaults( $detailed=false )

Retrieve an instance of the settings with default values.

Parameters

NameTypeDefaultDescription
$detailedboolfalseWhether to return detailed setting meta information or just the value.

Returns

Since: 2.0

Source: future/includes/class-gv-settings-view.php:25

defaults()

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

Retrieve the default View settings.

Parameters

NameTypeDefaultDescription
$detailedboolfalseWhether to return detailed setting meta information or just the value.
$groupstringnullThe field group the setting is associated with. Default: "default"
$labelstringSetting label shown in admin
$typestringGravity Forms field type
$valuemixedThe default value for the setting
$tooltipstringTooltip displayed for the setting
$show_in_shortcodebooleanWhether to show the setting in the shortcode configuration modal
$optionsarrayArray of values to use when generating select, multiselect, radio, or checkboxes fields
$full_widthbooleanTrue: Display the input and label together when rendering. False: Display label and input in separate columns when rendering.

Returns

  • array — The default settings along with their values.

Since: 2.0

Source: future/includes/class-gv-settings-view.php:50