• Модуль: pull
  • Путь к файлу: ~/bitrix/modules/pull/classes/general/pull_options.php
  • Класс: CPullOptions
  • Вызов: CPullOptions::SetPushStatus
static function SetPushStatus($flag = "N")
{
	COption::SetOptionString("pull", "push", $flag=='Y'?'Y':'N');
	if ($flag == 'Y')
		CAgent::AddAgent("CPushManager::SendAgent();", "pull", "N", 30);
	else
		CAgent::RemoveAgent("CPushManager::SendAgent();", "pull");

	return true;
}