CAdvBanner :: GetStatAdvArray: Bitrix method

      
<?php 
//  CAdvBanner :: GetStatAdvArray()
//  /dist/bitrix/modules/advertising/classes/general/advertising.php:1703

    
public static function GetStatAdvArray($BANNER_ID)
    {
        
$err_mess = (CAdvBanner_all::err_mess())."<br>Function: GetStatAdvArray<br>Line: ";
        global 
$DB;
        
$BANNER_ID intval($BANNER_ID);
        if (
$BANNER_ID<=0)
            return 
false;
        
$arrRes = array();
        
$strSql "
            SELECT DISTINCT
                STAT_ADV_ID
            FROM
                b_adv_banner_2_stat_adv
            WHERE
                BANNER_ID = 
$BANNER_ID
            "
;
        
$rs $DB->Query($strSqlfalse$err_mess.__LINE__);
        while (
$ar $rs->Fetch())
            
$arrRes[] = $ar["STAT_ADV_ID"];
        return 
$arrRes;
    }