См. определение в файле role.php строка 15
◆ checkRequiredRoles()
For correct work we need at least one role.
- Возвращает
- void
См. определение в файле role.php строка 54
◆ fetchAll()
Gets all roles. Install demo data if need.
- Возвращает
- array
См. определение в файле role.php строка 114
◆ getExpectedRoleIds()
Gets expected roles id.
- Возвращает
- array
См. определение в файле role.php строка 558
◆ getExpectedType()
Gets expected role type.
- Возвращает
- string
См. определение в файле role.php строка 549
◆ getRights()
Gets rights for each site in this role.
- Аргументы
-
- Возвращает
- array
См. определение в файле role.php строка 354
◆ installDemo()
installDemo |
( |
| $type = null | ) |
|
|
static |
Install demo data.
- Аргументы
-
string | $type | Type of roles. |
- Возвращает
- void
См. определение в файле role.php строка 202
◆ setAccessCodes()
setAccessCodes |
( |
| $roleId, |
|
|
array | $codes = array() ) |
|
static |
Set new access codes for role and refresh all rights.
- Аргументы
-
int | $roleId | Role id. |
array | $codes | Codes array. |
- Возвращает
- void
См. определение в файле role.php строка 328
◆ setExpectedType()
Sets new expected type for role.
- Аргументы
-
string | null | $type | New expected type; |
- Возвращает
- void
См. определение в файле role.php строка 537
◆ setRights()
setRights |
( |
| $roleId, |
|
|
| $rights = [], |
|
|
| $additionalRights = null ) |
|
static |
Set rights for role.
- Аргументы
-
int | $roleId | Role id. |
array | $rights | Rights array ([[site_id] => [right1, right2]] |
array | $additionalRights | Additional rights array ([Rights::ADDITIONAL_RIGHTS]). |
- Возвращает
- void
См. определение в файле role.php строка 398
◆ $expectedType
◆ $forbiddenAdminRights
Инициализатор= [
'unexportable',
'knowledge_unexportable'
]
См. определение в файле role.php строка 45
◆ $forbiddenManagerRights
Инициализатор= [
'admin',
'knowledge_admin',
'unexportable',
'knowledge_unexportable',
'knowledge_extension',
]
См. определение в файле role.php строка 33
◆ $internalClass
Объявления и описания членов класса находятся в файле: