Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс ProductCategoryRestriction
+ Граф наследования:ProductCategoryRestriction:

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

static getClassTitle ()
 
static getOnApplyErrorMessage ()
 
static check ($categoriesList, array $restrictionParams, $deliveryId=0)
 
static getParamsStructure ($entityId=0)
 
- Открытые статические члены унаследованные от Restriction
static getClassDescription ()
 
static checkByEntity (Entity $entity, array $restrictionParams, $mode, $serviceId=0)
 
static validateRestriction ($fields)
 
static prepareParamsValues (array $paramsValues, $entityId=0)
 
static save (array $fields, $restrictionId=0)
 
static delete ($restrictionId, $entityId=0)
 
static getSeverity ($mode)
 
static prepareData (array $servicesIds)
 
static isAvailable ()
 
static getCode ()
 
static isMyCode (string $code)
 

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

static getJsHandler ()
 
static getBasketItems (Entity $entity)
 
static getCategoriesItems (array $productIds)
 
static getCategoriesPath ($categoryId)
 
- Защищенные статические члены унаследованные от Restriction
static extractParams (Entity $entity)
 

Дополнительные унаследованные члены

- Статические открытые данные унаследованные от Restriction
static $easeSort = 100
 

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

См. определение в файле 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$categoriesListarray 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

Аргументы
Entity$entity
Возвращает
array BasketItem objects

◆ getCategoriesItems()

static getCategoriesItems ( array $productIds)
staticprotected

Extracts the IDs of categories belonging to products in $productIds array

Аргументы
array$productIdsarray of product Ids
Возвращает
array array of categories belonging to products

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

◆ getCategoriesPath()

static getCategoriesPath ( $categoryId)
staticprotected

Returns full path for the category with id = $categoryId

Аргументы
$categoryId
Возвращает
array

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

◆ getClassTitle()

static getClassTitle ( )
static

Returns the restriction title

Возвращает
string

Переопределяет метод предка Restriction.

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

◆ getJsHandler()

static getJsHandler ( )
staticabstractprotected

Return js object name that must have 'addRestrictionProductSection(id, name, nodeId)' and 'deleteRestrictionProductSection(id, nodeId)' functions

Возвращает
string

Переопределяется в ByProductCategory и ProductCategory.

◆ getOnApplyErrorMessage()

static getOnApplyErrorMessage ( )
static

Returns message that will be display if error occurs while applying restriction

Возвращает
string

Переопределяет метод предка Restriction.

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

◆ getParamsStructure()

static getParamsStructure ( $entityId = 0)
static

Returns array of 'PRODUCT_CATEGORIES' restriction params

Аргументы
int$entityId
Возвращает
array

Переопределяет метод предка Restriction.

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