1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
OpenEvent.php
См. документацию.
1<?php
2
3namespace Bitrix\Calendar\OpenEvents\Item;
4
5use Bitrix\Calendar\EventOption\Dto\EventOptionsDto;
6use Bitrix\Main\Type\Contract\Arrayable;
7
8class OpenEvent implements Arrayable
9{
10 public function __construct(
11 public readonly int $id,
12 public readonly string $name,
13 public readonly int $dateFromTs,
14 public readonly int $dateToTs,
15 public readonly bool $isFullDay,
16 public readonly ?bool $isAttendee,
17 public readonly int $attendeesCount,
18 public readonly int $creatorId,
19 public readonly EventOptionsDto $eventOptions,
20 public readonly int $categoryId,
21 public readonly string $categoryName,
22 public readonly ?int $categoryChannelId = 0,
23 public readonly ?string $color = null,
24 public readonly ?int $commentsCount = 0,
25 public readonly ?int $threadId = 0,
26 public readonly ?bool $isNew = false,
27 public readonly ?string $rrule = null,
28 public readonly ?string $rruleDescription = null,
29 public readonly ?string $exdate = null,
30 )
31 {
32 }
33
34 public function toArray(): array
35 {
36 return [
37 'id' => $this->id,
38 'name' => $this->name,
39 'dateFromTs' => $this->dateFromTs,
40 'dateToTs' => $this->dateToTs,
41 'isFullDay' => $this->isFullDay,
42 'isAttendee' => $this->isAttendee,
43 'attendeesCount' => $this->attendeesCount,
44 'eventOptions' => $this->eventOptions?->toArray(),
45 'creatorId' => $this->creatorId,
46 'categoryId' => $this->categoryId,
47 'categoryName' => $this->categoryName,
48 'categoryChannelId' => $this->categoryChannelId,
49 'color' => $this->color,
50 'commentsCount' => $this->commentsCount,
51 'threadId' => $this->threadId,
52 'isNew' => $this->isNew,
53 'rrule' => $this->rrule,
54 'rruleDescription' => $this->rruleDescription,
55 'exdate' => $this->exdate,
56 ];
57 }
58}
__construct(public readonly int $id, public readonly string $name, public readonly int $dateFromTs, public readonly int $dateToTs, public readonly bool $isFullDay, public readonly ?bool $isAttendee, public readonly int $attendeesCount, public readonly int $creatorId, public readonly EventOptionsDto $eventOptions, public readonly int $categoryId, public readonly string $categoryName, public readonly ?int $categoryChannelId=0, public readonly ?string $color=null, public readonly ?int $commentsCount=0, public readonly ?int $threadId=0, public readonly ?bool $isNew=false, public readonly ?string $rrule=null, public readonly ?string $rruleDescription=null, public readonly ?string $exdate=null,)
Определения OpenEvent.php:10
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$name
Определения menu_edit.php:35