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