Plugin extends Premium_Plugin
The main plugin class. Responsible for setting up to core plugin services.
Tags
Table of Contents
- ITEM_ID = 392496
- META_PREFIX = 'wcf_'
- NAME = 'WooCommerce Product Filters'
- $temporary_orm : EntityManager|null
- Temporary ORM instance used during installation when services are not available.
- __construct() : mixed
- Constructs and initalizes the main plugin class.
- add_services() : void
- Get list of services
- cache() : Cache
- Get the cache service.
- clear_temporary_orm() : void
- Clear the temporary ORM instance.
- database() : Database
- Get the database service.
- display() : Display
- Get the display service.
- indexer() : Indexer
- Get the indexer service.
- orm() : EntityManager
- Get the ORM service.
- queue() : Queue
- Get the WC Queue service.
- register() : void
- Register the plugin services and hooks.
- register_widgets() : void
- Register the plugin widgets.
- set_temporary_orm() : void
- Set a temporary ORM instance to use during installation.
- tracker() : Tracker
- Get the tracker service.
Constants
ITEM_ID
public
mixed
ITEM_ID
= 392496
META_PREFIX
public
mixed
META_PREFIX
= 'wcf_'
NAME
public
mixed
NAME
= 'WooCommerce Product Filters'
Properties
$temporary_orm
Temporary ORM instance used during installation when services are not available.
private
EntityManager|null
$temporary_orm
= null
Methods
__construct()
Constructs and initalizes the main plugin class.
public
__construct([string $file = null ][, string $version = '1.0.0' ]) : mixed
Parameters
- $file : string = null
-
The main plugin file.
- $version : string = '1.0.0'
-
The current plugin version.
Return values
mixed —add_services()
Get list of services
public
add_services() : void
Return values
void —cache()
Get the cache service.
public
cache() : Cache
Return values
Cache —clear_temporary_orm()
Clear the temporary ORM instance.
public
clear_temporary_orm() : void
Return values
void —database()
Get the database service.
public
database() : Database
Return values
Database —display()
Get the display service.
public
display() : Display
Return values
Display —indexer()
Get the indexer service.
public
indexer() : Indexer
Return values
Indexer —orm()
Get the ORM service.
public
orm() : EntityManager
Return values
EntityManager —queue()
Get the WC Queue service.
public
queue() : Queue
Return values
Queue —register()
Register the plugin services and hooks.
public
register() : void
Extends the parent registration and adds widget initialization.
Return values
void —register_widgets()
Register the plugin widgets.
public
register_widgets() : void
Registers the filter group widget if the plugin license is valid.
Return values
void —set_temporary_orm()
Set a temporary ORM instance to use during installation.
public
set_temporary_orm(EntityManager $orm) : void
Parameters
- $orm : EntityManager
Return values
void —tracker()
Get the tracker service.
public
tracker() : Tracker