StyleEditWelcomeStorage
extends ConfigurationStorage
in package
Table of Contents
- CONFIG_STORAGE_NAMESPACE = 'modules/gambio/styleedit'
- Configuration storage namespace
- SECRET_CONFIG_KEY_TEMPLATE = 'welcomed/{CUSTOMER_ID}'
- Secret configuration key name template
- __construct() : mixed
- StyleEditWelcomeStorage constructor.
- storeWelcomeStatusSeenForCustomer() : StyleEditWelcomeStorage
- welcomeStatusSeenForCustomer() : bool
- configurationKeyForCustomer() : string
- Return the substituted configuration key string for the provided customer ID
Constants
CONFIG_STORAGE_NAMESPACE
Configuration storage namespace
public
mixed
CONFIG_STORAGE_NAMESPACE
= 'modules/gambio/styleedit'
SECRET_CONFIG_KEY_TEMPLATE
Secret configuration key name template
public
mixed
SECRET_CONFIG_KEY_TEMPLATE
= 'welcomed/{CUSTOMER_ID}'
Methods
__construct()
StyleEditWelcomeStorage constructor.
public
__construct() : mixed
Return values
mixed —storeWelcomeStatusSeenForCustomer()
public
storeWelcomeStatusSeenForCustomer(IdType $customerId) : StyleEditWelcomeStorage
Parameters
- $customerId : IdType
Return values
StyleEditWelcomeStorage —welcomeStatusSeenForCustomer()
public
welcomeStatusSeenForCustomer(IdType $customerId) : bool
Parameters
- $customerId : IdType
Return values
bool —has the logged in user been welcomed? (StarUp-view of theme list)
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