1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Sku

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

static enableUpdateAvailable ()
static disableUpdateAvailable ()
static allowedUpdateAvailable ()
static enableDeferredCalculation ()
static disableDeferredCalculation ()
static usedDeferredCalculation ()
static getParentProductFieldsByState (int $offerState)
static getDefaultParentSettings (int $state, bool $productIblock=false)
static updateAvailable ($productId, $iblockId=0, array $productFields=array())
static calculateComplete ($id, $iblockId=null, $type=null)
static calculatePrice ($id, $iblockId=null, $type=null, array $priceTypes=[])
static calculate ()
static handlerIblockElementAdd ($fields)
static handlerAfterIblockElementAdd (&$fields)
static handlerIblockElementUpdate ($newFields, $oldFields)
static handlerAfterIblockElementUpdate (&$fields)
static handlerIblockElementDelete ($elementId, $elementData)
static handlerAfterIblockElementDelete ($elementData)
static handlerIblockElementSetPropertyValues ( $elementId, $iblockId, $newValues, $propertyIdentifyer, $propertyList, $currentValues)
static handlerAfterIBlockElementSetPropertyValues ( $elementId, $iblockId, $newValues, $propertyIdentifyer)
static handlerIblockElementSetPropertyValuesEx ( $elementId, $iblockId, $newValues, $propertyList, $currentValues)
static handlerAfterIblockElementSetPropertyValuesEx ( $elementId, $iblockId, $newValues, $flags)
static getOfferState ($productId, $iblockId=0)

Поля данных

const OFFERS_ERROR = 0x0000
const OFFERS_NOT_EXIST = 0x0001
const OFFERS_NOT_AVAILABLE = 0x0002
const OFFERS_AVAILABLE = 0x0004

Защищенные статические члены

static updateProductAvailable ($productId, $iblockId)
static updateOfferType ($offerId, $type)
static enablePropertyHandler ()
static disablePropertyHandler ()
static allowedPropertyHandler ()
static filterActive (array $row)

Защищенные данные

const ACTION_AVAILABLE = 'AVAILABLE'
const ACTION_PRICE = 'PRICE'
const ACTION_ELEMENT_TIMESTAMP = 'ELEMENT_TIMESTAMP'

Статические защищенные данные

static int $allowUpdateAvailable = 0
static int $allowPropertyHandler = 0
static array $productIds = []
static array $offers = []

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

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

Методы

◆ allowedPropertyHandler()

allowedPropertyHandler ( )
staticprotected

Return is enabled property handlers.

Возвращает
bool

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

◆ allowedUpdateAvailable()

allowedUpdateAvailable ( )
static

Return true if allowed automatic update parent product available and prices.

Возвращает
bool

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

◆ calculate()

calculate ( )
static

Run calculate parent product available and prices. Need data must will be prepared in Sku::calculateComplete or Sku::calculatePrice.

Возвращает
void

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

◆ calculateComplete()

calculateComplete ( $id,
$iblockId = null,
$type = null )
static

Prepare data for update parent product available and prices. Run calculate, if disable deferred calculation.

Аргументы
int$idProduct id (sku, offer).
null | int$iblockIdProduct iblock (null, if unknown).
null | int$typeReal product type (or null, if unknown).
Возвращает
void

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

◆ calculatePrice()

calculatePrice ( $id,
$iblockId = null,
$type = null,
array $priceTypes = [] )
static

Prepare data for update parent product prices. Run calculate, if disable deferred calculation.

Аргументы
int$idProduct id (sku, offer).
null | int$iblockIdProduct iblock (null, if unknown).
null | int$typeReal product type (or null, if unknown).
array$priceTypesPrice type ids for calculation (empty, if need all price types).
Возвращает
void

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

◆ disableDeferredCalculation()

disableDeferredCalculation ( )
static

Disable deferred calculation parent product available and prices.

Возвращает
void

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

◆ disablePropertyHandler()

disablePropertyHandler ( )
staticprotected

Disable property handlers.

Возвращает
void

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

◆ disableUpdateAvailable()

disableUpdateAvailable ( )
static

Disable automatic update parent product available and prices.

Возвращает
void

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

◆ enableDeferredCalculation()

enableDeferredCalculation ( )
static

Enable deferred calculation parent product available and prices.

Возвращает
void

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

◆ enablePropertyHandler()

enablePropertyHandler ( )
staticprotected

Enable property handlers.

Возвращает
void

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

◆ enableUpdateAvailable()

enableUpdateAvailable ( )
static

Enable automatic update parent product available and prices.

Возвращает
void

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

◆ filterActive()

filterActive ( array $row)
staticprotected

Method for array_filter.

Аргументы
array$rowProduct/ Offer data.
Возвращает
bool

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

◆ getDefaultParentSettings()

getDefaultParentSettings ( int $state,
bool $productIblock = false )
static

Return default settings for product with sku.

Аргументы
int$stateState flag.
bool$productIblockIs iblock (no catalog) with offers.
Возвращает
array

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

◆ getOfferState()

getOfferState ( $productId,
$iblockId = 0 )
static

Return available and exist product offers.

Аргументы
int$productIdProduct id.
int$iblockIdIblock id.
Возвращает
int
Исключения

Bitrix\Main\ArgumentException

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

◆ getParentProductFieldsByState()

getParentProductFieldsByState ( int $offerState)
static

Returns base product fields for product with sku.

Аргументы
int$offerStateOffers state (exists, available, etc).
Возвращает
array

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

◆ handlerAfterIblockElementAdd()

handlerAfterIblockElementAdd ( & $fields)
static

OnAfterIBlockElementAdd event handler. Do not use directly.

Аргументы
array&$fieldsElement data.
Возвращает
void

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

