<? if (!CModule::IncludeModule('highloadblock')) continue;
$ID = 2;
$hldata = Bitrix\Highloadblock\HighloadBlockTable::getById($ID)->fetch();
$hlentity = Bitrix\Highloadblock\HighloadBlockTable::compileEntity($hldata);
$hlDataClass = $hldata['NAME'].'Table';
$arResult['CUSTOM'] = [];
$arFilter = Array(
Array(
"LOGIC"=>"AND",
Array(
'UF_XML_ID'=> $arItem['PROPERTIES']['YEAR']['VALUE']
)
)
);
$result = $hlDataClass::getList(array(
'select' => array('ID', 'UF_NAME', 'UF_XML_ID'),
'order' => array('UF_XML_ID' =>'ASC'),
'filter' => $arFilter,
));
while ($res = $result->fetch()) {
print_r($res);
}
?>
<? if (!CModule::IncludeModule('highloadblock')) continue;
$ID = 2;
$hldata = Bitrix\Highloadblock\HighloadBlockTable::getById($ID)->fetch();
$hlentity = Bitrix\Highloadblock\HighloadBlockTable::compileEntity($hldata);
$hlDataClass = $hldata['NAME'].'Table';
$arResult['CUSTOM'] = [];
$arFilter = Array(
Array(
"LOGIC"=>"AND",
Array(
'UF_XML_ID'=> $arItem['PROPERTIES']['YEAR']['VALUE']
)
)
);
$result = $hlDataClass::getList(array(
'select' => array('ID', 'UF_NAME', 'UF_XML_ID'),
'order' => array('UF_XML_ID' =>'ASC'),
'filter' => $arFilter,
));
$arReturn = [];
while ($res = $result->fetch()) {
$arReturn[] = $res;
}
?>