Documentation

AbstractCrossSelling
in package
Uses UtilsProvider

AbstractYes

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.

Table of Contents

Constants

NEXT_POPUP  = '+7 days'
NEXT_POPUP_IN_PRO  = '+14 days'

Methods

actionCounter()  : int
Get or update the action counter for a given action.
dismiss()  : bool
Dismiss a cross popup for a product.
forceHide()  : bool
Get or update the hidden action status for a given action. This can not be undone if once set.
getAssetsUrl()  : mixed
Get the external URL to assets.
getMeta()  : string
Get available popup types. See CrossRealMediaLibrary as example implementation.
getPluginConstantPrefix()  : string
Get the prefix of this package so we can utils package natively.
getSlug()  : string
Get the slug for this plugin.
setupConstants()  : mixed
Make sure the REAL_UTILS constants are available.
skip()  : bool
Check if the plugin is already installed so the ad can be skipped.

Constants

Methods

actionCounter()

Get or update the action counter for a given action.

public actionCounter(string $action[, bool $increment = false ]) : int
Parameters
$action : string
$increment : bool = false
Return values
int

dismiss()

Dismiss a cross popup for a product.

public dismiss(string $action, bool $force) : bool
Parameters
$action : string
$force : bool
Return values
bool

forceHide()

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

public forceHide(string $action[, bool $force = false ]) : bool
Parameters
$action : string
$force : bool = false
Return values
bool

getAssetsUrl()

Get the external URL to assets.

public getAssetsUrl([string $path = '' ]) : mixed
Parameters
$path : string = ''

getMeta()

Get available popup types. See CrossRealMediaLibrary as example implementation.

public abstract getMeta() : string
Return values
string

getPluginConstantPrefix()

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

public getPluginConstantPrefix() : string
Return values
string

getSlug()

Get the slug for this plugin.

public abstract getSlug() : string
Return values
string

setupConstants()

Make sure the REAL_UTILS constants are available.

public static setupConstants() : mixed

skip()

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

public abstract skip() : bool
Return values
bool

        
On this page

Search results