◆ handlerAfterIblockElementDelete()

handlerAfterIblockElementDelete ( $elementData)
static

OnAfterIBlockElementDelete event handler. Do not use directly.

Аргументы
array$elementDataElement data.
Возвращает
void

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

◆ handlerAfterIBlockElementSetPropertyValues()

handlerAfterIBlockElementSetPropertyValues ( $elementId,
$iblockId,
$newValues,
$propertyIdentifyer )
static

OnAfterIBlockElementSetPropertyValues event handler. Do not use directly.

Аргументы
int | string$elementIdElement id.
int | string$iblockIdIblock id.
array | mixed$newValuesNew properties values.
int | string | false$propertyIdentifyerProperty identifier.
Возвращает
void

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

◆ handlerAfterIblockElementSetPropertyValuesEx()

handlerAfterIblockElementSetPropertyValuesEx ( $elementId,
$iblockId,
$newValues,
$flags )
static

OnAfterIBlockElementSetPropertyValuesEx event handler. Do not use directly.

Аргументы
int | string$elementIdElement id.
int | string$iblockIdIblock id.
array | mixed$newValuesNew properties values.
array | mixed$flagsFlags from \CIBlockElement::SetPropertyValuesEx.
Возвращает
void

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

◆ handlerAfterIblockElementUpdate()

handlerAfterIblockElementUpdate ( & $fields)
static

OnAfterIBlockElementUpdate event handler. Do not use directly.

Аргументы
array&$fieldsNew element data.
Возвращает
void

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

◆ handlerIblockElementAdd()

handlerIblockElementAdd ( $fields)
static

OnIBlockElementAdd event handler. Do not use directly.

Аргументы
array$fieldsElement data.
Возвращает
void

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

◆ handlerIblockElementDelete()

handlerIblockElementDelete ( $elementId,
$elementData )
static

OnIBlockElementDelete event handler. Do not use directly.

Аргументы
int$elementIdElement id.
array$elementDataElement data.
Возвращает
void

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

◆ handlerIblockElementSetPropertyValues()

handlerIblockElementSetPropertyValues ( $elementId,
$iblockId,
$newValues,
$propertyIdentifyer,
$propertyList,
$currentValues )
static

OnIBlockElementSetPropertyValues event handler. Do not use directly.

Аргументы
int$elementIdElement id.
int$iblockIdIblock id.
array$newValuesNew properties values.
int | string | false$propertyIdentifyerProperty identifier.
array$propertyListChanged property list.
array$currentValuesCurrent properties values.
Возвращает
void

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

◆ handlerIblockElementSetPropertyValuesEx()

handlerIblockElementSetPropertyValuesEx ( $elementId,
$iblockId,
$newValues,
$propertyList,
$currentValues )
static

OnIBlockElementSetPropertyValuesEx event handler. Do not use directly.

Аргументы
int$elementIdElement id.
int$iblockIdIblock id.
array$newValuesNew properties values.
array$propertyListChanged property list.
array$currentValuesCurrent properties values.
Возвращает
void

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

◆ handlerIblockElementUpdate()

handlerIblockElementUpdate ( $newFields,
$oldFields )
static

OnIBlockElementUpdate event handler. Do not use directly.

Аргументы
array$newFieldsNew element data.
array$oldFieldsCurrent element data.
Возвращает
void

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

◆ updateAvailable()

updateAvailable ( $productId,
$iblockId = 0,
array $productFields = array() )
static

Update product available.

См. также
Sku::calculateComplete (for sku) and Catalog\Model\Product::update (for all product types)
Аргументы
int$productIdProduct Id.
int$iblockIdIblock Id (optional).
array$productFieldsProduct fields (optional).
Возвращает
bool
Исключения

Bitrix\Main\ArgumentException

Исключения

Exception

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

◆ updateOfferType()

updateOfferType ( $offerId,
$type )
staticprotected

Update offer product type.

См. также
\Bitrix\Catalog\Model\Product::update
Аргументы
int$offerIdOffer id.
int$typeProduct type.
Возвращает
bool
Исключения

Exception

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

◆ updateProductAvailable()

updateProductAvailable ( $productId,
$iblockId )
staticprotected

Update sku product available.

См. также
Sku::calculateComplete
Аргументы
int$productIdProduct id.
int | null$iblockIdIblock id.
Возвращает
bool

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

◆ usedDeferredCalculation()

usedDeferredCalculation ( )
static

Return true if allowed deferred calculation parent product available and prices.

Возвращает
bool

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

Поля

◆ $allowPropertyHandler

int $allowPropertyHandler = 0
staticprotected

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

◆ $allowUpdateAvailable

int $allowUpdateAvailable = 0
staticprotected

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

◆ $offers

array $offers = []
staticprotected

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

◆ $productIds

array $productIds = []
staticprotected

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

◆ ACTION_AVAILABLE

const ACTION_AVAILABLE = 'AVAILABLE'
protected

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

◆ ACTION_ELEMENT_TIMESTAMP

const ACTION_ELEMENT_TIMESTAMP = 'ELEMENT_TIMESTAMP'
protected

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

◆ ACTION_PRICE

const ACTION_PRICE = 'PRICE'
protected

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

◆ OFFERS_AVAILABLE

const OFFERS_AVAILABLE = 0x0004

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

◆ OFFERS_ERROR

const OFFERS_ERROR = 0x0000

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

◆ OFFERS_NOT_AVAILABLE

const OFFERS_NOT_AVAILABLE = 0x0002

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

◆ OFFERS_NOT_EXIST

const OFFERS_NOT_EXIST = 0x0001

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


Объявления и описания членов класса находятся в файле:
  • C:/bitrix/modules/catalog/lib/product/sku.php