Documentation

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

$crossSelling

Cross selling implementations (key valued array).

private array<string, AbstractCrossSelling> $crossSelling = []

$me

Singleton instance.

private static mixed $me

Methods

getAssets()

Get assets handler.

public getAssets() : mixed
Tags
codeCoverageIgnore

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
codeCoverageIgnore

getCrossSelling()

Get rating handler.

public getCrossSelling(string $slug) : mixed
Parameters
$slug : string
Tags
codeCoverageIgnore

getCrossSellingHandler()

Get cross-selling handler.

public getCrossSellingHandler() : mixed
Tags
codeCoverageIgnore

getCrossSellings()

Get rating handler.

public getCrossSellings() : mixed
Tags
codeCoverageIgnore

getInitiator()

Get initiator by slug.

public getInitiator(string $slug) : mixed
Parameters
$slug : string
Tags
codeCoverageIgnore

getInstance()

Get singleton core class.

public static getInstance() : Core
Tags
codeCoverageIgnore
Return values
Core

getPluginConstantPrefix()

Get the prefix of this package so we can utils package natively.

public getPluginConstantPrefix() : string
Return values
string

getRatingHandler()

Get rating handler.

public getRatingHandler() : mixed
Tags
codeCoverageIgnore

setupConstants()

Make sure the REAL_UTILS constants are available.

public static setupConstants() : mixed

__construct()

C'tor.

private __construct() : mixed

        
On this page

Search results