EventBuilder::prepareMeetingDescription

  1. Bitrix24 API (v. 23.675.0)
  2. calendar
  3. EventBuilder
  4. prepareMeetingDescription
  • Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/core/builders/eventbuilder.php
  • Класс: BitrixCalendarCoreBuildersEventBuilder
  • Вызов: EventBuilder::prepareMeetingDescription
protected function prepareMeetingDescription($meeting = null): ?MeetingDescription
{
	if (!isset($meeting))
	{
		return null;
	}

	$meeting = is_string($meeting)
		? unserialize($meeting, ['allowed_classes' => false])
		: $meeting;

	if ($meeting && !empty($meeting['HOST_NAME']))
	{
		return (new MeetingDescription())
			->setAllowInvite((bool)($meeting['ALLOW_INVITE'] ?? null))
			->setReInvite((bool)($meeting['REINVITE'] ?? null))
			->setHideGuests((bool)($meeting['HIDE_GUESTS'] ?? null))
			->setHostName($meeting['HOST_NAME'])
			->setIsNotify((bool)($meeting['NOTIFY'] ?? null))
			->setMeetingCreator((int)($meeting['MEETING_CREATOR'] ?? null))
			->setLanguageId($meeting['LANGUAGE_ID'] ?? null)
			->setMailFrom($meeting['MAIL_FROM'] ?? null)
			->setChatId($meeting['CHAT_ID'] ?? null)
		;
	}

	return null;
}

Добавить комментарий