Created
January 24, 2021 15:42
-
-
Save flayder/54b221670a5e9e99110faafb19014e0d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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