|
| 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) |
См. определение в файле 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()
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 | $id | Product id (sku, offer). |
| null | int | $iblockId | Product iblock (null, if unknown). |
| null | int | $type | Real 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 | $id | Product id (sku, offer). |
| null | int | $iblockId | Product iblock (null, if unknown). |
| null | int | $type | Real product type (or null, if unknown). |
| array | $priceTypes | Price 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 | $row | Product/ Offer data. |
- Возвращает
- bool
См. определение в файле sku.php строка 1082
◆ getDefaultParentSettings()
| getDefaultParentSettings |
( |
int | $state, |
|
|
bool | $productIblock = false ) |
|
static |
Return default settings for product with sku.
- Аргументы
-
| int | $state | State flag. |
| bool | $productIblock | Is iblock (no catalog) with offers. |
- Возвращает
- array
См. определение в файле sku.php строка 130
◆ getOfferState()
| getOfferState |
( |
| $productId, |
|
|
| $iblockId = 0 ) |
|
static |
Return available and exist product offers.
- Аргументы
-
| int | $productId | Product id. |
| int | $iblockId | Iblock id. |
- Возвращает
- int
- Исключения
-
Bitrix\Main\ArgumentException
См. определение в файле sku.php строка 963
◆ getParentProductFieldsByState()
| getParentProductFieldsByState |
( |
int | $offerState | ) |
|
|
static |
Returns base product fields for product with sku.
- Аргументы
-
| int | $offerState | Offers state (exists, available, etc). |
- Возвращает
- array
См. определение в файле sku.php строка 118
◆ handlerAfterIblockElementAdd()
| handlerAfterIblockElementAdd |
( |
& | $fields | ) |
|
|
static |
OnAfterIBlockElementAdd event handler. Do not use directly.
- Аргументы
-
| array | &$fields | Element data. |
- Возвращает
- void
См. определение в файле sku.php строка 510
◆ handlerAfterIblockElementDelete()
| handlerAfterIblockElementDelete |
( |
| $elementData | ) |
|
|
static |
OnAfterIBlockElementDelete event handler. Do not use directly.
- Аргументы
-
| array | $elementData | Element data. |
- Возвращает
- void
См. определение в файле sku.php строка 685
◆ handlerAfterIBlockElementSetPropertyValues()
| handlerAfterIBlockElementSetPropertyValues |
( |
| $elementId, |
|
|
| $iblockId, |
|
|
| $newValues, |
|
|
| $propertyIdentifyer ) |
|
static |
OnAfterIBlockElementSetPropertyValues event handler. Do not use directly.
- Аргументы
-
| int | string | $elementId | Element id. |
| int | string | $iblockId | Iblock id. |
| array | mixed | $newValues | New properties values. |
| int | string | false | $propertyIdentifyer | Property identifier. |
- Возвращает
- void
См. определение в файле sku.php строка 823
◆ handlerAfterIblockElementSetPropertyValuesEx()
| handlerAfterIblockElementSetPropertyValuesEx |
( |
| $elementId, |
|
|
| $iblockId, |
|
|
| $newValues, |
|
|
| $flags ) |
|
static |
OnAfterIBlockElementSetPropertyValuesEx event handler. Do not use directly.
- Аргументы
-
| int | string | $elementId | Element id. |
| int | string | $iblockId | Iblock id. |
| array | mixed | $newValues | New properties values. |
| array | mixed | $flags | Flags from \CIBlockElement::SetPropertyValuesEx. |
- Возвращает
- void
См. определение в файле sku.php строка 943
◆ handlerAfterIblockElementUpdate()
| handlerAfterIblockElementUpdate |
( |
& | $fields | ) |
|
|
static |
OnAfterIBlockElementUpdate event handler. Do not use directly.
- Аргументы
-
| array | &$fields | New element data. |
- Возвращает
- void
См. определение в файле sku.php строка 543
◆ handlerIblockElementAdd()
| handlerIblockElementAdd |
( |
| $fields | ) |
|
|
static |
OnIBlockElementAdd event handler. Do not use directly.
- Аргументы
-
| array | $fields | Element data. |
- Возвращает
- void
См. определение в файле sku.php строка 498
◆ handlerIblockElementDelete()
| handlerIblockElementDelete |
( |
| $elementId, |
|
|
| $elementData ) |
|
static |
OnIBlockElementDelete event handler. Do not use directly.
- Аргументы
-
| int | $elementId | Element id. |
| array | $elementData | Element data. |
- Возвращает
- void
См. определение в файле sku.php строка 659
◆ handlerIblockElementSetPropertyValues()
| handlerIblockElementSetPropertyValues |
( |
| $elementId, |
|
|
| $iblockId, |
|
|
| $newValues, |
|
|
| $propertyIdentifyer, |
|
|
| $propertyList, |
|
|
| $currentValues ) |
|
static |
OnIBlockElementSetPropertyValues event handler. Do not use directly.
- Аргументы
-
| int | $elementId | Element id. |
| int | $iblockId | Iblock id. |
| array | $newValues | New properties values. |
| int | string | false | $propertyIdentifyer | Property identifier. |
| array | $propertyList | Changed property list. |
| array | $currentValues | Current properties values. |
- Возвращает
- void
См. определение в файле sku.php строка 713
◆ handlerIblockElementSetPropertyValuesEx()
| handlerIblockElementSetPropertyValuesEx |
( |
| $elementId, |
|
|
| $iblockId, |
|
|
| $newValues, |
|
|
| $propertyList, |
|
|
| $currentValues ) |
|
static |
OnIBlockElementSetPropertyValuesEx event handler. Do not use directly.
- Аргументы
-
| int | $elementId | Element id. |
| int | $iblockId | Iblock id. |
| array | $newValues | New properties values. |
| array | $propertyList | Changed property list. |
| array | $currentValues | Current properties values. |
- Возвращает
- void
См. определение в файле sku.php строка 847
◆ handlerIblockElementUpdate()
| handlerIblockElementUpdate |
( |
| $newFields, |
|
|
| $oldFields ) |
|
static |
OnIBlockElementUpdate event handler. Do not use directly.
- Аргументы
-
| array | $newFields | New element data. |
| array | $oldFields | Current 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 | $productId | Product Id. |
| int | $iblockId | Iblock Id (optional). |
| array | $productFields | Product 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 | $offerId | Offer id. |
| int | $type | Product type. |
- Возвращает
- bool
- Исключения
-
Exception
См. определение в файле sku.php строка 1032
◆ updateProductAvailable()
| updateProductAvailable |
( |
| $productId, |
|
|
| $iblockId ) |
|
staticprotected |
Update sku product available.
- См. также
- Sku::calculateComplete
- Аргументы
-
| int | $productId | Product id. |
| int | null | $iblockId | Iblock 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 |
◆ $allowUpdateAvailable
| int $allowUpdateAvailable = 0 |
|
staticprotected |
◆ $offers
◆ $productIds
◆ ACTION_AVAILABLE
| const ACTION_AVAILABLE = 'AVAILABLE' |
|
protected |
◆ ACTION_ELEMENT_TIMESTAMP
| const ACTION_ELEMENT_TIMESTAMP = 'ELEMENT_TIMESTAMP' |
|
protected |
◆ ACTION_PRICE
| const ACTION_PRICE = 'PRICE' |
|
protected |
◆ OFFERS_AVAILABLE
| const OFFERS_AVAILABLE = 0x0004 |
◆ OFFERS_ERROR
| const OFFERS_ERROR = 0x0000 |
◆ OFFERS_NOT_AVAILABLE
| const OFFERS_NOT_AVAILABLE = 0x0002 |
◆ OFFERS_NOT_EXIST
| const OFFERS_NOT_EXIST = 0x0001 |
Объявления и описания членов класса находятся в файле:
- C:/bitrix/modules/catalog/lib/product/sku.php