Documentation

UpdateCity

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

int
CSaleLocation::UpdateCity(
  int ID,
  array arFields
);

The method UpdateCity replaces the city parameters with the new ones from the supplied array.

Parameters

ParameterDescription
ID The city ID.
arFieldsAssociated array with parameters of the city to be updated. The following keys are possible:
  • NAME - the city name (language-independent);
  • SHORT_NAME - city name abbreviation (language-independent);
  • <language ID> - the key is the language name. The value is an associated array in the format:
    array("LID" => "language ID",
          "NAME" => "city name in this language",
          "SHORT_NAME" => "city name abbreviation in this language").
    Such pair must be specified for every language in the system.

Returned values

Returns the modified city ID on success, or false otherwise. 


© «Bitrix24», 2001-2024