• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/agent.php
  • Класс: CAllAgent
  • Вызов: CAllAgent::OnCron
static function OnCron()
{
	if (COption::GetOptionString('main', 'agents_use_crontab', 'N') == 'Y' || (defined('BX_CRONTAB_SUPPORT') && BX_CRONTAB_SUPPORT === true))
	{
		return (defined('BX_CRONTAB') && BX_CRONTAB === true);
	}
	return null;
}