Documentation

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

ParameterDescription
by Name of the field by which the list is to be sorted. The following values are possible:
  • lid - by language ID;
  • active - by the active state flag;
  • name - by name;
  • def - by the default language flag.
оrder Sorting order. The following values are possible:
  • asc - by ascension
  • desc - by descension
filter An array of the ("filtered field"=>"value" [, ...]) format. Filtered field can have the following values:
  • LID - double-character language ID
  • NAME - name of the language;
  • ACTIVE - active state flag (Y|N)

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
Up