Created
March 29, 2019 12:31
-
-
Save anoriar/821f396035c756d3abbeeb9b98a2995d to your computer and use it in GitHub Desktop.
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
$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