Skip to content

Instantly share code, notes, and snippets.

@s2ar
Last active April 23, 2016 08:26
Show Gist options
  • Save s2ar/4fbf772399d4b40bb73e to your computer and use it in GitHub Desktop.
Save s2ar/4fbf772399d4b40bb73e to your computer and use it in GitHub Desktop.
bitrix.get property enum
<?php
$aPropList = array();
$rEnum = CIBlockProperty::GetPropertyEnum($propID, Array('SORT'=>'ASC'), Array("IBLOCK_ID"=>2));
while($aEnum = $rEnum->Fetch()){
$aPropList[] = array('id'=>$aEnum['ID'], 'code'=>$aEnum['XML_ID'] ,'value'=>$aEnum['VALUE']);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment