1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
Permission.php
См. документацию.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
Bitrix\Socialnetwork\Collab\Property;
6
7
use Bitrix\Main\Type\Contract\Arrayable;
8
9
class
Permission
implements
Arrayable
10
{
11
public
function
__construct
(
12
private
readonly
string
$feature,
13
private
readonly
array
$permissions
14
)
15
{
16
}
17
18
public
function
toArray
():
array
19
{
20
return
[$this->feature => $this->permissions];
21
}
22
23
public
function
isEmpty
(): bool
24
{
25
return
empty($this->permissions);
26
}
27
}
Bitrix\Socialnetwork\Collab\Property\Permission
Определения
Permission.php:10
Bitrix\Socialnetwork\Collab\Property\Permission\toArray
toArray()
Определения
Permission.php:18
Bitrix\Socialnetwork\Collab\Property\Permission\__construct
__construct(private readonly string $feature, private readonly array $permissions)
Определения
Permission.php:11
Bitrix\Socialnetwork\Collab\Property\Permission\isEmpty
isEmpty()
Определения
Permission.php:23
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Main\Type\Contract\Arrayable
Определения
arrayable.php:6
bitrix
modules
socialnetwork
lib
Collab
Property
Permission.php
Создано системой
1.14.0