GravityView  1.22.6
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 Member Functions | Static Private Attributes
GravityView_Plugin Class Reference

The future is here and now... More...

Public Member Functions

 frontend_actions ( $force=false)
 Function to launch frontend objects. More...
 
 include_files ()
 Include global plugin files. More...
 
 load_plugin_textdomain ()
 Loads the plugin's translated strings. More...
 

Static Public Member Functions

static activate ()
 Plugin activate function. More...
 
static deactivate ()
 Plugin deactivate function. More...
 
static get_default_widget_areas ()
 helper function to define the default widget areas More...
 
static getInstance ()
 Singleton instance. More...
 
static include_extension_framework ()
 Include the extension class. More...
 
static include_widget_class ()
 Load GravityView_Widget class. More...
 
static is_admin ()
 Check if is_admin(), and make sure not DOING_AJAX. More...
 
static is_network_activated ()
 Check whether GravityView is network activated. More...
 
static log_debug ( $message, $data=null)
 DEBUG. More...
 
static log_error ( $message, $data=null)
 Logs messages using Gravity Forms logging add-on. More...
 

Data Fields

const version = '1.22.6'
 

Private Member Functions

 __construct ()
 
 add_hooks ()
 Add hooks to set up the plugin. More...
 

Static Private Member Functions

static require_files ()
 Include files that are required by the plugin. More...
 

Static Private Attributes

static $instance
 

Detailed Description

The future is here and now...

perhaps. GravityView_Plugin main class.

Definition at line 80 of file gravityview.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )
private

Member Function Documentation

◆ activate()

static activate ( )
static

Plugin activate function.

public

Returns
void

Do not allow activation if PHP version is lower than 5.3.

Die without activating. Sorry.

Deprecate in favor of ::register_post_type.

Deprecate in favor of ::add_rewrite_endpoint.

Deprecate. Handled in ::activate now.

Definition at line 215 of file gravityview.php.

References GravityView_Roles_Capabilities\get_instance(), GRAVITYVIEW_FILE, GV_FUTURE_MIN_PHP_VERSION, GravityView_Post_Types\init_post_types(), and GravityView_Post_Types\init_rewrite().

◆ add_hooks()

add_hooks ( )
private

Add hooks to set up the plugin.

Since
1.12

Definition at line 135 of file gravityview.php.

Referenced by __construct().

◆ deactivate()

static deactivate ( )
static

Plugin deactivate function.

public

Deprecated:
Returns
void

Definition at line 276 of file gravityview.php.

◆ frontend_actions()

frontend_actions (   $force = false)

Function to launch frontend objects.

Since
1.17 Added $force param

public

Parameters
bool$forceWhether to force loading, even if GravityView_Plugin::is_admin() returns true
Returns
void

When an entry is created, check if we need to update the custom slug meta todo: move this to its own class..

Runs Actions:
gravityview_include_frontend_actions Triggered after all GravityView frontend files are loaded

Nice place to insert extensions' frontend stuff

Definition at line 357 of file gravityview.php.

References GRAVITYVIEW_DIR.

◆ get_default_widget_areas()

static get_default_widget_areas ( )
static

helper function to define the default widget areas

Returns
array definition for default widget areas
Runs Filter:
gravityview_widget_active_areas Array of zones available for widgets to be dropped into
Parameters
array$default_areasDefinition for default widget areas

Definition at line 387 of file gravityview.php.

Referenced by GravityView_Ajax\get_preset_fields_config(), GravityView_View\render_widget_hooks(), and GravityView_Admin_Views\render_widgets_active_areas().

◆ getInstance()

static getInstance ( )
static

Singleton instance.

Returns
GravityView_Plugin GravityView_Plugin object

Definition at line 91 of file gravityview.php.

◆ include_extension_framework()

static include_extension_framework ( )
static

Include the extension class.

Since
1.5.1
Returns
void

Definition at line 288 of file gravityview.php.

References GRAVITYVIEW_DIR.

◆ include_files()

include_files ( )

Include global plugin files.

Since
1.12
Since
1.8.4

Definition at line 148 of file gravityview.php.

References GRAVITYVIEW_DIR.

Referenced by __construct().

◆ include_widget_class()

static include_widget_class ( )
static

Load GravityView_Widget class.

Since
1.7.5.1

Definition at line 299 of file gravityview.php.

References GRAVITYVIEW_DIR.

◆ is_admin()

static is_admin ( )
static

Check if is_admin(), and make sure not DOING_AJAX.

Since
1.7.5
Deprecated:
See also
::is_admin via gravityview()->request->is_admin()
Returns
bool

Definition at line 335 of file gravityview.php.

References gravityview().

Referenced by GravityView_Widget\add_shortcode(), GravityView_frontend\parse_content(), GravityView_Entry_Link_Shortcode\shortcode(), and GVLogic_Shortcode\shortcode().

◆ is_network_activated()

static is_network_activated ( )
static

Check whether GravityView is network activated.

Since
1.7.6
Returns
bool

Definition at line 203 of file gravityview.php.

Referenced by add_network_menu(), GravityView_Admin_Notices\check_show_multisite_notices(), and create_app_menu().

◆ load_plugin_textdomain()

load_plugin_textdomain ( )

Loads the plugin's translated strings.

public

Returns
void

Definition at line 310 of file gravityview.php.

◆ log_debug()

static log_debug (   $message,
  $data = null 
)
static

DEBUG.

Logs messages using Gravity Forms logging add-on

Parameters
string$messagelog message
mixed$dataAdditional data to display
Returns
void
Runs Actions:
gravityview_log_debug Log a debug message that shows up in the Gravity Forms Logging Addon and also the Debug Bar plugin output
Parameters
string$messageMessage to display
mixed$dataSupporting data to print alongside it

Definition at line 408 of file gravityview.php.

◆ log_error()

static log_error (   $message,
  $data = null 
)
static

Logs messages using Gravity Forms logging add-on.

Parameters
string$messagelog message
Returns
void
Runs Actions:
gravityview_log_error Log an error message that shows up in the Gravity Forms Logging Addon and also the Debug Bar plugin output
Parameters
string$messageError message to display
mixed$dataSupporting data to print alongside it

Definition at line 422 of file gravityview.php.

◆ require_files()

static require_files ( )
staticprivate

Include files that are required by the plugin.

Since
1.18

Definition at line 117 of file gravityview.php.

References GRAVITYVIEW_DIR.

Field Documentation

◆ $instance

$instance
staticprivate

Definition at line 84 of file gravityview.php.

◆ version

const version = '1.22.6'

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