CAdvContract :: GetAdvertisersArray: Bitrix method

      
<?php 
//  CAdvContract :: GetAdvertisersArray()
//  /dist/bitrix/modules/advertising/classes/general/advertising.php:177

    
public static function GetAdvertisersArray()
    {
        
$arrRes = array();
        
$arGroups CAdvContract::GetGroupsByRole(CAdvContract::GetAdvertiserRoleID());
        if (
is_array($arGroups) && count($arGroups)>0)
        {
            
$rsUser CUser::GetList($v1="id"$v2="desc", array("ACTIVE" => "Y""GROUPS_ID" => $arGroups));
            while (
$arUser $rsUser->Fetch()) $arrRes[] = $arUser;
        }
        return 
$arrRes;
    }