Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс QuantityControl

Открытые статические члены

static resetAllQuantity ($productId=null)
 
static setQuantity ($productId, $value)
 
static addQuantity ($productId, $value)
 
static getQuantity ($productId)
 
static resetQuantity ($productId)
 
static setReservedQuantity ($productId, $value)
 
static addReservedQuantity ($productId, $value)
 
static getReservedQuantity ($productId)
 
static resetReservedQuantity ($productId)
 
static setReservedQuantityFromStores ($productId)
 
static setAvailableQuantity ($productId, $value)
 
static addAvailableQuantity ($productId, $value)
 
static getAvailableQuantity ($productId)
 
static resetAvailableQuantity ($productId)
 
static setReservedStoreQuantity ($productId, int $storeId, $value, bool $summary=false)
 
static addReservedStoreQuantity ($productId, int $storeId, $value, bool $summary=false)
 
static getReservedStoreQuantity ($productId, int $storeId)
 
static resetReservedStoreQuantity ($productId)
 
static setValues ($productId, array $values)
 

Открытые атрибуты

const QUANTITY = 'quantity'
 
const AVAILABLE_QUANTITY = 'available_quantity'
 
const RESERVED_QUANTITY = 'reserved_quantity'
 
const RESERVER_STORE_QUANTITY = 'reserved_store_quantity'
 
const QUANTITY_CONTROL_QUANTITY = self::QUANTITY
 
const QUANTITY_CONTROL_AVAILABLE_QUANTITY = self::AVAILABLE_QUANTITY
 
const QUANTITY_CONTROL_RESERVED_QUANTITY = self::RESERVED_QUANTITY
 

Подробное описание

См. определение в файле quantitycontrol.php строка 5

Методы

◆ addAvailableQuantity()

static addAvailableQuantity ( $productId,
$value )
static
Аргументы
string | int$productId
int | float | string | null$value
Возвращает
void

См. определение в файле quantitycontrol.php строка 186

◆ addQuantity()

static addQuantity ( $productId,
$value )
static
Аргументы
string | int$productId
int | float | string | null$value
Возвращает
void

См. определение в файле quantitycontrol.php строка 56

◆ addReservedQuantity()

static addReservedQuantity ( $productId,
$value )
static
Аргументы
string | int$productId
int | float | string | null$value
Возвращает
void

См. определение в файле quantitycontrol.php строка 112

◆ addReservedStoreQuantity()

static addReservedStoreQuantity ( $productId,
int $storeId,
$value,
bool $summary = false )
static
Аргументы
string | int$productId
int$storeId
int | float | string | null$value
bool$summary
Возвращает
void

См. определение в файле quantitycontrol.php строка 255

◆ getAvailableQuantity()

static getAvailableQuantity ( $productId)
static
Аргументы
string | int$productId
Возвращает
null|float

См. определение в файле quantitycontrol.php строка 201

◆ getQuantity()

static getQuantity ( $productId)
static
Аргументы
string | int$productId
Возвращает
null|float

См. определение в файле quantitycontrol.php строка 71

◆ getReservedQuantity()

static getReservedQuantity ( $productId)
static
Аргументы
string | int$productId
Возвращает
null|float

См. определение в файле quantitycontrol.php строка 127

◆ getReservedStoreQuantity()

static getReservedStoreQuantity ( $productId,
int $storeId )
static
Аргументы
string | int$productId
int$storeId
Возвращает
null|float

См. определение в файле quantitycontrol.php строка 280

◆ resetAllQuantity()

static resetAllQuantity ( $productId = null)
static
Аргументы
string | int | null$productId
Возвращает
void

См. определение в файле quantitycontrol.php строка 26

◆ resetAvailableQuantity()

static resetAvailableQuantity ( $productId)
static
Аргументы
string | int | null$productId

См. определение в файле quantitycontrol.php строка 213

◆ resetQuantity()

static resetQuantity ( $productId)
static
Аргументы
string | int$productId
Возвращает
void

См. определение в файле quantitycontrol.php строка 85

◆ resetReservedQuantity()

static resetReservedQuantity ( $productId)
static
Аргументы
string | int$productId
Возвращает
void

См. определение в файле quantitycontrol.php строка 141

◆ resetReservedStoreQuantity()

static resetReservedStoreQuantity ( $productId)
static
Аргументы
string | int | null$productId

См. определение в файле quantitycontrol.php строка 292

◆ setAvailableQuantity()

static setAvailableQuantity ( $productId,
$value )
static
Аргументы
string | int$productId
int | float | string | null$value
Возвращает
void

См. определение в файле quantitycontrol.php строка 170

◆ setQuantity()

static setQuantity ( $productId,
$value )
static
Аргументы
string | int$productId
int | float | string | null$value
Возвращает
void

См. определение в файле quantitycontrol.php строка 40

◆ setReservedQuantity()

static setReservedQuantity ( $productId,
$value )
static
Аргументы
string | int$productId
int | float | string | null$value
Возвращает
void

См. определение в файле quantitycontrol.php строка 96

◆ setReservedQuantityFromStores()

static setReservedQuantityFromStores ( $productId)
static
Аргументы
string | int$productId
Возвращает
void

См. определение в файле quantitycontrol.php строка 151

◆ setReservedStoreQuantity()

static setReservedStoreQuantity ( $productId,
int $storeId,
$value,
bool $summary = false )
static
Аргументы
string | int$productId
int$storeId
int | float | string | null$value
bool$summary
Возвращает
void

См. определение в файле quantitycontrol.php строка 226

◆ setValues()

static setValues ( $productId,
array $values )
static
Аргументы
string | int$productId
array$values
Возвращает
void

См. определение в файле quantitycontrol.php строка 372

Данные класса

◆ AVAILABLE_QUANTITY

const AVAILABLE_QUANTITY = 'available_quantity'

См. определение в файле quantitycontrol.php строка 10

◆ QUANTITY

const QUANTITY = 'quantity'

См. определение в файле quantitycontrol.php строка 9

◆ QUANTITY_CONTROL_AVAILABLE_QUANTITY

const QUANTITY_CONTROL_AVAILABLE_QUANTITY = self::AVAILABLE_QUANTITY

См. определение в файле quantitycontrol.php строка 17

◆ QUANTITY_CONTROL_QUANTITY

const QUANTITY_CONTROL_QUANTITY = self::QUANTITY

См. определение в файле quantitycontrol.php строка 15

◆ QUANTITY_CONTROL_RESERVED_QUANTITY

const QUANTITY_CONTROL_RESERVED_QUANTITY = self::RESERVED_QUANTITY

См. определение в файле quantitycontrol.php строка 19

◆ RESERVED_QUANTITY

const RESERVED_QUANTITY = 'reserved_quantity'

См. определение в файле quantitycontrol.php строка 11

◆ RESERVER_STORE_QUANTITY

const RESERVER_STORE_QUANTITY = 'reserved_store_quantity'

См. определение в файле quantitycontrol.php строка 12