Documentation

GetByIDLang

mixed
CIBlockType::GetByIDLang(
 string ID,
 string LANGUAGE_ID,
 bool bFindAny = true
);

The method returns the language settings of the information block type by its ID for the specified language. If the requested language settings cannot be found and the parameter bFindAny is true, the method returns settings of the default language.

Parameters

ParameterDescription
ID Information block type ID.

Return Values

Returns an array of the information block type fields on success, or false otherwise.

See Also

  • Information block type fields

    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
    Up