Created
March 28, 2021 07:21
-
-
Save Ginnw2/53430808d5048d2e73a3451f5240b079 to your computer and use it in GitHub Desktop.
Список элементов инфоблока со свойствами D7
This file contains 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
<? | |
$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