GetList
CDBResult CIBlockType::GetList( array arOrder = Array("SORT"=>"ASC"), array arFilter = Array() );
Returns a sorted and filtered list of information block types.
Parameters
Parameter | Description |
---|---|
arOrder |
Array of the fields for sorting. Contains pairs "sorting
field"=>"sorting direction". The sorting field
can be one of the following:
|
arFilter | An array of the format Array("filtering field"=>"value" [, ...]).
The filtering field can be the following:
|
Return Values
Returns an instance of CDBResultSee Also
Example
<? $db_iblock_type = CIBlockType::GetList(); while($ar_iblock_type = $db_iblock_type->Fetch()) { if($arIBType = CIBlockType::GetByIDLang($ar_iblock_type["ID"], LANG)) { echo htmlspecialcharsex($arIBType["NAME"])."<br>"; } } ?>
© «Bitrix24», 2001-2024