Core
in package
Uses
UtilsProvider
Core for real-product-manager-wp-client. It is only initialized once and holds all available initiators.
Table of Contents
Constants
- GLOBAL_INITIATORS = 'real_product_manager_wp_client_initiators'
- The initiators need to be declared globally, due to the fact the class instance itself is scoped and can exist more than once.
Properties
Methods
- addInitiator() : mixed
- Add an initiator.
- getAssets() : mixed
- Get assets handler.
- getInitiator() : mixed
- Get initiator by slug.
- getInitiators() : array<string|int, AbstractInitiator>
- Get all initiators.
- getInstance() : Core
- Get singleton core class.
- getPluginConstantPrefix() : string
- Get the prefix of this package so we can utils package natively.
- setupConstants() : mixed
- Make sure the RPM_WP_CLIENT constants are available.
- __construct() : mixed
- C'tor.
Constants
GLOBAL_INITIATORS
The initiators need to be declared globally, due to the fact the class instance itself is scoped and can exist more than once.
public
mixed
GLOBAL_INITIATORS
= 'real_product_manager_wp_client_initiators'
Properties
$assets
Assets handler.
private
Assets
$assets
$me
Singleton instance.
private
static mixed
$me
Methods
addInitiator()
Add an initiator.
public
addInitiator(AbstractInitiator $initiator) : mixed
Parameters
- $initiator : AbstractInitiator
Tags
getAssets()
Get assets handler.
public
getAssets() : mixed
Tags
getInitiator()
Get initiator by slug.
public
getInitiator(string $slug) : mixed
Parameters
- $slug : string
Tags
getInitiators()
Get all initiators.
public
getInitiators() : array<string|int, AbstractInitiator>
Tags
Return values
array<string|int, AbstractInitiator>getInstance()
Get singleton core class.
public
static getInstance() : Core
Tags
Return values
CoregetPluginConstantPrefix()
Get the prefix of this package so we can utils package natively.
public
getPluginConstantPrefix() : string
Return values
stringsetupConstants()
Make sure the RPM_WP_CLIENT constants are available.
public
static setupConstants() : mixed
__construct()
C'tor.
private
__construct() : mixed