EventBuilder::getSpecialLabel

  1. Bitrix24 API (v. 23.675.0)
  2. calendar
  3. EventBuilder
  4. getSpecialLabel
  • Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/core/builders/eventbuilder.php
  • Класс: BitrixCalendarCoreBuildersEventBuilder
  • Вызов: EventBuilder::getSpecialLabel
protected function getSpecialLabel(): ?string;

/**
 * @return string|null
 */
abstract protected function getUid(): ?string;

/**
 * @return bool
 */
abstract protected function isDeleted(): bool;

/**
 * @return bool
 */
abstract protected function isActive(): bool;

/**
 * @return int|null
 */
abstract protected function getRecurrenceId(): ?int;

/**
 * @return Date|null
 */
abstract protected function getOriginalDate(): ?Date;

/**
 * @return Date|null
 */
abstract protected function getDateCreate(): ?Date;

/**
 * @return Date|null
 */
abstract protected function getDateModified(): ?Date;

/**
 * @return ExcludedDatesCollection
 */
abstract protected function getExcludedDate(): ExcludedDatesCollection;

/**
 * @return bool
 */
abstract protected function isMeeting(): bool;

/**
 * @return string|null
 */
abstract protected function getMeetingStatus(): ?string;

/**
 * @return Relations|null
 */
abstract protected function getRelations(): ?Relations;

/**
 * @param $meeting
 *
 * @return MeetingDescription|null
 */
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;
}

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