Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
Base.php
1
<?php
9
namespace
Bitrix\Catalog\Access\Install\Role
;
10
11
use
Bitrix\Catalog\Access\Permission\PermissionDictionary
;
12
13
abstract
class
Base
14
{
18
abstract
public
function
getPermissions
(): array;
19
20
public
function
getMap
(): array
21
{
22
$result = [];
23
foreach
($this->
getPermissions
() as $permissionId)
24
{
25
foreach
($this->
getPermissionValue
($permissionId) as $value)
26
{
27
$result[] = [
28
'permissionId'
=> $permissionId,
29
'value'
=> $value
30
];
31
}
32
}
33
34
return
$result;
35
}
36
37
protected
function
getPermissionValue
($permissionId): array
38
{
39
return
[PermissionDictionary::getDefaultPermissionValue($permissionId)];
40
}
41
}
Bitrix\Catalog\Access\Install\Role\Base
Definition
Base.php:14
Bitrix\Catalog\Access\Install\Role\Base\getMap
getMap()
Definition
Base.php:20
Bitrix\Catalog\Access\Install\Role\Base\getPermissionValue
getPermissionValue($permissionId)
Definition
Base.php:37
Bitrix\Catalog\Access\Install\Role\Base\getPermissions
getPermissions()
Bitrix\Catalog\Access\Permission\PermissionDictionary
Definition
PermissionDictionary.php:21
Bitrix\Catalog\Access\Install\Role
Definition
Base.php:9
modules
catalog
lib
Access
Install
Role
Base.php
Создано системой
1.10.0