GetList
CDBResult CIBlockPropertyEnum::GetList( array arOrder = Array("SORT"=>"ASC", "VALUE"=>"ASC"), array arFilter = Array() );
Returns a filtered and sorted list of the LIST property value options.
Parameters
Parameter | Description |
---|---|
arOrder |
Optional sort order. Array of the format Array(by1=>order1[, by2=>order2 [, ..]]) where by is the field for
sorting. The field can have the following values:
|
arFilter |
Optional additional filter by fields in the form of Array("Filtered
field"=>"Value", ...). The Filtered field
can be the following:
|
Return Values
Returns an instance of CDBResultSee Also
Example
<? $property_enums = CIBlockPropertyEnum::GetList(Array("DEF"=>"DESC", "SORT"=>"ASC"), Array("IBLOCK_ID"=>$IBLOCK_ID, "CODE"=>"COLORS")); while($enum_fields = $property_enums->GetNext()) { echo $enum_fields["ID"]." - ".$enum_fields["VALUE"]."<br>"; } ?>
© «Bitrix24», 2001-2024