3namespace Bitrix\Calendar\Core\Builders\EventOption;
5use Bitrix\Calendar\Core\Builders\BuilderException;
6use Bitrix\Calendar\Core\EventCategory\EventCategory;
7use Bitrix\Calendar\Core\EventOption\OptionsDto;
8use Bitrix\Calendar\Core\Mappers\Factory;
9use Bitrix\Main\DI\ServiceLocator;
17 protected function getId(): ?int
19 return $this->eventOption[
'ID'] ??
null;
24 return $this->eventOption[
'EVENT_ID'] ??
null;
29 return $this->eventOption[
'CATEGORY_ID'] ??
null;
37 $mapperFactory = ServiceLocator::getInstance()->get(
'calendar.service.mappers.factory');
38 $eventCategoryFactory = $mapperFactory->getEventCategory();
40 return $eventCategoryFactory->getById($this->
getCategoryId());
48 return $this->eventOption[
'THREAD_ID'] ??
null;
53 return $this->eventOption[
'OPTIONS']
54 ? OptionsDto::fromArray($this->eventOption[
'OPTIONS'])
60 return $this->eventOption[
'ATTENDEES_COUNT'] ?? 0;
__construct(private readonly array $eventOption)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)