AfterbuyGlobalReader
in package
Class AfterbuyGlobalReader
Table of Contents
- CONFIG_KEY_AFTERBUY_ENABLED = 'active'
- CONFIG_KEY_AFTERBUY_INSTALLED = 'gm_configuration/MODULE_CENTER_GAMBIOAFTERBUY_INSTALLED'
- STORAGE_AFTERBUY_NAMESPACE = 'modules/gambio/afterbuy'
- $configurationFinder : ConfigurationFinder
- $ENABLED_SETTINGS_VALUES : array<string|int, mixed>
- $storage : ConfigurationStorageRepository
- __construct() : mixed
- AfterbuyGlobalReaderBackup constructor.
- fetchAccountToken() : string
- fetchDetailLevel() : string
- fetchErrorLanguage() : string
- fetchLogLevel() : string
- Fetches the log level configuration from the afterbuy module.
- fetchPartnerId() : int
- Fetches afterbuy partner id from configuration.
- fetchPartnerPassword() : string
- Fetches afterbuy partner password from configuration.
- fetchPartnerToken() : string
- fetchUserId() : string
- Fetches afterbuy user id from configuration.
- fetchUserPassword() : string
- Fetches afterbuy user password from configuration.
- isEnabled() : bool
- Checks if the afterbuy module is enabled.
- isInstalled() : bool
- Checks if the afterbuy module is installed.
- isTrue() : bool
- Checks if value represents a true-ish boolean.
Constants
CONFIG_KEY_AFTERBUY_ENABLED
private
mixed
CONFIG_KEY_AFTERBUY_ENABLED
= 'active'
CONFIG_KEY_AFTERBUY_INSTALLED
private
mixed
CONFIG_KEY_AFTERBUY_INSTALLED
= 'gm_configuration/MODULE_CENTER_GAMBIOAFTERBUY_INSTALLED'
STORAGE_AFTERBUY_NAMESPACE
private
mixed
STORAGE_AFTERBUY_NAMESPACE
= 'modules/gambio/afterbuy'
Properties
$configurationFinder
private
ConfigurationFinder
$configurationFinder
$ENABLED_SETTINGS_VALUES
private
static array<string|int, mixed>
$ENABLED_SETTINGS_VALUES
= ['true', '1', 'enabled', 'on', 'yes', 'ok']
$storage
private
ConfigurationStorageRepository
$storage
Methods
__construct()
AfterbuyGlobalReaderBackup constructor.
public
__construct(ConfigurationStorageRepositoryBuilder $storageRepositoryBuilder, ConfigurationFinder $configurationFinder) : mixed
Parameters
- $storageRepositoryBuilder : ConfigurationStorageRepositoryBuilder
- $configurationFinder : ConfigurationFinder
Return values
mixed —fetchAccountToken()
public
fetchAccountToken() : string
Return values
string —fetchDetailLevel()
public
fetchDetailLevel() : string
Return values
string —fetchErrorLanguage()
public
fetchErrorLanguage() : string
Return values
string —fetchLogLevel()
Fetches the log level configuration from the afterbuy module.
public
fetchLogLevel() : string
Return values
string —fetchPartnerId()
Fetches afterbuy partner id from configuration.
public
fetchPartnerId() : int
Return values
int —fetchPartnerPassword()
Fetches afterbuy partner password from configuration.
public
fetchPartnerPassword() : string
Return values
string —fetchPartnerToken()
public
fetchPartnerToken() : string
Return values
string —fetchUserId()
Fetches afterbuy user id from configuration.
public
fetchUserId() : string
Return values
string —fetchUserPassword()
Fetches afterbuy user password from configuration.
public
fetchUserPassword() : string
Return values
string —isEnabled()
Checks if the afterbuy module is enabled.
public
isEnabled() : bool
Return values
bool —isInstalled()
Checks if the afterbuy module is installed.
public
isInstalled() : bool
Return values
bool —isTrue()
Checks if value represents a true-ish boolean.
private
isTrue(string|null $value) : bool
Parameters
- $value : string|null