Skip to content

Instantly share code, notes, and snippets.

@anoriar
Created March 29, 2019 12:31
Show Gist options
  • Save anoriar/821f396035c756d3abbeeb9b98a2995d to your computer and use it in GitHub Desktop.
Save anoriar/821f396035c756d3abbeeb9b98a2995d to your computer and use it in GitHub Desktop.
$entity = \Bitrix\Iblock\Model\Section::compileEntityByIblock(IB_Catalog);
$section = $entity::getList(array(
'select' =>
[
'ID',
'CODE',
'IBLOCK_ID',
'DETAIL_PICTURE',
'PICTURE',
'UF_ICON',
'UF_PICTURE_LINK',
'UF_COLUMN',
'UF_NOT_SHOW_COUNT',
'NAME',
'SORT',
'UF_MENU_ALT_LINK'
],
'filter' =>
[
'ACTIVE' => 'Y',
'!UF_COLUMN' => false,
],
'order' =>
[
'UF_COLUMN' => 'ASC',
'SORT' => 'ASC'
],
));
$sections = [];
while ($arSection = $section->fetch()) {
$sections[$arSection["ID"]] = $arSection;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment