Documentation

GetGroupLangByID

array
CSaleLocationGroup::GetGroupLangByID(
  int ID,
  string strLang = LANGUAGE_ID
);

The method GetGroupLangByID returns the language-dependent parameters of the location group.

Parameters

ParameterDescription
ID The location group ID.
strLang The ID of the language in which the language-dependent parameters are to be returned. By default, the current language is used.

Returned values

Returns an associated array with the following keys.

Key Description
ID The record ID.
LOCATION_GROUP_ID The location group ID.
NAME Group name.
LID Language in which the name is returned.

Example


<?
$arGroupLang = CSaleLocationGroup::GetGroupLangByID(2, "en");
echo $arGroupLang["NAME"];
?>
© «Bitrix24», 2001-2024
Up