Remind::getSpecificTime

  1. Bitrix24 API (v. 23.675.0)
  2. calendar
  3. Remind
  4. getSpecificTime
  • Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/core/event/properties/remind.php
  • Класс: BitrixCalendarCoreEventPropertiesRemind
  • Вызов: Remind::getSpecificTime
public function getSpecificTime(): Date
{
	if (
		$this->specificTime === null
		&& $this->time !== null
		&& $this->units
		&& $this->eventStart !== null
	)
	{
		return (clone $this->eventStart)->sub("{$this->time} {$this->units}");
	}

	if ($this->specificTime)
	{
		return $this->specificTime;
	}

	throw new PropertyException('It is impossible to perform this operation. You should set property $eventStart or $specificTime');
}

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