• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/runtime/job.php
  • Класс: Bitrix\Sender\Runtime\Job
  • Вызов: Job::addAgent
protected function addAgent($agentName, $interval = 60, $nextDateExec = '')
{
	if (!$agentName || !is_string($agentName))
	{
		return;
	}

	$agent = new \CAllAgent();
	$agent->AddAgent(
		$agentName,
		"sender",
		"N",
		(int) $interval,
		null,
		"Y",
		(string) $nextDateExec
	);
}