• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/lib/eventoffline.php
  • Класс: BitrixRestEventOfflineTable
  • Вызов: EventOfflineTable::prepareOfflineEvent
static function prepareOfflineEvent($params, $handler)
{
	$data = reset($params);
	if (!is_array($data['APP_LIST']) || !in_array((int) $handler['APP_ID'], $data['APP_LIST'], true))
	{
		throw new RestException('Wrong application.');
	}

	$timeout = $handler['OPTIONS']['minTimeout'] ?? null;
	if (!static::checkSendTime($handler['ID'], $timeout))
	{
		throw new RestException('Time is not up.');
	}

	return null;
}