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

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

static getClassTitle ()
 
static getOnApplyErrorMessage ()
 
static check ($basketItemsIds, array $restrictionParams, $serviceId=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)
 
- Защищенные статические члены унаследованные от Restriction
static extractParams (Entity $entity)
 

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

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

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

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

Методы

◆ check()

static check ( $basketItemsIds,
array $restrictionParams,
$serviceId = 0 )
static

Compares the list of basket items with the list of items that restrict the system and returns a boolean result

Аргументы
$basketItemsIds
array$restrictionParams
int$serviceId
Возвращает
bool

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

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

◆ getBasketItems()

static getBasketItems ( Entity $entity)
staticabstractprotected

Return array of basket items from $entity

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

◆ getClassTitle()

static getClassTitle ( )
static

Returns the restriction title

Возвращает
string

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

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

◆ getJsHandler()

static getJsHandler ( )
staticabstractprotected

Return js object name that must have 'addRestrictionByConcreteProduct(nodeId, id, name)' and 'deleteRestrictionByConcreteProduct(nodeId, id, name)' functions

Возвращает
string

Переопределяется в ByConcreteProduct и ConcreteProduct.

◆ getOnApplyErrorMessage()

static getOnApplyErrorMessage ( )
static

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

Возвращает
string

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

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

◆ getParamsStructure()

static getParamsStructure ( $entityId = 0)
static

Returns array of 'CONCRETE_PRODUCT' restriction params

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

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

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