SwitchableFeatureComponent
in package
Class SwitchableFeatureComponent
Table of Contents
Properties
- $featureEnabledConstValue : bool
- $featureInternalEnabledConstValue : bool|null
Methods
- __construct() : mixed
- SwitchableFeatureComponent constructor.
- canISee() : bool
- isDisabled() : bool
- isOfficiallyEnabled() : bool
- isOnlyInternalEnabled() : bool
- parseConstNames() : void
Properties
$featureEnabledConstValue
private
bool
$featureEnabledConstValue
$featureInternalEnabledConstValue
private
bool|null
$featureInternalEnabledConstValue
Methods
__construct()
SwitchableFeatureComponent constructor.
public
__construct(string $featureEnabledConstName[, string|null $featureInternalEnabledConstName = null ]) : mixed
Parameters
- $featureEnabledConstName : string
- $featureInternalEnabledConstName : string|null = null
canISee()
public
canISee() : bool
Return values
boolisDisabled()
public
isDisabled() : bool
Return values
boolisOfficiallyEnabled()
public
isOfficiallyEnabled() : bool
Return values
boolisOnlyInternalEnabled()
public
isOnlyInternalEnabled() : bool
Return values
boolparseConstNames()
private
parseConstNames(string $featureEnabledConstName, string|null $featureInternalEnabledConstName) : void
Parameters
- $featureEnabledConstName : string
- $featureInternalEnabledConstName : string|null