GravityView  1.19.4
The best, easiest way to display Gravity Forms entries on your website.
Public Member Functions | Static Public Member Functions | Data Fields | Protected Attributes | Private Member Functions | Private Attributes | Static Private Attributes
GravityView_Settings Class Reference

GravityView Settings class (get/set/license validation) using the Gravity Forms App framework. More...

Inheritance diagram for GravityView_Settings:

Public Member Functions

 __construct ($prevent_multiple_instances= '')
 We're not able to set the __construct() method to private because we're extending the GFAddon class, so we fake it. More...
 
 current_user_can_any ($caps)
 Prevent uninstall tab from being shown by returning false for the uninstall capability check. More...
 
 uninstall ()
 Uninstall all traces of GravityView. More...
 
 uninstall_form ()
 Display a feedback form when the plugin is uninstalled. More...
 
 uninstall_warning_message ()
 

Static Public Member Functions

static get_instance ()
 

Data Fields

 $app_hook_suffix = 'gravityview'
 
padding __pad0__: .5em .75em
 
margin __pad1__: .1em
 
number scale label
 
font size: 1.2em
 

Protected Attributes

 $_capabilities_app_menu = 'gravityview_view_settings'
 
 $_capabilities_app_settings = 'gravityview_view_settings'
 
 $_capabilities_uninstall = 'gravityview_uninstall'
 
 $_min_gravityforms_version = GV_MIN_GF_VERSION
 
 $_short_title = 'GravityView'
 
 $_slug = 'gravityview'
 
 $_title = 'GravityView'
 
 $_version = GravityView_Plugin::version
 

Private Member Functions

 get_uninstall_reasons ()
 Get an array of reasons why the plugin might be uninstalled. More...
 

Private Attributes

 $License_Handler
 

Static Private Attributes

static $instance
 

Detailed Description

GravityView Settings class (get/set/license validation) using the Gravity Forms App framework.

Since
1.7.4 (Before, used the Redux Framework)

Definition at line 11 of file class-gravityview-settings.php.

Constructor & Destructor Documentation

__construct (   $prevent_multiple_instances = '')

We're not able to set the __construct() method to private because we're extending the GFAddon class, so we fake it.

When called using new GravityView_Settings, it will return get_instance() instead. We pass 'get_instance' as a test string.

See also
get_instance()
Parameters
string$prevent_multiple_instances

Definition at line 76 of file class-gravityview-settings.php.

Member Function Documentation

current_user_can_any (   $caps)

Prevent uninstall tab from being shown by returning false for the uninstall capability check.

Otherwise:

Parameters
array | string$caps
Returns
bool

Definition at line 107 of file class-gravityview-settings.php.

References GVCommon\has_cap().

Referenced by app_settings_uninstall_tab().

static get_instance ( )
static
get_uninstall_reasons ( )
private

Get an array of reasons why the plugin might be uninstalled.

Since
1.17.5
Returns
array Array of reasons with the label and followup questions for each uninstall reason

Definition at line 156 of file class-gravityview-settings.php.

References $reasons.

uninstall ( )

Uninstall all traces of GravityView.

Note: method is public because parent method is public

Returns
bool

Set the path so that Gravity Forms can de-activate GravityView

See also
GFAddOn::uninstall_addon deactivate_plugins()

Definition at line 131 of file class-gravityview-settings.php.

References GRAVITYVIEW_DIR, and GRAVITYVIEW_FILE.

uninstall_form ( )

Display a feedback form when the plugin is uninstalled.

Since
1.17.5
Returns
string HTML of the uninstallation form

Definition at line 189 of file class-gravityview-settings.php.

Referenced by app_settings_tab().

uninstall_warning_message ( )

Definition at line 116 of file class-gravityview-settings.php.

Referenced by app_settings_uninstall_tab().

Field Documentation

$_capabilities_app_menu = 'gravityview_view_settings'
protected

Definition at line 50 of file class-gravityview-settings.php.

$_capabilities_app_settings = 'gravityview_view_settings'
protected

Definition at line 45 of file class-gravityview-settings.php.

$_capabilities_uninstall = 'gravityview_uninstall'
protected

Definition at line 40 of file class-gravityview-settings.php.

$_min_gravityforms_version = GV_MIN_GF_VERSION
protected

Definition at line 20 of file class-gravityview-settings.php.

$_short_title = 'GravityView'
protected

Definition at line 30 of file class-gravityview-settings.php.

$_slug = 'gravityview'
protected

Definition at line 35 of file class-gravityview-settings.php.

$_title = 'GravityView'
protected

Definition at line 25 of file class-gravityview-settings.php.

$_version = GravityView_Plugin::version
protected

Definition at line 16 of file class-gravityview-settings.php.

$app_hook_suffix = 'gravityview'

Definition at line 55 of file class-gravityview-settings.php.

$instance
staticprivate

Definition at line 65 of file class-gravityview-settings.php.

$License_Handler
private

Definition at line 60 of file class-gravityview-settings.php.

Referenced by get_license_handler().

padding __pad0__

Definition at line 200 of file class-gravityview-settings.php.

margin __pad1__

Definition at line 201 of file class-gravityview-settings.php.

number scale label
Initial value:
{
border: 1px solid #cccccc

Definition at line 198 of file class-gravityview-settings.php.

font size

Definition at line 204 of file class-gravityview-settings.php.


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