CAdvBanner::Add: Bitrix method

      
<?php 
//  CAdvBanner :: Add()
//  /dist/bitrix/modules/advertising/classes/mysql/advertising.php:284

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