См. определение в файле productcategoryrestriction.php строка 12
◆ check()
static check |
( |
| $categoriesList, |
|
|
array | $restrictionParams, |
|
|
| $deliveryId = 0 ) |
|
static |
Compares the list of categories of items in basket with the list of categories that restrict entity and returns true if all basket categories exist in restriction list
- Аргументы
-
array | $categoriesList | array of categories Ids that are in the basket |
array | $restrictionParams | |
int | $deliveryId | |
- Возвращает
- bool
Переопределяет метод предка Restriction.
См. определение в файле productcategoryrestriction.php строка 88
◆ getBasketItems()
static getBasketItems |
( |
Entity | $entity | ) |
|
|
staticabstractprotected |
Return array of basket items from $entity
- Аргументы
-
- Возвращает
- array BasketItem objects
◆ getCategoriesItems()
static getCategoriesItems |
( |
array | $productIds | ) |
|
|
staticprotected |
Extracts the IDs of categories belonging to products in $productIds array
- Аргументы
-
array | $productIds | array of product Ids |
- Возвращает
- array array of categories belonging to products
См. определение в файле productcategoryrestriction.php строка 134
◆ getCategoriesPath()
static getCategoriesPath |
( |
| $categoryId | ) |
|
|
staticprotected |
◆ getClassTitle()
◆ getJsHandler()
Return js object name that must have 'addRestrictionProductSection(id, name, nodeId)' and 'deleteRestrictionProductSection(id, nodeId)' functions
- Возвращает
- string
Переопределяется в ByProductCategory и ProductCategory.
◆ getOnApplyErrorMessage()
static getOnApplyErrorMessage |
( |
| ) |
|
|
static |
◆ getParamsStructure()
static getParamsStructure |
( |
| $entityId = 0 | ) |
|
|
static |