• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/mysql/ratings.php
  • Класс: CRatings
  • Вызов: CRatings::AddComponentResults
static function AddComponentResults($arComponentConfigs)
{
	global $DB;
	$err_mess = (CRatings::err_mess())."
Function: AddComponentResults
Line: "; if (!is_array($arComponentConfigs)) return false; $strSql = " UPDATE b_rating_component SET LAST_CALCULATED = ".$DB->GetNowFunction().", NEXT_CALCULATION = '".date('Y-m-d H:i:s', time()+$arComponentConfigs['REFRESH_INTERVAL'])."' WHERE RATING_ID = ".intval($arComponentConfigs['RATING_ID'])." AND COMPLEX_NAME = '".$DB->ForSql($arComponentConfigs['COMPLEX_NAME'])."'"; $DB->Query($strSql, false, $err_mess.__LINE__); return true; }