EventCloner::getReminders

  1. Bitrix24 API (v. 23.675.0)
  2. calendar
  3. EventCloner
  4. getReminders
  • Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/core/builders/eventcloner.php
  • Класс: BitrixCalendarCoreBuildersEventCloner
  • Вызов: EventCloner::getReminders
protected function getReminders(): RemindCollection
{
	$result = new RemindCollection();
	if ($this->originalEvent->getRemindCollection())
	{
		$result
			->setCollection($this->originalEvent->getRemindCollection()->getCollection())
			->setSingle($this->originalEvent->getRemindCollection()->isSingle())
		;
		if ($this->originalEvent->getRemindCollection()->getEventStart())
		{
			$result->setEventStart($this->cloneDate($this->originalEvent->getRemindCollection()->getEventStart()));
		}
		else if ($this->originalEvent->getStart())
		{
			$result->setEventStart($this->cloneDate($this->originalEvent->getStart()));
		}
	}

	return $result;
}

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