1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
eventcategorybuilderfromarray.php
См. документацию.
1<?php
2
3namespace Bitrix\Calendar\Core\Builders\EventCategory;
4
6{
7 public function __construct(private readonly array $eventCategory)
8 {
9 }
10
11 protected function getId(): ?int
12 {
13 return $this->eventCategory['ID'] ?? null;
14 }
15
16 protected function getName(): ?string
17 {
18 return $this->eventCategory['NAME'] ?? null;
19 }
20
21 protected function getCreatorId(): ?int
22 {
23 return $this->eventCategory['CREATOR_ID'] ?? null;
24 }
25
26 protected function getClosed(): bool
27 {
28 return $this->eventCategory['CLOSED'] ?? false;
29 }
30
31 protected function getDescription(): string
32 {
33 return $this->eventCategory['DESCRIPTION'] ?? '';
34 }
35
36 protected function getAccessCodes(): array
37 {
38 return $this->eventCategory['ACCESS_CODES'] ?? [];
39 }
40
41 protected function getDeleted(): bool
42 {
43 return $this->eventCategory['DELETED'] ?? false;
44 }
45
46 protected function getChannelId(): int
47 {
48 return $this->eventCategory['CHANNEL_ID'] ?? 0;
49 }
50
51 protected function getEventsCount(): int
52 {
53 return $this->eventCategory['EVENT_COUNT'] ?? 0;
54 }
55}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804