<?
CModule::IncludeModule("highloadblock");
$arHLBlock = Bitrix\Highloadblock\HighloadBlockTable::getById(9)->fetch();
$obEntity = Bitrix\Highloadblock\HighloadBlockTable::compileEntity($arHLBlock);
$strEntityDataClass = $obEntity->getDataClass();
$res = $strEntityDataClass::getList(array(
'select' => array('UF_NAME', 'UF_XML_ID', 'ID'),
'order' => array('UF_XML_ID' => 'ASC'),
'filter' => array()
));
while ($arItem = $res->fetch()) {
$arName[$arItem['ID']] = $arItem['UF_NAME'];
}