• Модуль: statistic
  • Путь к файлу: ~/bitrix/modules/statistic/classes/general/keepstatistic.php
  • Класс: CKeepStatistics
  • Вызов: CKeepStatistics::Keep
static function Keep($HANDLE_CALL=false)
{

	__SetNoKeepStatistics();
	__GoogleAd();

	$GO = true;
	if(defined("STOP_STATISTICS")) $GO = false;
	if($HANDLE_CALL) $GO = true;

	if($GO && (!isset($_SESSION["SESS_NO_KEEP_STATISTIC"]) || $_SESSION["SESS_NO_KEEP_STATISTIC"]!="Y") && !defined("NO_KEEP_STATISTIC"))
	{
		$GLOBALS["DB"]->StartUsingMasterOnly();
		if(CStatistics::CheckSkip())
			CStatistics::ReallyKeep();
		$GLOBALS["DB"]->StopUsingMasterOnly();
	}
}