- Модуль: socialnetwork
- Путь к файлу: ~/bitrix/modules/socialnetwork/classes/mysql/log_events.php
- Класс: CSocNetLogEvents
- Вызов: CSocNetLogEvents::Update
static function Update($ID, $arFields)
{
global $DB;
$ID = intval($ID);
if ($ID <= 0)
{
$GLOBALS["APPLICATION"]->ThrowException(GetMessage("SONET_LE_WRONG_PARAMETER_ID"), "ERROR_NO_ID");
return false;
}
$arFields1 = BitrixSocialnetworkUtil::getEqualityFields($arFields);
if (!CSocNetLogEvents::CheckFields("UPDATE", $arFields, $ID))
return false;
$strUpdate = $DB->PrepareUpdate("b_sonet_log_events", $arFields);
BitrixSocialnetworkUtil::processEqualityFieldsToUpdate($arFields1, $strUpdate);
if ($strUpdate <> '')
{
$strSql =
"UPDATE b_sonet_log_events SET ".
" ".$strUpdate." ".
"WHERE ID = ".$ID." ";
$DB->Query($strSql, False, "File: ".__FILE__."
Line: ".__LINE__);
}
else
{
$ID = False;
}
return $ID;
}