1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Scope

Открытые члены

 __construct (private readonly int $userId,)
 getUserScopes (string $entityTypeId, ?string $moduleId=null, bool $loadMetadata=true)
 getAllUserScopes (string $entityTypeId, ?string $moduleId=null, bool $loadMetadata=true)
 isHasScope (int $scopeId)
 getScopeById (int $scopeId)
 getById (int $scopeId)
 removeByIds (iterable $ids)
 setScope (string $categoryName, string $guid, string $scope, int $userScopeId=0, ?int $userId=null)
 setScopeConfig (string $category, string $entityTypeId, string $name, array $accessCodes, array $config, array $params=[])
 updateScopeConfig (int $id, array $config)
 updateScopeName (int $id, string $name)
 updateScopeAccessCodes (int $configId, array $accessCodes=[])
 addAccessCodes (int $configId, array $accessCodes)
 getScopeMembers (int $configId)
 updateScopeAutoApplyScope (int $id, bool $autoApplyScope)
 setScopeForEligibleUsers (int $scopeId)
 getScopeAccessCodesByScopeId (int $scopeId)

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

static getInstance (?int $userId=null)
static handleMemberAddedToDepartment (Event $event)
static handleMemberAddedToSocialGroup (int $id, array $fields)

Защищенные члены

 getEntityTypeIdMap ()
 getUserId ()
 prepareAccessCodes (array &$accessCodes)
 formatAccessCodes (array &$accessCodes)
 forceSetScopeToUsers (array $accessCodes=[], array $params=[])
 setScopeToUser (string $categoryName, string $guid, string $scope, int $userScopeId, ?int $userId=null)

Защищенные данные

const CODE_USER = 'U'
const CODE_PROJECT = 'SG'
const CODE_DEPARTMENT = 'DR'
const TYPE_USER = 'user'
const TYPE_PROJECT = 'project'
const TYPE_DEPARTMENT = 'department'

Статические защищенные данные

static array $instances = []

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

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

Конструктор(ы)

◆ __construct()

__construct ( private readonly int $userId)

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

Методы

◆ addAccessCodes()

addAccessCodes ( int $configId,
array $accessCodes )

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

◆ forceSetScopeToUsers()

forceSetScopeToUsers ( array $accessCodes = [],
array $params = [] )
protected
Аргументы
array$accessCodes
array$params

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

◆ formatAccessCodes()

formatAccessCodes ( array & $accessCodes)
protected
Аргументы
array$accessCodes

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

◆ getAllUserScopes()

getAllUserScopes ( string $entityTypeId,
?string $moduleId = null,
bool $loadMetadata = true )

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

◆ getById()

getById ( int $scopeId)
Аргументы
int$scopeId
Возвращает
array|null

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

◆ getEntityTypeIdMap()

getEntityTypeIdMap ( )
protected

This method must return entityTypeId values that correspond to a single CRM entity only.

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

◆ getInstance()

getInstance ( ?int $userId = null)
static

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

◆ getScopeAccessCodesByScopeId()

getScopeAccessCodesByScopeId ( int $scopeId)

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

◆ getScopeById()

getScopeById ( int $scopeId)
Аргументы
int$scopeId
Возвращает
array|null

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

◆ getScopeMembers()

getScopeMembers ( int $configId)
Аргументы
int$configId
Возвращает
array

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

◆ getUserId()

getUserId ( )
protected

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

◆ getUserScopes()

getUserScopes ( string $entityTypeId,
?string $moduleId = null,
bool $loadMetadata = true )
Аргументы
string$entityTypeId
string | null$moduleId
Возвращает
array

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

◆ handleMemberAddedToDepartment()

handleMemberAddedToDepartment ( Event $event)
static

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

◆ handleMemberAddedToSocialGroup()

handleMemberAddedToSocialGroup ( int $id,
array $fields )
static

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

◆ isHasScope()

isHasScope ( int $scopeId)
Аргументы
int$scopeId
Возвращает
bool

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

◆ prepareAccessCodes()

prepareAccessCodes ( array & $accessCodes)
protected

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

◆ removeByIds()

removeByIds ( iterable $ids)
Аргументы
iterable$ids
Исключения

Exception

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

◆ setScope()

setScope ( string $categoryName,
string $guid,
string $scope,
int $userScopeId = 0,
?int $userId = null )

Set user option with config scope type and scopeId if selected custom scope

Аргументы
string$categoryName
string$guid
string$scope
int$userScopeId

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

◆ setScopeConfig()

setScopeConfig ( string $category,
string $entityTypeId,
string $name,
array $accessCodes,
array $config,
array $params = [] )

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

◆ setScopeForEligibleUsers()

setScopeForEligibleUsers ( int $scopeId)

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

◆ setScopeToUser()

setScopeToUser ( string $categoryName,
string $guid,
string $scope,
int $userScopeId,
?int $userId = null )
protected
Аргументы
string$categoryName
string$guid
string$scope
int$userScopeId
int | null$userId

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

◆ updateScopeAccessCodes()

updateScopeAccessCodes ( int $configId,
array $accessCodes = [] )
Аргументы
int$configId
array$accessCodes
Возвращает
array

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

◆ updateScopeAutoApplyScope()

updateScopeAutoApplyScope ( int $id,
bool $autoApplyScope )

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

◆ updateScopeConfig()

updateScopeConfig ( int $id,
array $config )

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

◆ updateScopeName()

updateScopeName ( int $id,
string $name )

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

Поля

◆ $instances

array $instances = []
staticprotected

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

◆ CODE_DEPARTMENT

const CODE_DEPARTMENT = 'DR'
protected

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

◆ CODE_PROJECT

const CODE_PROJECT = 'SG'
protected

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

◆ CODE_USER

const CODE_USER = 'U'
protected

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

◆ TYPE_DEPARTMENT

const TYPE_DEPARTMENT = 'department'
protected

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

◆ TYPE_PROJECT

const TYPE_PROJECT = 'project'
protected

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

◆ TYPE_USER

const TYPE_USER = 'user'
protected

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


Объявления и описания членов класса находятся в файле:
  • C:/bitrix/modules/ui/lib/entityform/scope.php