1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
EventCategoryPermissions.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Calendar\EventCategory\Dto;
4
5
use Bitrix\Main\Type\Contract\Arrayable;
6
7
final
class
EventCategoryPermissions
implements
\JsonSerializable,
Arrayable
8
{
9
public
function
__construct
(
10
public
readonly
bool
$edit,
11
public
readonly
bool
$delete,
12
)
13
{
14
}
15
16
public
static
function
initRestricted
(): self
17
{
18
return
new
self
(edit:
false
,
delete
:
false
);
19
}
20
21
public
function
toArray
():
array
22
{
23
return
[
24
'edit'
=> $this->edit,
25
'delete'
=> $this->delete,
26
];
27
}
28
29
public
function
jsonSerialize
():
array
30
{
31
return
$this->
toArray
();
32
}
33
}
Bitrix\Calendar\EventCategory\Dto\EventCategoryPermissions
Определения
EventCategoryPermissions.php:8
Bitrix\Calendar\EventCategory\Dto\EventCategoryPermissions\initRestricted
static initRestricted()
Определения
EventCategoryPermissions.php:16
Bitrix\Calendar\EventCategory\Dto\EventCategoryPermissions\toArray
toArray()
Определения
EventCategoryPermissions.php:21
Bitrix\Calendar\EventCategory\Dto\EventCategoryPermissions\__construct
__construct(public readonly bool $edit, public readonly bool $delete,)
Определения
EventCategoryPermissions.php:9
Bitrix\Calendar\EventCategory\Dto\EventCategoryPermissions\jsonSerialize
jsonSerialize()
Определения
EventCategoryPermissions.php:29
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
calendar
lib
EventCategory
Dto
EventCategoryPermissions.php
Создано системой
1.14.0