Created
January 17, 2018 15:47
-
-
Save alexey-kar/b54c6b5f2ebecff1b4e3efd48f5d74ce to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$arSelect = array('ID', 'IBLOCK_ID', 'NAME', 'PROPERTY_*'); | |
$arFilter = array( | |
'IBLOCK_ID' => $iblock_id, | |
/*'ACTIVE_DATE'=>'Y',*/ | |
'ACTIVE' => 'Y', | |
'CHECK_PERMISSIONS' => 'Y', | |
'MIN_PERMISSION' => 'R', | |
'PERMISSIONS_BY' => $USER->GetID(), | |
); | |
$arSort = array( | |
'PROPERTY_OBOROT_PLAN' => 'nulls,asc', | |
); | |
$res = \CIBlockElement::GetList($arSort, $arFilter, false, array(), $arSelect); | |
while ($ob = $res->GetNextElement()) { | |
$arFields = $ob->GetFields(); | |
$arFields['PROPS'] = $ob->GetProperties(); | |
$arElements[] = $arFields; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment