Код |
---|
$property_enums = CIBlockPropertyEnum::GetList(Array("DEF"=>"DESC", "SORT"=>"ASC"), Array("IBLOCK_ID"=>$IBLOCK_ID, "XML_ID"=>"COLORS")); if($enum_fields = $property_enums->GetNext()) |
Код |
---|
$res = CIBlockElement::GetList(Array(), array("IBLOCK_ID"=>$IBLOCK_ID, "=PROPERTY_LIST"=>$enum_fields["ID"]), false, false, array("ID", "NAME")); |