![]() |
GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
Public Member Functions | |
__call ( $name, array $arguments=[]) | |
Magic method to get private class instances. More... | |
configure_settings () | |
Configures general GravityKit settings. More... | |
display_foundation_information () | |
Outputs an HTML comment with the Foundation version and the plugin that loaded it. More... | |
get_registered_plugins () | |
Returns a list of plugins that have instantiated Foundation. More... | |
init () | |
Initializes Foundation. More... | |
inline_scripts_and_styles () | |
Inlines scripts/styles. More... | |
process_ajax_request () | |
Processes AJAX request and routes it to the appropriate endpoint. More... | |
set_registered_plugins ( $plugins) | |
Sets a list of plugins that have instantiated Foundation. More... | |
Static Public Member Functions | |
static | __callStatic ( $name, array $arguments=[]) |
Magic method to get private class instances as static methods. More... | |
static | get_ajax_params ( $router) |
Registers the GravityKit admin menu. More... | |
static | get_instance () |
Returns class instance. More... | |
static | get_request_unique_string () |
Returns a unique value that was generated for this request. More... | |
static | register ( $plugin_file) |
Registers class instance. More... | |
Data Fields | |
$_registered_plugins = [] | |
const | AJAX_ROUTER = 'core' |
const | ID = 'gk_foundation' |
const | INIT_PRIORITY = 100 |
const | VERSION = '1.0.8' |
const | WP_AJAX_ACTION = 'gk_foundation_do_ajax' |
Private Member Functions | |
__construct ( $plugin_file) | |
Class constructor. More... | |
Private Attributes | |
$_components = [] | |
$_plugin_activation_handler | |
Static Private Attributes | |
static | $_instance |
static | $_request_unique_string |
|
private |
Class constructor.
string | $plugin_file | Absolute path to the main plugin file. |
Controls whether the Foundation standalone plugin instance should always be returned regardless of the version.
bool | $force_standalone_instance | Default: true. |
Definition at line 90 of file Core.php.
References Arr\get().
__call | ( | $name, | |
array | $arguments = [] |
||
) |
Magic method to get private class instances.
string | $name | Component/class name. |
array | $arguments | Optional and not used. |
Definition at line 642 of file Core.php.
References Core\$_plugin_activation_handler, and $name.
|
static |
configure_settings | ( | ) |
Configures general GravityKit settings.
Modifies the GravityKit general settings object.
array | $all_settings | GravityKit general settings. |
Definition at line 275 of file Core.php.
References Arr\get(), and GV_PLUGIN_VERSION.
Referenced by Core\init().
display_foundation_information | ( | ) |
Outputs an HTML comment with the Foundation version and the plugin that loaded it.
Controls the display of HTML comment with Foundation information.
bool | $display_foundation_information | Whether to display the information. |
Definition at line 704 of file Core.php.
References Arr\get().
|
static |
Registers the GravityKit admin menu.
string | $router | AJAX router that will be handling the request. |
|
static |
Returns class instance.
Definition at line 182 of file Core.php.
Referenced by GravityForms\modify_system_report().
get_registered_plugins | ( | ) |
Returns a list of plugins that have instantiated Foundation.
Definition at line 193 of file Core.php.
References Core\$_registered_plugins.
|
static |
Returns a unique value that was generated for this request.
This value can be used, among other purposes, as a random initialization vector for encryption operations performed during the request (e.g., encrypting a license key in various places will result in the same encrypted value).
Definition at line 693 of file Core.php.
Referenced by ProductManager\ajax_get_products_data(), and LicenseManager\modify_license_data_for_frontend_output().
init | ( | ) |
Initializes Foundation.
Fires when the class has finished initializing.
$this |
Definition at line 217 of file Core.php.
References Core\configure_settings(), GravityForms\get_instance(), HelpScout\get_instance(), AdminMenu\get_instance(), Encryption\get_instance(), and TrustedLogin\get_instance().
inline_scripts_and_styles | ( | ) |
Inlines scripts/styles.
Modifies scripts inlined by Foundation.
array | $inline_scripts | Scripts inlined by Foundation. |
Modifies styles inlined by Foundation.
array | $inline_styles | Styles inlined by Foundation. |
process_ajax_request | ( | ) |
Processes AJAX request and routes it to the appropriate endpoint.
Exception |
Modifies a list of AJAX routes that map to backend functions/class methods. $router groups routes to avoid a name collision (e.g., 'settings', 'licenses').
array[] | $routes AJAX route to function/class method map. |
Modifies AJAX payload before the route is processed.
array | $payload | |
string | $router | |
string | $route |
Modifies AJAX response after the route is processed.
mixed | Exception | $result | |
string | $router | |
string | $route | |
array | $payload |
Definition at line 487 of file Core.php.
References Arr\get().
|
static |
set_registered_plugins | ( | $plugins | ) |
Sets a list of plugins that have instantiated Foundation.
array | $plugins | Array of absolute paths to the plugin files that instantiated this class. |
|
private |
Definition at line 52 of file Core.php.
Referenced by Core\__call().
$_registered_plugins = [] |
Definition at line 61 of file Core.php.
Referenced by Core\get_registered_plugins().
const ID = 'gk_foundation' |
Definition at line 28 of file Core.php.
Referenced by LicenseManager\get_site_data().