- Модуль: controller
- Путь к файлу: ~/bitrix/modules/controller/classes/general/controllerlog.php
- Класс: CControllerLog
- Вызов: CControllerLog::Update
static function Update($ID, $arFields)
{
/** @global CDatabase $DB */
global $DB;
if (!CControllerLog::CheckFields($arFields, $ID))
{
return false;
}
unset($arFields["TIMESTAMP_X"]);
$arFields["~TIMESTAMP_X"] = $DB->CurrentTimeFunction();
$arUpdateBinds = array();
$strUpdate = $DB->PrepareUpdateBind("b_controller_log", $arFields, "", false, $arUpdateBinds);
$strSql = "UPDATE b_controller_log SET ".$strUpdate." WHERE ID=".intval($ID);
$arBinds = array();
foreach ($arUpdateBinds as $field_id)
{
$arBinds[$field_id] = $arFields[$field_id];
}
$DB->QueryBind($strSql, $arBinds);
return true;
}