|
| | __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) |
См. определение в файле scope.php строка 29
◆ __construct()
| __construct |
( |
private readonly int | $userId | ) |
|
◆ addAccessCodes()
| addAccessCodes |
( |
int | $configId, |
|
|
array | $accessCodes ) |
◆ forceSetScopeToUsers()
| forceSetScopeToUsers |
( |
array | $accessCodes = [], |
|
|
array | $params = [] ) |
|
protected |
- Аргументы
-
| array | $accessCodes | |
| array | $params | |
См. определение в файле scope.php строка 367
◆ formatAccessCodes()
| formatAccessCodes |
( |
array & | $accessCodes | ) |
|
|
protected |
◆ getAllUserScopes()
| getAllUserScopes |
( |
string | $entityTypeId, |
|
|
?string | $moduleId = null, |
|
|
bool | $loadMetadata = true ) |
◆ getById()
- Аргументы
-
- Возвращает
- array|null
См. определение в файле scope.php строка 229
◆ getEntityTypeIdMap()
This method must return entityTypeId values that correspond to a single CRM entity only.
См. определение в файле scope.php строка 152
◆ getInstance()
| getInstance |
( |
?int | $userId = null | ) |
|
|
static |
◆ getScopeAccessCodesByScopeId()
| getScopeAccessCodesByScopeId |
( |
int | $scopeId | ) |
|
◆ getScopeById()
| getScopeById |
( |
int | $scopeId | ) |
|
- Аргументы
-
- Возвращает
- array|null
См. определение в файле scope.php строка 216
◆ getScopeMembers()
| getScopeMembers |
( |
int | $configId | ) |
|
- Аргументы
-
- Возвращает
- array
См. определение в файле scope.php строка 468
◆ getUserId()
◆ getUserScopes()
| getUserScopes |
( |
string | $entityTypeId, |
|
|
?string | $moduleId = null, |
|
|
bool | $loadMetadata = true ) |
- Аргументы
-
| string | $entityTypeId | |
| string | null | $moduleId | |
- Возвращает
- array
См. определение в файле scope.php строка 69
◆ handleMemberAddedToDepartment()
| handleMemberAddedToDepartment |
( |
Event | $event | ) |
|
|
static |
◆ handleMemberAddedToSocialGroup()
| handleMemberAddedToSocialGroup |
( |
int | $id, |
|
|
array | $fields ) |
|
static |
◆ isHasScope()
| isHasScope |
( |
int | $scopeId | ) |
|
- Аргументы
-
- Возвращает
- bool
См. определение в файле scope.php строка 164
◆ prepareAccessCodes()
| prepareAccessCodes |
( |
array & | $accessCodes | ) |
|
|
protected |
◆ removeByIds()
| removeByIds |
( |
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 = [] ) |
◆ setScopeForEligibleUsers()
| setScopeForEligibleUsers |
( |
int | $scopeId | ) |
|
◆ 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 ) |
◆ updateScopeConfig()
| updateScopeConfig |
( |
int | $id, |
|
|
array | $config ) |
◆ updateScopeName()
| updateScopeName |
( |
int | $id, |
|
|
string | $name ) |
◆ $instances
◆ CODE_DEPARTMENT
| const CODE_DEPARTMENT = 'DR' |
|
protected |
◆ CODE_PROJECT
| const CODE_PROJECT = 'SG' |
|
protected |
◆ CODE_USER
◆ TYPE_DEPARTMENT
| const TYPE_DEPARTMENT = 'department' |
|
protected |
◆ TYPE_PROJECT
| const TYPE_PROJECT = 'project' |
|
protected |
◆ TYPE_USER
Объявления и описания членов класса находятся в файле:
- C:/bitrix/modules/ui/lib/entityform/scope.php