Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save flayder/54b221670a5e9e99110faafb19014e0d to your computer and use it in GitHub Desktop.
Save flayder/54b221670a5e9e99110faafb19014e0d to your computer and use it in GitHub Desktop.
if (!CModule::IncludeModule('highloadblock'))
return;
$rsData = \Bitrix\Highloadblock\HighloadBlockTable::getList(array('filter'=>array('TABLE_NAME'=>$arResult["PROPERTIES"]["BLOCK_PAY_5"]["USER_TYPE_SETTINGS"]["TABLE_NAME"])));
if ( ($hldata = $rsData->fetch()) ){
$hlentity = \Bitrix\Highloadblock\HighloadBlockTable::compileEntity($hldata);
$hlDataClass = $hldata['NAME'].'Table';
$res = $hlDataClass::getList(array(
'filter' => array(
'UF_XML_ID' => $arResult["PROPERTIES"]["BLOCK_PAY_5"]["VALUE"],
),
'select' => array("*"),
// 'order' => array(
// 'UF_NAME' => 'asc'
// ),
)
);
while ($row = $res->fetch()) {
echo "<pre>";
print_r($row);
echo "</pre>";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment