CheckRightsOnDecreaseStoreAmount extends Option
Option for toggle decrease store product quantity checking algorithm.
Is option 'E' - checks catalog rights;
Is option 'D' - nothing action;
Is option 'N' - see product field NEGATIVE_AMOUNT_TRACE
.
Table of Contents
Constants
- DEFAULT_VALUE = self::NOT_USED
- DISABLED_VALUE = 'D'
- ENABLED_VALUE = 'E'
- NAME = 'check_rights_on_decrease_store_quantity'
- NOT_USED = 'N'
Methods
- get() : string
- Get option value.
- isAvailableValue() : bool
- Checks is available value.
- isDisabled() : bool
- Checks rights - is disabled.
- isEnabled() : bool
- Checks rights - is enabled.
- isNotUsed() : bool
- Checks rights - not used.
- set() : void
- Set option value.
Constants
DEFAULT_VALUE
public
mixed
DEFAULT_VALUE
= self::NOT_USED
DISABLED_VALUE
public
mixed
DISABLED_VALUE
= 'D'
ENABLED_VALUE
public
mixed
ENABLED_VALUE
= 'E'
NAME
public
mixed
NAME
= 'check_rights_on_decrease_store_quantity'
NOT_USED
public
mixed
NOT_USED
= 'N'
Methods
get()
Get option value.
public
static get() : string
Return values
stringisAvailableValue()
Checks is available value.
public
static isAvailableValue(string $value) : bool
Parameters
- $value : string
Return values
boolisDisabled()
Checks rights - is disabled.
public
static isDisabled() : bool
Return values
boolisEnabled()
Checks rights - is enabled.
public
static isEnabled() : bool
Return values
boolisNotUsed()
Checks rights - not used.
public
static isNotUsed() : bool
Return values
boolset()
Set option value.
public
static set(string $value) : void
Parameters
- $value : string