CAdvBanner :: GetGroupArray: Bitrix method

      
<?php 
//  CAdvBanner :: GetGroupArray()
//  /dist/bitrix/modules/advertising/classes/general/advertising.php:1577

    
public static function GetGroupArray($BANNER_ID)
    {
        
$err_mess = (CAdvBanner_all::err_mess())."<br>Function: GetGroupArray<br>Line: ";
        global 
$DB;
        
$BANNER_ID intval($BANNER_ID);
        if (
$BANNER_ID<=0)
            return 
false;
        
$arrRes = array();

        
$strSql "
            SELECT
                GROUP_ID
            FROM
                b_adv_banner_2_group
            WHERE
                BANNER_ID = 
$BANNER_ID
            "
;
        
$rs $DB->Query($strSqlfalse$err_mess.__LINE__);
        while (
$ar $rs->Fetch())
            
$arrRes[] = $ar["GROUP_ID"];
        return 
$arrRes;
    }