Documentation

GetCityLangByID

This class has been deprecated. It's recommended to use methods of class Bitrix\Sale\Location.

array
CSaleLocation::GetCityLangByID(
  int ID,
  string strLang = LANGUAGE_ID
);

The method GetCityLangByID returns language dependent parameters of a city.

Parameters

ParameterDescription
ID The city ID.
strLang The ID of the language in which the language-dependent parameters will be returned. By default, the current language is used.

Return Values

Returns an associated array with the following keys.

Key Description
ID The record ID.
CITY_ID The city ID.
LID Language.
NAME Language-dependent city name.
SHORT_NAME Short language-dependent city name abbreviation.

 

© «Bitrix24», 2001-2024
Up