GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
Ex-GF Addon Settings class that's been stripped of GF functionality. More...
Public Member Functions | |
__construct () | |
add_settings ( $plugins_data) | |
Adds GravityView settings to Foundation. More... | |
all () | |
Returns all settings. More... | |
defaults () | |
Returns default settings. More... | |
get ( $key, $default=null) | |
Returns setting by its name. More... | |
get_app_setting ( $setting_name) | |
Returns a setting. More... | |
get_app_settings () | |
Returns all settings. More... | |
get_gravitykit_setting ( $setting, $default=null) | |
Returns a GravityKit general setting. More... | |
maybe_save_app_settings () | |
Check for the gravityview_edit_settings capability before saving plugin settings. More... | |
migrate_legacy_settings () | |
Migrates GravityView <2.16 settings to the new settings framework. More... | |
set ( $settings, $value=null) | |
Sets a subset of settings. More... | |
update ( $settings) | |
Updates settings. More... | |
update_app_settings ( $settings) | |
Updates app settings with the provided settings. More... | |
Static Public Member Functions | |
static | getSetting ( $key) |
Returns setting by its name. More... | |
Data Fields | |
padding | __pad0__: .5em .75em |
margin | __pad1__: .1em |
number scale | label |
const | SETTINGS_PLUGIN_ID = 'gravityview' |
font | size: 1.2em |
Private Member Functions | |
_get_uninstall_reasons () | |
Reimplement elsewhere. More... | |
_uninstall_form () | |
Reimplement elsewhere. More... | |
_uninstall_warning_message () | |
Private Attributes | |
$_foundation_settings | |
$_plugin_settings = [] | |
Ex-GF Addon Settings class that's been stripped of GF functionality.
Serves as a wrapper for Foundation Settings while also providing old getter/setter methods for backward compatibility.
Definition at line 14 of file class-gv-settings-plugin.php.
__construct | ( | ) |
Definition at line 35 of file class-gv-settings-plugin.php.
|
private |
Reimplement elsewhere.
Definition at line 352 of file class-gv-settings-plugin.php.
References GV\$reasons.
|
private |
Reimplement elsewhere.
Definition at line 380 of file class-gv-settings-plugin.php.
References $user.
|
private |
Definition at line 342 of file class-gv-settings-plugin.php.
add_settings | ( | $plugins_data | ) |
Adds GravityView settings to Foundation.
array | $plugins_data | Plugins data |
Override whether to show GravityView settings.
bool | $show_settings | Default: true |
Definition at line 212 of file class-gv-settings-plugin.php.
References $settings.
all | ( | ) |
Returns all settings.
Definition at line 99 of file class-gv-settings-plugin.php.
defaults | ( | ) |
Returns default settings.
gravityview/settings/default
Filter default global settings.[in,out] | array | The defaults. |
Definition at line 189 of file class-gv-settings-plugin.php.
get | ( | $key, | |
$default = null |
|||
) |
Returns setting by its name.
string | $key | The setting key. |
string | $default | (optional) A default if not found. |
Definition at line 66 of file class-gv-settings-plugin.php.
get_app_setting | ( | $setting_name | ) |
Returns a setting.
string | $setting_name | The setting key. |
Definition at line 54 of file class-gv-settings-plugin.php.
get_app_settings | ( | ) |
Returns all settings.
Definition at line 90 of file class-gv-settings-plugin.php.
get_gravitykit_setting | ( | $setting, | |
$default = null |
|||
) |
Returns a GravityKit general setting.
string | $setting | Setting value. |
mixed | null | $default | (optional) A default value if setting is not set. Defaults to null. |
Definition at line 178 of file class-gv-settings-plugin.php.
|
static |
Returns setting by its name.
string | $key | Option key to fetch |
Definition at line 78 of file class-gv-settings-plugin.php.
References gravityview().
maybe_save_app_settings | ( | ) |
Check for the gravityview_edit_settings
capability before saving plugin settings.
Gravity Forms says you're able to edit if you're able to view settings. GravityView allows two different permissions.
Definition at line 328 of file class-gv-settings-plugin.php.
References GVCommon\has_cap().
migrate_legacy_settings | ( | ) |
Migrates GravityView <2.16 settings to the new settings framework.
Some of those settings are now part of the GravityKit general settings, and some are part of the GravityView plugin settings.
Definition at line 122 of file class-gv-settings-plugin.php.
References gravityview().
set | ( | $settings, | |
$value = null |
|||
) |
Sets a subset of settings.
array|string | An array of settings to update, or string (key) and $value to update one setting. | |
mixed | $value | A value if $settings is string (key). Default: null. |
Definition at line 292 of file class-gv-settings-plugin.php.
update | ( | $settings | ) |
Updates settings.
array | $settings | The settings array. |
Definition at line 309 of file class-gv-settings-plugin.php.
References $settings.
update_app_settings | ( | $settings | ) |
Updates app settings with the provided settings.
Same as the GFAddon, except it returns the value from update_option()
array | $settings | - App settings to be saved |
Definition at line 282 of file class-gv-settings-plugin.php.
References $settings.
|
private |
Definition at line 24 of file class-gv-settings-plugin.php.
|
private |
Definition at line 33 of file class-gv-settings-plugin.php.
padding __pad0__ |
Definition at line 392 of file class-gv-settings-plugin.php.
margin __pad1__ |
Definition at line 393 of file class-gv-settings-plugin.php.
number scale label |
Definition at line 390 of file class-gv-settings-plugin.php.
const SETTINGS_PLUGIN_ID = 'gravityview' |
Definition at line 15 of file class-gv-settings-plugin.php.
font size |
Definition at line 397 of file class-gv-settings-plugin.php.