\DevOwl\RealUtils\crossCrossRealMediaLibrary

Cross-selling for Real Media Library.

Do not use any constants as they are not available when the plugin is not active.

Summary

Methods
Properties
Constants
getSlug()
getMeta()
skip()
getAssetsUrl()
actionCounter()
forceHide()
dismiss()
getPluginConstantPrefix()
setupConstants()
No public properties found
NEXT_POPUP
NEXT_POPUP_IN_PRO
SLUG
PRO_LINK
FILE_LITE
FILE_PRO
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

NEXT_POPUP

NEXT_POPUP ='+7 days'

NEXT_POPUP_IN_PRO

NEXT_POPUP_IN_PRO ='+14 days'

SLUG

SLUG ='real-media-library'

FILE_LITE

FILE_LITE ='real-media-library-lite/index.php'

FILE_PRO

FILE_PRO ='real-media-library/index.php'

Methods

getSlug()

getSlug(): string

Documented in AbstractCrossSelling.

Returns

string

getMeta()

getMeta(): string

Documented in AbstractCrossSelling.

Returns

string

skip()

skip(): boolean

Documented in AbstractCrossSelling.

Returns

boolean

getAssetsUrl()

getAssetsUrl(string  $path = '')

Get the external URL to assets.

Parameters

string $path

actionCounter()

actionCounter(string  $action,boolean  $increment = false): integer

Get or update the action counter for a given action.

Parameters

string $action
boolean $increment

Returns

integer

forceHide()

forceHide(string  $action,boolean  $force = false): boolean

Get or update the hidden action status for a given action. This can not be undone if once set.

Parameters

string $action
boolean $force

Returns

boolean

dismiss()

dismiss(string  $action,boolean  $force): boolean

Dismiss a cross popup for a product.

Parameters

string $action
boolean $force

Returns

boolean

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.