StyleEditExpertModeStorage
extends ConfigurationStorage
in package
Class StyleEditExpertModeStorage
Table of Contents
- CONFIG_STORAGE_NAMESPACE = 'modules/gambio/styleedit'
- Configuration storage namespace
- SECRET_CONFIG_KEY_TEMPLATE = 'expertMode/{CUSTOMER_ID}'
- Secret configuration key name template
- __construct() : mixed
- StyleEditExpertModeStorage constructor.
- expertModeActive() : bool
- setExpertMode() : void
- configurationKeyForCustomer() : string
- Return the substituted configuration key string for the provided customer ID
Constants
CONFIG_STORAGE_NAMESPACE
Configuration storage namespace
protected
string
CONFIG_STORAGE_NAMESPACE
= 'modules/gambio/styleedit'
SECRET_CONFIG_KEY_TEMPLATE
Secret configuration key name template
protected
string
SECRET_CONFIG_KEY_TEMPLATE
= 'expertMode/{CUSTOMER_ID}'
Methods
__construct()
StyleEditExpertModeStorage constructor.
public
__construct() : mixed
Return values
mixed —expertModeActive()
public
expertModeActive(IdType $customerId) : bool
Parameters
- $customerId : IdType
Return values
bool —setExpertMode()
public
setExpertMode(IdType $customerId, bool $status) : void
Parameters
- $customerId : IdType
- $status : bool
Return values
void —configurationKeyForCustomer()
Return the substituted configuration key string for the provided customer ID
protected
configurationKeyForCustomer(IdType $customerId) : string
Parameters
- $customerId : IdType
-
Customer ID
Return values
string —Substituted secret configuration key