\DevOwl\RealUtils\crossCrossSellingHandler

Cross-selling handler.

Summary

Methods
Properties
Constants
getPluginConstantPrefix()
setupConstants()
canBeShown()
isInstalled()
isAnyProInstalled()
isDeactivatedThroughEdgeCase()
getOurPluginsInstalled()
getAvailable()
instance()
No public properties found
ALL_VERSIONS
PRO_VERSIONS
No protected methods found
No protected properties found
N/A
__construct()
No private properties found
N/A

Constants

ALL_VERSIONS

ALL_VERSIONS =array('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, '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

PRO_VERSIONS =array('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

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.

canBeShown()

canBeShown()

Check if cross-selling pointers can be shown.

isInstalled()

isInstalled(string  $file,boolean  $returnFile = false)

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

Parameters

string $file

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

boolean $returnFile

isAnyProInstalled()

isAnyProInstalled()

Check if any pro version of us is installed.

isDeactivatedThroughEdgeCase()

isDeactivatedThroughEdgeCase()

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

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

getOurPluginsInstalled()

getOurPluginsInstalled()

Get an array of our installed plugins.

getAvailable()

getAvailable()

Localize frontend only when needed.

instance()

instance()

New instance.

__construct()

__construct()

C'tor.