• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/common.php
  • Класс: BitrixImOpenLinesCommon
  • Вызов: Common::getExecMode
static function getExecMode(): string
{
	$execMode = Option::get("imopenlines", "exec_mode");

	if (!empty($execMode) && in_array($execMode, [self::MODE_AGENT, self::MODE_CRON]))
	{
		return $execMode;
	}

	return self::MODE_AGENT;
}