Пример работа с highload блоками в CMS 1С Битрикс
Редактировать
Общие статьи
<?php
$arBrands = [];
try {
\Bitrix\Main\Loader::includeModule("highloadblock");
$hlblock = Bitrix\Highloadblock\HighloadBlockTable::getById(HL_BRANDS)->fetch();
$entity = Bitrix\Highloadblock\HighloadBlockTable::compileEntity($hlblock);
$entityClass = $entity->getDataClass();
$rsData = $entityClass::getList(
[
"select" => ["*"],
"order" => ["ID" => "ASC"],
"filter" => ["!UF_FILE" => false]
]
);
while($arData = $rsData->Fetch()){
$arBrands[] = $arData;
}
} catch (\Exception $e) {
echo $e->getMessage();
}