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 | Private Member Functions | Static Private Attributes
Plugin Class Reference

The GravityView WordPress plugin class. More...

Public Member Functions

 activate ()
 Plugin activation function. More...
 
 deactivate ()
 Plugin deactivation function. More...
 
 dir ($path= '')
 Retrieve an absolute path within the Gravity Forms plugin directory. More...
 
 is_compatible ()
 Is everything compatible with this version of GravityView? More...
 
 is_compatible_gravityforms ()
 Is this version of GravityView compatible with the current version of Gravity Forms? More...
 
 is_compatible_php ()
 Is this version of GravityView compatible with the current version of PHP? More...
 
 is_compatible_wordpress ()
 Is this version of GravityView compatible with the current version of WordPress? More...
 
 url ($path= '/')
 Retrieve a URL within the Gravity Forms plugin directory. More...
 

Static Public Member Functions

static get ()
 Get the global instance of . More...
 

Data Fields

 $version = 'future'
 

Private Member Functions

 __clone ()
 
 __construct ()
 Bootstrap. More...
 
 __wakeup ()
 
 get_gravityforms_version ()
 Retrieve the current Gravity Forms version. More...
 
 get_php_version ()
 Retrieve the current PHP version. More...
 
 get_wordpress_version ()
 Retrieve the current WordPress version. More...
 
 init ()
 Initialize all plugin hooks, constants, settings, etc. More...
 

Static Private Attributes

static $__instance = null
 
static $future_min_gf_version = false
 
static $future_min_php_version = false
 
static $min_gf_version = '1.9.14'
 
static $min_php_version = '5.3.0'
 
static $min_wp_version = '4.0'
 

Detailed Description

The GravityView WordPress plugin class.

Contains functionality related to GravityView being a WordPress plugin and doing WordPress pluginy things.

Accessible via gravityview()->plugin

Definition at line 16 of file class-gv-plugin.php.

Constructor & Destructor Documentation

__construct ( )
private

Bootstrap.

Returns
void

Definition at line 81 of file class-gv-plugin.php.

Member Function Documentation

__clone ( )
private

Definition at line 246 of file class-gv-plugin.php.

__wakeup ( )
private

Definition at line 248 of file class-gv-plugin.php.

activate ( )

Plugin activation function.

Definition at line 109 of file class-gv-plugin.php.

References GravityView_Plugin\version.

deactivate ( )

Plugin deactivation function.

Definition at line 121 of file class-gv-plugin.php.

dir (   $path = '')

Retrieve an absolute path within the Gravity Forms plugin directory.

Since
future
Parameters
string$pathOptional. Append this extra path component.
Returns
string The absolute path to the plugin directory.

Definition at line 134 of file class-gv-plugin.php.

References GRAVITYVIEW_DIR.

static get ( )
static

Get the global instance of .

Returns
The global instance of GravityView Plugin.

Definition at line 70 of file class-gv-plugin.php.

get_gravityforms_version ( )
private

Retrieve the current Gravity Forms version.

Overridable with GRAVITYVIEW_TESTS_GF_VERSION_OVERRIDE during testing.

Exceptions

Definition at line 238 of file class-gv-plugin.php.

get_php_version ( )
private

Retrieve the current PHP version.

Overridable with GRAVITYVIEW_TESTS_PHP_VERSION_OVERRIDE during testing.

Returns
string The version of PHP.

Definition at line 213 of file class-gv-plugin.php.

get_wordpress_version ( )
private

Retrieve the current WordPress version.

Overridable with GRAVITYVIEW_TESTS_WP_VERSION_OVERRIDE during testing.

Returns
string The version of WordPress.

Definition at line 225 of file class-gv-plugin.php.

init ( )
private

Initialize all plugin hooks, constants, settings, etc.

Returns
void

Stop all further functionality from loading if the WordPress plugin is incompatible with the current environment.

Register hooks that are fired when the plugin is activated and deactivated.

Definition at line 90 of file class-gv-plugin.php.

is_compatible ( )

Is everything compatible with this version of GravityView?

Since
future
Returns
bool

Definition at line 159 of file class-gv-plugin.php.

is_compatible_gravityforms ( )

Is this version of GravityView compatible with the current version of Gravity Forms?

Since
future
Returns
bool true if compatible, false otherwise (or not active/installed).

Definition at line 198 of file class-gv-plugin.php.

is_compatible_php ( )

Is this version of GravityView compatible with the current version of PHP?

Since
future
Returns
bool true if compatible, false otherwise.

Definition at line 174 of file class-gv-plugin.php.

is_compatible_wordpress ( )

Is this version of GravityView compatible with the current version of WordPress?

Since
future
Returns
bool true if compatible, false otherwise.

Definition at line 186 of file class-gv-plugin.php.

url (   $path = '/')

Retrieve a URL within the Gravity Forms plugin directory.

Since
future
Parameters
string$pathOptional. Extra path appended to the URL.
Returns
The URL to this plugin, with trailing slash.

Definition at line 147 of file class-gv-plugin.php.

Field Documentation

$__instance = null
staticprivate

Definition at line 63 of file class-gv-plugin.php.

$future_min_gf_version = false
staticprivate

Definition at line 58 of file class-gv-plugin.php.

$future_min_php_version = false
staticprivate

Definition at line 51 of file class-gv-plugin.php.

$min_gf_version = '1.9.14'
staticprivate

Definition at line 37 of file class-gv-plugin.php.

$min_php_version = '5.3.0'
staticprivate

Definition at line 44 of file class-gv-plugin.php.

$min_wp_version = '4.0'
staticprivate

Definition at line 30 of file class-gv-plugin.php.

$version = 'future'

Definition at line 23 of file class-gv-plugin.php.


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