GetList
CDBResult CLanguage::GetList( string &by = "lid", string &order = "asc", array filter = array() )
The method returns the list of languages as the CDBResult class object. Non-static method.
Parameters
Parameter | Description |
---|---|
by | Name of the field by which the list is to be sorted. The following values are possible:
|
оrder | Sorting order. The following values are possible:
|
filter | An array of the ("filtered field"=>"value" [, ...]) format. Filtered field can have the following values:
|
See Also
Examples of use
<? $rsLang = CLanguage::GetList($by="lid", $order="desc", Array("NAME" => "English")); while ($arLang = $rsLang->Fetch()) { echo "<pre>"; print_r($arLang); echo "</pre>"; } ?>
© «Bitrix24», 2001-2024