• Модуль: statistic
  • Путь к файлу: ~/bitrix/modules/statistic/classes/general/statistic.php
  • Класс: CAllStatistics
  • Вызов: CAllStatistics::Set404
static function Set404($table = false, $where = false, $arrUpdate = false)
{
	$DB = CDatabase::GetModuleConnection('statistic');
	static $STAT_DB_404 = array();

	if($table !== false)
	{
		if($table <> '' && $where <> '' && is_array($arrUpdate))
		{
			foreach($arrUpdate as $field => $value)
			{
				$STAT_DB_404[$table][$where][$field] = "'".$DB->ForSql($value)."'";
			}
		}
	}
	else
	{
		if(defined("ERROR_404") && ERROR_404=="Y")
		{
			foreach($STAT_DB_404 as $table => $arrWhere)
			{
				foreach($arrWhere as $where => $arFields)
				{
					$DB->Update($table, $arFields, "WHERE ".$where, "File: ".__FILE__."
Line: ".__LINE__); unset($STAT_DB_404[$table][$where]); } unset($STAT_DB_404[$table]); } $STAT_DB_404 = array(); } } }