Core
    
            
            in package
            
        
    
    
            
            Uses
                            UtilsProvider                    
    
Core for real-utils. It is only initialized once and holds all available initiators.
Table of Contents
Constants
- GLOBAL_INITIATORS = 'real_utils_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
- $assets : Assets
- Assets handler.
- $crossSelling : array<string, AbstractCrossSelling>
- Cross selling implementations (key valued array).
- $crossSellingHandler : CrossSellingHandler
- Cross-selling handler.
- $me : mixed
- Singleton instance.
- $ratingHandler : RatingHandler
- Rating handler.
Methods
- addInitiator() : mixed
- Add an initiator.
- getAssets() : mixed
- Get assets handler.
- getBaseAssetsUrl() : mixed
- Return the base URL to assets. Please ensure a trailing slash, if you override it!
- getCrossSelling() : mixed
- Get rating handler.
- getCrossSellingHandler() : mixed
- Get cross-selling handler.
- getCrossSellings() : mixed
- Get rating 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.
- getRatingHandler() : mixed
- Get rating handler.
- setupConstants() : mixed
- Make sure the REAL_UTILS 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_utils_initiators'
    
    
    
Properties
$assets
Assets handler.
    private
        Assets
    $assets
    
    
    
    
$crossSelling
Cross selling implementations (key valued array).
    private
        array<string, AbstractCrossSelling>
    $crossSelling
     = []
    
    
    
$crossSellingHandler
Cross-selling handler.
    private
        CrossSellingHandler
    $crossSellingHandler
    
    
    
    
$me
Singleton instance.
    private
    static    mixed
    $me
    
    
    
    
$ratingHandler
Rating handler.
    private
        RatingHandler
    $ratingHandler
    
    
    
    
Methods
addInitiator()
Add an initiator.
    public
                    addInitiator(AbstractInitiator $initiator) : mixed
    Parameters
- $initiator : AbstractInitiator
Tags
getAssets()
Get assets handler.
    public
                    getAssets() : mixed
    Tags
getBaseAssetsUrl()
Return the base URL to assets. Please ensure a trailing slash, if you override it!
    public
                    getBaseAssetsUrl([string $path = '' ]) : mixed
    Parameters
- $path : string = ''
Tags
getCrossSelling()
Get rating handler.
    public
                    getCrossSelling(string $slug) : mixed
    Parameters
- $slug : string
Tags
getCrossSellingHandler()
Get cross-selling handler.
    public
                    getCrossSellingHandler() : mixed
    Tags
getCrossSellings()
Get rating handler.
    public
                    getCrossSellings() : 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
stringgetRatingHandler()
Get rating handler.
    public
                    getRatingHandler() : mixed
    Tags
setupConstants()
Make sure the REAL_UTILS constants are available.
    public
            static        setupConstants() : mixed
    __construct()
C'tor.
    private
                    __construct() : mixed