1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
optionsdto.php
См. документацию.
1<?php
2
3namespace Bitrix\Calendar\Core\EventOption;
4
5use Bitrix\Main\Type\Contract\Arrayable;
6
7final class OptionsDto implements Arrayable, \JsonSerializable
8{
9 public function __construct(public readonly int $maxAttendees = 0)
10 {
11 }
12
13 public static function fromArray(array $params): self
14 {
15 return new self($params['max_attendees'] ?? 0);
16 }
17
18 public function toArray(): array
19 {
20 return [
21 'max_attendees' => $this->maxAttendees,
22 ];
23 }
24
25 public function jsonSerialize(): array
26 {
27 return $this->toArray();
28 }
29}
static fromArray(array $params)
Определения optionsdto.php:13
__construct(public readonly int $maxAttendees=0)
Определения optionsdto.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
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']
Определения template.php:799