Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Ginnw2
Created March 28, 2021 07:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Ginnw2/53430808d5048d2e73a3451f5240b079 to your computer and use it in GitHub Desktop.
Save Ginnw2/53430808d5048d2e73a3451f5240b079 to your computer and use it in GitHub Desktop.
Список элементов инфоблока со свойствами D7
<?
$dbItems = \Bitrix\Iblock\ElementTable::getList(array(
'select' => array('ID', 'NAME', 'IBLOCK_ID'),
'filter' => array('IBLOCK_ID' => $arParams['IBLOCK_ID'])
));
while ($arItem = $dbItems->fetch()){
$dbProperty = \CIBlockElement::getProperty(
$arItem['IBLOCK_ID'],
$arItem['ID']
);
while($arProperty = $dbProperty->Fetch()){
$arItem['PROPERTIES'][] = $arProperty;
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment