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

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

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

Статические открытые данные

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

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

static getOrder (Entity $entity)
 
static getEntityTypeId ()
 
static extractParams (Entity $entity)
 
static prepareParamsForSaving (array $params=array(), $entityId=0)
 
static getUserGroups ()
 

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

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

Методы

◆ check()

static check ( $groups,
array $restrictionParams,
$entityId = 0 )
static
Аргументы
array$groupsUser groups
array$restrictionParamsRestriction params.
int$entityIdService Identifier.
Возвращает
bool

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

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

◆ delete()

static delete ( $restrictionId,
$entityId = 0 )
static
Аргументы
$restrictionId
int$entityId
Возвращает
\Bitrix\Main\Entity\DeleteResult
Исключения

Exception

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

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

◆ extractParams()

static extractParams ( Entity $entity)
staticprotected
Аргументы
Entity$entityDelivery or
Возвращает
array

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

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

◆ filterServicesArray()

static filterServicesArray ( Entity $entity,
array $restrictionFields )
static
Аргументы
Entity$entity
array$restrictionFields
Возвращает
array

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

◆ getClassDescription()

static getClassDescription ( )
static

Возвращает
string
Исключения
NotImplementedException

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

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

◆ getClassTitle()

static getClassTitle ( )
static

Возвращает
string
Исключения
NotImplementedException

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

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

◆ getEntityTypeId()

static getEntityTypeId ( )
staticprotected
Возвращает
int
Исключения
NotImplementedException

Переопределяется в ByUserGroup.

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

◆ getOnApplyErrorMessage()

static getOnApplyErrorMessage ( )
static

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

Возвращает
string

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

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

◆ getOrder()

static getOrder ( Entity $entity)
staticprotected
Аргументы
Entity$entity
Возвращает
Order
Исключения
NotImplementedException

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

◆ getParamsStructure()

static getParamsStructure ( $entityId = 0)
static

Returns params structure to show it to user

Возвращает
array

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

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

◆ getUserGroups()

static getUserGroups ( )
staticprotected

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

◆ isAvailable()

static isAvailable ( )
static
Возвращает
bool

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

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

◆ prepareParamsForSaving()

static prepareParamsForSaving ( array $params = array(),
$entityId = 0 )
staticprotected

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

◆ prepareParamsValues()

static prepareParamsValues ( array $paramsValues,
$entityId = 0 )
static
Аргументы
array$paramsValues
int$entityId
Возвращает
array

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

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

◆ save()

static save ( array $fields,
$restrictionId = 0 )
static
Аргументы
array$fields
int$restrictionId
Возвращает
\Bitrix\Main\Entity\AddResult|\Bitrix\Main\Entity\UpdateResult
Исключения

Exception

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

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

Данные класса

◆ $easeSort

$easeSort = 200
static

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