Bitrix API

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

Methods

get()

Get option value.

public static get() : string
Return values
string

isAvailableValue()

Checks is available value.

public static isAvailableValue(string $value) : bool
Parameters
$value : string
Return values
bool

set()

Set option value.

public static set(string $value) : void
Parameters
$value : string

        
On this page

Search results