CAdvBanner :: Update: Bitrix method

      
<?php 
//  CAdvBanner :: Update()
//  /dist/bitrix/modules/advertising/classes/mysql/advertising.php:252

    
public static function Update($arFields$BANNER_ID)
    {
        
$err_mess = (CAdvBanner::err_mess())."<br>Function: Update<br>Line: ";
        global 
$DB;
        
$arrKeys array_keys($arFields);
        if (
in_array("CODE"$arrKeys))
        {
            
$arFields["CODE"] = "'".$DB->ForSql($arFields["CODE"])."'";
        }
        
$DB->Update("b_adv_banner",$arFields,"WHERE ID='".intval($BANNER_ID)."'",$err_mess.__LINE__);
    }