• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/call/conference.php
  • Класс: BitrixImCallConference
  • Вызов: Conference::getStatus
public function getStatus(): string
{
	//todo
	if (!($this->startDate instanceof DateTime))
	{
		return self::STATE_FINISHED;
	}

	$now = time();
	$startTimestamp = $this->startDate->getTimestamp();

	//TODO: active and finished
	if ($startTimestamp > $now)
	{
		return self::STATE_NOT_STARTED;
	}

	return self::STATE_FINISHED;
}