\DevOwl\RealUtilsCore

Core for real-utils. It is only initialized once and holds all available initiators.

Summary

Methods
Properties
Constants
getPluginConstantPrefix()
setupConstants()
addInitiator()
getBaseAssetsUrl()
getInitiator()
getInitiators()
getAssets()
getRatingHandler()
getCrossSellingHandler()
getCrossSelling()
getCrossSellings()
getInstance()
No public properties found
GLOBAL_INITIATORS
No protected methods found
No protected properties found
N/A
__construct()
$me
$assets
$ratingHandler
$crossSellingHandler
$crossSelling
N/A

Constants

GLOBAL_INITIATORS

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

$me

$me :

Singleton instance.

Type

$crossSelling

$crossSelling :\DevOwl\RealUtils\array<string,AbstractCrossSelling>

Cross selling implementations (key valued array).

Type

\DevOwl\RealUtils\array

Methods

getPluginConstantPrefix()

getPluginConstantPrefix(): string

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

Returns

string

setupConstants()

setupConstants()

Make sure the REAL_UTILS constants are available.

getBaseAssetsUrl()

getBaseAssetsUrl(string  $path = '')

Return the base URL to assets. Please ensure a trailing slash, if you override it!

Parameters

string $path

getInitiator()

getInitiator(string  $slug)

Get initiator by slug.

Parameters

string $slug

getAssets()

getAssets()

Get assets handler.

getRatingHandler()

getRatingHandler()

Get rating handler.

getCrossSellingHandler()

getCrossSellingHandler()

Get cross-selling handler.

getCrossSelling()

getCrossSelling(string  $slug)

Get rating handler.

Parameters

string $slug

getCrossSellings()

getCrossSellings()

Get rating handler.

getInstance()

getInstance(): \DevOwl\RealUtils\Core

Get singleton core class.

Returns

\DevOwl\RealUtils\Core

__construct()

__construct()

C'tor.