\DevOwl\RealUtils\crossAbstractCrossSelling

An abstract cross-selling implementation which can be used for each pro product of devowl.io.

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

Summary

Methods
Properties
Constants
getPluginConstantPrefix()
setupConstants()
getSlug()
getMeta()
skip()
getAssetsUrl()
actionCounter()
forceHide()
dismiss()
No public properties found
NEXT_POPUP
NEXT_POPUP_IN_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'

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.

getSlug()

getSlug(): string

Get the slug for this plugin.

Returns

string

getMeta()

getMeta(): string

Get available popup types. See CrossRealMediaLibrary as example implementation.

Returns

string

skip()

skip(): boolean

Check if the plugin is already installed so the ad can be skipped.

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