1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс SalesZone

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

static getAllRegions ($lang)
static getAllCities ($lang)
static checkCountryId ($countryId, $siteId)
static checkRegionId ($regionId, $siteId)
static checkCityId ($cityId, $siteId)
static checkLocationId ($locationId, $siteId)
static setSelectedIds ($siteId, $ids)
static getSelectedIds ($siteId)
static getCitiesIds ($siteId)
static getRegionsIds ($siteId)
static getCountriesIds ($siteId)
static saveSelectedTypes ($typeList, $siteId)
static makeSearchFilter ($object, $siteId)
static getRegions ($countriesIds=array(), $lang=LANGUAGE_ID)
static getCities ($countriesIds=array(), $regionsIds=array(), $lang)

Поля данных

const CONN_ENTITY_NAME = 'Bitrix\Sale\Location\SiteLocation'
const LOCATION_ENTITY_NAME = 'Bitrix\Sale\Location\Location'

Статические открытые данные

static $zoneCache = array()

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

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

Методы

◆ checkCityId()

checkCityId ( $cityId,
$siteId )
static

Checks if citiy Id is in list of sales zone cities Ids

Аргументы
int$cityId
string$siteId
Возвращает
bool

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

◆ checkCountryId()

checkCountryId ( $countryId,
$siteId )
static

Checks if country Id is in list of sales zone countries Ids.

Аргументы
int$countryId
string$siteId
Возвращает
bool

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

◆ checkLocationId()

checkLocationId ( $locationId,
$siteId )
static

Checks if location id is in sales zone

Аргументы
int$locationId
string$siteId
Возвращает
bool

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

◆ checkRegionId()

checkRegionId ( $regionId,
$siteId )
static

Checks if regionId is in list of sales zone regions Ids

Аргументы
int$regionId
string$siteId
Возвращает
bool

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

◆ getAllCities()

getAllCities ( $lang)
static
Аргументы
string$lang- language Id
Возвращает
array - list of all cities

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

◆ getAllRegions()

getAllRegions ( $lang)
static
Аргументы
string$lang- language Id
Возвращает
array - list of all regions

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

◆ getCities()

getCities ( $countriesIds = array(),
$regionsIds = array(),
$lang )
static
Аргументы
array$countriesIds
array$regionsIds
string$lang
Возвращает
array cities list from sales zone

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

◆ getCitiesIds()

getCitiesIds ( $siteId)
static
Аргументы
string$siteId
Возвращает
array - sales zones cities Ids

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

◆ getCountriesIds()

getCountriesIds ( $siteId)
static
Аргументы
string$siteId
Возвращает
array - sales zones countries Ids

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

◆ getRegions()

getRegions ( $countriesIds = array(),
$lang = LANGUAGE_ID )
static
Аргументы
array$countriesIds
string$lang
Возвращает
array - regions from sales zone

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

◆ getRegionsIds()

getRegionsIds ( $siteId)
static
Аргументы
string$siteId
Возвращает
array - sales zones regions Ids

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

◆ getSelectedIds()

getSelectedIds ( $siteId)
static

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

◆ makeSearchFilter()

makeSearchFilter ( $object,
$siteId )
static

Returns filter for using in queries such as in bitrix/modules/sale/install/components/bitrix/sale.ajax.locations/search.php

Аргументы
string$object(city|region|country)
string$siteId
Возвращает
array

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

◆ saveSelectedTypes()

saveSelectedTypes ( $typeList,
$siteId )
static

A very important function. Here we decide what locations we need to take, making a descision based on $_REQUEST from sales zone selector.

Then we normalize the selection and store to database.

Also this function is used in data migrator.

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

◆ setSelectedIds()

setSelectedIds ( $siteId,
$ids )
static

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

Поля

◆ $zoneCache

$zoneCache = array()
static

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

◆ CONN_ENTITY_NAME

const CONN_ENTITY_NAME = 'Bitrix\Sale\Location\SiteLocation'

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

◆ LOCATION_ENTITY_NAME

const LOCATION_ENTITY_NAME = 'Bitrix\Sale\Location\Location'

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


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