1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
EventCategoryPermissions.php
См. документацию.
1<?php
2
3namespace Bitrix\Calendar\EventCategory\Dto;
4
5use Bitrix\Main\Type\Contract\Arrayable;
6
7final 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}
__construct(public readonly bool $edit, public readonly bool $delete,)
Определения EventCategoryPermissions.php:9
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804