Documentation

CrossSellingHandler
in package
Uses UtilsProvider

Cross-selling handler.

Table of Contents

Constants

ALL_VERSIONS  = [ // Pro versions 'real-thumbnail-generator/index.php', \DevOwl\RealUtils\cross\CrossRealCategoryLibrary::FILE_PRO, \DevOwl\RealUtils\cross\CrossRealPhysicalMedia::FILE_PRO, \DevOwl\RealUtils\cross\CrossRealMediaLibrary::FILE_PRO, \DevOwl\RealUtils\cross\CrossRealCookieBanner::FILE_PRO, // Lite versions 'real-thumbnail-generator-lite/index.php', \DevOwl\RealUtils\cross\CrossRealCategoryLibrary::FILE_LITE, \DevOwl\RealUtils\cross\CrossRealMediaLibrary::FILE_LITE, \DevOwl\RealUtils\cross\CrossRealCookieBanner::FILE_LITE, ]
PRO_VERSIONS  = ['real-thumbnail-generator/index.php', \DevOwl\RealUtils\cross\CrossRealCategoryLibrary::FILE_PRO, \DevOwl\RealUtils\cross\CrossRealPhysicalMedia::FILE_PRO, \DevOwl\RealUtils\cross\CrossRealMediaLibrary::FILE_PRO, \DevOwl\RealUtils\cross\CrossRealCookieBanner::FILE_PRO]

Methods

canBeShown()  : mixed
Check if cross-selling pointers can be shown.
getAvailable()  : mixed
Localize frontend only when needed.
getOurPluginsInstalled()  : mixed
Get an array of our installed plugins.
getPluginConstantPrefix()  : string
Get the prefix of this package so we can utils package natively.
instance()  : mixed
New instance.
isAnyProInstalled()  : mixed
Check if any pro version of us is installed.
isDeactivatedThroughEdgeCase()  : mixed
Check if cross-selling is deactivated through a given Edge case. E. g.
isInstalled()  : mixed
Check if a plugin is installed (not depending on active status).
setupConstants()  : mixed
Make sure the REAL_UTILS constants are available.
__construct()  : mixed
C'tor.

Constants

ALL_VERSIONS

public mixed ALL_VERSIONS = [ // Pro versions 'real-thumbnail-generator/index.php', \DevOwl\RealUtils\cross\CrossRealCategoryLibrary::FILE_PRO, \DevOwl\RealUtils\cross\CrossRealPhysicalMedia::FILE_PRO, \DevOwl\RealUtils\cross\CrossRealMediaLibrary::FILE_PRO, \DevOwl\RealUtils\cross\CrossRealCookieBanner::FILE_PRO, // Lite versions 'real-thumbnail-generator-lite/index.php', \DevOwl\RealUtils\cross\CrossRealCategoryLibrary::FILE_LITE, \DevOwl\RealUtils\cross\CrossRealMediaLibrary::FILE_LITE, \DevOwl\RealUtils\cross\CrossRealCookieBanner::FILE_LITE, ]

PRO_VERSIONS

public mixed PRO_VERSIONS = ['real-thumbnail-generator/index.php', \DevOwl\RealUtils\cross\CrossRealCategoryLibrary::FILE_PRO, \DevOwl\RealUtils\cross\CrossRealPhysicalMedia::FILE_PRO, \DevOwl\RealUtils\cross\CrossRealMediaLibrary::FILE_PRO, \DevOwl\RealUtils\cross\CrossRealCookieBanner::FILE_PRO]

Methods

canBeShown()

Check if cross-selling pointers can be shown.

public canBeShown() : mixed
Tags
codeCoverageIgnore

getOurPluginsInstalled()

Get an array of our installed plugins.

public getOurPluginsInstalled() : mixed

getPluginConstantPrefix()

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

public getPluginConstantPrefix() : string
Return values
string

isAnyProInstalled()

Check if any pro version of us is installed.

public isAnyProInstalled() : mixed

isDeactivatedThroughEdgeCase()

Check if cross-selling is deactivated through a given Edge case. E. g.

public isDeactivatedThroughEdgeCase() : mixed

do not show any cross-sellings when "Real Cookie Banner" is the only plugin active.

isInstalled()

Check if a plugin is installed (not depending on active status).

public isInstalled(string $file[, bool $returnFile = false ]) : mixed
Parameters
$file : string

Main plugin file, e. g. real-media-library/index.php

$returnFile : bool = false

setupConstants()

Make sure the REAL_UTILS constants are available.

public static setupConstants() : mixed

        
On this page

Search results