1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Location
Граф наследования:Location:
ExternalLocationMap

Открытые статические члены

static compare ($startKey=0, $timeout=0, $updateExist=false)
Открытые статические члены унаследованные от ExternalLocationMap
static getInternalId ($externalCode)
static getExternalId ($locationId)
static getCityId ($locationId)
static install ()
static unInstall ()
static isInstalled ()
static refresh ()
static importFromCsv ($path)
static exportToCsv ($path)
static getExternalServiceId ()
static setExternalLocation2 ($srvId, $locationId, $xmlId, $updateExist=false)
static setExternalLocation ($srvId, $locationId, $xmlId, $updateExist=false)
static fillNormalizedTable ($startId=false, $timeout=0)
static getLocationIdByNames ($name, $city, $subregion, $region, $country='', $exactOnly=false)

Поля данных

const EXTERNAL_SERVICE_CODE = 'PECOM'
const CSV_FILE_PATH = '/bitrix/modules/sale/ru/delivery/pecom/location.csv'
Поля данных унаследованные от ExternalLocationMap
const EXTERNAL_SERVICE_CODE = ''
const CSV_FILE_PATH = ''
const CITY_NAME_IDX = 0
const REGION_NAME_IDX = 1
const CITY_XML_ID_IDX = 2

Защищенные статические члены

static mapByNames ($locations, $srvId, $startKey=0, $timeout=0, $updateExist=false)
static setMap (array $cities)
static getAllLocations ()
static getParents (array $cityNames)
static extractDistrict (&$cityName)
Защищенные статические члены унаследованные от ExternalLocationMap
static getUpperCityExternalId ($locationId, $srvId)
static isNormalizedTableFilled ()
static getIdByMargin ($parentLeft, $parentRight, $lMargins)
static getNameByMargin ($parentLeft, $parentRight, $lMargins)

Подробное описание

См. определение в файле location.php строка 25

Методы

◆ compare()

compare ( $startKey = 0,
$timeout = 0,
$updateExist = false )
static

См. определение в файле location.php строка 30

◆ extractDistrict()

extractDistrict ( & $cityName)
staticprotected

SOKOLOVSKOE (GULKELIVICHSKIY R-N) => GULKELIVICHSKIY R-N

Аргументы
$cityName
Возвращает
string

См. определение в файле location.php строка 273

◆ getAllLocations()

getAllLocations ( )
staticprotected
Возвращает
Result

Переопределяет метод предка ExternalLocationMap.

См. определение в файле location.php строка 142

◆ getParents()

getParents ( array $cityNames)
staticprotected

Find regions by city names.

Аргументы
array$cityNames
Возвращает
array
Исключения

Bitrix\Main\ArgumentException

См. определение в файле location.php строка 234

◆ mapByNames()

mapByNames ( $locations,
$srvId,
$startKey = 0,
$timeout = 0,
$updateExist = false )
staticprotected
Аргументы
array$locations
int$srvId
int$startKey
int$timeout
bool$updateExist
Возвращает
int Last processed id.
Исключения
ArgumentNullException

Bitrix\Main\ArgumentException

См. определение в файле location.php строка 72

◆ setMap()

setMap ( array $cities)
staticprotected

Convert find location by city and region names and add mapping to base

Аргументы
array$cities
Возвращает
Result
Исключения
ArgumentNullException

Bitrix\Main\ArgumentException

Исключения

Exception

Переопределяет метод предка ExternalLocationMap.

См. определение в файле location.php строка 134

Поля

◆ CSV_FILE_PATH

const CSV_FILE_PATH = '/bitrix/modules/sale/ru/delivery/pecom/location.csv'

См. определение в файле location.php строка 28

◆ EXTERNAL_SERVICE_CODE

const EXTERNAL_SERVICE_CODE = 'PECOM'

См. определение в файле location.php строка 27


Объявления и описания членов класса находятся в файле: