![]() |
GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
Public Member Functions | |
add_gk_submenu_item () | |
Adds Licenses submenu to the GravityKit top-level admin menu. More... | |
ajax_get_app_data (array $payload) | |
AJAX request to get products and/or licenses data. More... | |
configure_ajax_routes (array $routes) | |
Configures AJAX routes handled by this class. More... | |
current_user_can ( $permission) | |
Checks if the current user has a certain permission. More... | |
enqueue_assets ( $page) | |
Enqueues UI assets. More... | |
get_framework_title () | |
Returns framework title used in admin menu and the UI. More... | |
get_link_to_product_search ( $product_id) | |
Returns link to product search in the licensing page. More... | |
init () | |
Initializes the License framework. More... | |
license_manager () | |
Returns License Manager class instance. More... | |
product_manager () | |
Returns Product Manager class instance. More... | |
Static Public Member Functions | |
static | get_instance () |
Returns class instance. More... | |
Data Fields | |
const | AJAX_ROUTER = 'licenses' |
const | ID = 'gk_licenses' |
Private Member Functions | |
__construct () | |
Private Attributes | |
$_license_manager | |
$_permissions | |
$_product_manager | |
Static Private Attributes | |
static | $_instance |
Definition at line 18 of file Licenses/Framework.php.
|
private |
gk/foundation/licenses/permissions
Modifies permissions to access Licenses functionality.array | $permissions | Permissions. |
Definition at line 51 of file Licenses/Framework.php.
References Framework\current_user_can().
add_gk_submenu_item | ( | ) |
Adds Licenses submenu to the GravityKit top-level admin menu.
Definition at line 229 of file Licenses/Framework.php.
References AdminMenu\add_submenu_item(), and Framework\get_framework_title().
Referenced by Framework\init().
ajax_get_app_data | ( | array | $payload | ) |
AJAX request to get products and/or licenses data.
array | $payload |
Exception |
Definition at line 174 of file Licenses/Framework.php.
References Framework\current_user_can(), ProductManager\get_instance(), and LicenseManager\get_instance().
configure_ajax_routes | ( | array | $routes | ) |
Configures AJAX routes handled by this class.
array | $routes | AJAX route to class method map. |
Definition at line 157 of file Licenses/Framework.php.
current_user_can | ( | $permission | ) |
Checks if the current user has a certain permission.
Definition at line 317 of file Licenses/Framework.php.
Referenced by Framework\__construct(), Framework\ajax_get_app_data(), Framework\get_framework_title(), and Framework\init().
enqueue_assets | ( | $page | ) |
Enqueues UI assets.
string | $page | Current page. |
Exception |
Definition at line 251 of file Licenses/Framework.php.
References Framework\get_framework_title(), and LicenseManager\get_instance().
get_framework_title | ( | ) |
Returns framework title used in admin menu and the UI.
Definition at line 208 of file Licenses/Framework.php.
References Framework\current_user_can().
Referenced by Framework\add_gk_submenu_item(), and Framework\enqueue_assets().
|
static |
Returns class instance.
Definition at line 98 of file Licenses/Framework.php.
Referenced by LicenseManager\activate_license(), LicenseManager\ajax_activate_license(), ProductManager\ajax_activate_product(), ProductManager\ajax_deactivate_product(), LicenseManager\ajax_get_licenses_data(), ProductManager\ajax_get_products_data(), ProductManager\ajax_install_product(), ProductManager\ajax_update_product(), LicenseManager\display_license_info_on_plugins_page(), ProductManager\update_submenu_badge_count(), and LicenseManager\update_submenu_badge_count().
get_link_to_product_search | ( | $product_id | ) |
Returns link to product search in the licensing page.
string | $product_id | Product ID (EDD download ID). |
Definition at line 352 of file Licenses/Framework.php.
init | ( | ) |
Initializes the License framework.
gk/foundation/licenses/initialized
Fires when the class has finished initializing.$this |
Definition at line 113 of file Licenses/Framework.php.
References Framework\add_gk_submenu_item(), Framework\current_user_can(), EDD\get_instance(), ProductManager\get_instance(), and LicenseManager\get_instance().
license_manager | ( | ) |
Returns License Manager class instance.
Definition at line 339 of file Licenses/Framework.php.
References Framework\$_license_manager.
product_manager | ( | ) |
Returns Product Manager class instance.
Definition at line 328 of file Licenses/Framework.php.
References Framework\$_product_manager.
|
staticprivate |
Definition at line 28 of file Licenses/Framework.php.
|
private |
Definition at line 35 of file Licenses/Framework.php.
Referenced by Framework\license_manager().
|
private |
Definition at line 49 of file Licenses/Framework.php.
|
private |
Definition at line 42 of file Licenses/Framework.php.
Referenced by Framework\product_manager().
const AJAX_ROUTER = 'licenses' |
Definition at line 21 of file Licenses/Framework.php.
Referenced by ProductManager\init(), and LicenseManager\init().
const ID = 'gk_licenses' |
Definition at line 19 of file Licenses/Framework.php.
Referenced by LicenseManager\get_licenses_data(), ProductManager\get_products_data(), LicenseManager\migrate_legacy_licenses(), LicenseManager\recheck_all_licenses(), LicenseManager\save_licenses_data(), ProductManager\update_submenu_badge_count(), and LicenseManager\update_submenu_badge_count().