Skip to content

Instantly share code, notes, and snippets.

@webag
Created June 21, 2019 07:53
Show Gist options
  • Save webag/482280a27dc629a4ba1c8f135b96f177 to your computer and use it in GitHub Desktop.
Save webag/482280a27dc629a4ba1c8f135b96f177 to your computer and use it in GitHub Desktop.
Получить список элементов инфоблока D7 bitrix битрикс
<?
$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;
}
}
?>
@creio
Copy link

creio commented Oct 3, 2022

нет урлов

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment