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

Открытые члены

 findById (int $locationId, string $languageId, int $searchScope=LOCATION_SEARCH_SCOPE_ALL)
 findByExternalId (string $externalId, string $sourceCode, string $languageId, int $searchScope=LOCATION_SEARCH_SCOPE_ALL)
 findByCoords (float $lat, float $lng, int $zoom, string $languageId)
 autocomplete (array $params, int $searchScope=LOCATION_SEARCH_SCOPE_ALL)
 findParents (Entity\Location $location, string $languageId, int $searchScope=LOCATION_SEARCH_SCOPE_ALL)
 save (Entity\Location $location)
 delete (Entity\Location $location)
 saveParents (Entity\Location\Parents $parents)
Открытые члены унаследованные от BaseService
 __clone ()
 __wakeup ()

Защищенные члены

 __construct (Config\Container $config)
Защищенные члены унаследованные от BaseService
 processException (\Exception $exception)
 __construct (Container $config)

Защищенные данные

 $repository = null

Статические защищенные данные

static $instance
Статические защищенные данные унаследованные от BaseService
static $instance

Дополнительные унаследованные члены

Открытые статические члены унаследованные от BaseService
static getInstance ()
Защищенные статические члены унаследованные от BaseService
static createInstance (Container $config)
static getConfig (string $class)

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

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

Конструктор(ы)

◆ __construct()

__construct ( Config\Container $config)
protected

LocationService constructor.

Аргументы
Config\Container$config

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

Методы

◆ autocomplete()

autocomplete ( array $params,
int $searchScope = LOCATION_SEARCH_SCOPE_ALL )
Аргументы
array$params
int$searchScope
Возвращает
array

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

◆ delete()

delete ( Entity\Location $location)

Delete Location

Аргументы
Entity\Location$location
Возвращает
Result

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

◆ findByCoords()

findByCoords ( float $lat,
float $lng,
int $zoom,
string $languageId )

Find location by coordinates

Аргументы
float$lat
float$lng
int$zoom
string$languageId
Возвращает
Entity\Location|null

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

◆ findByExternalId()

findByExternalId ( string $externalId,
string $sourceCode,
string $languageId,
int $searchScope = LOCATION_SEARCH_SCOPE_ALL )

Find location by externalId

Аргументы
string$externalId
string$sourceCode
string$languageId
int$searchScope
Возвращает
Entity\Location|bool|null

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

◆ findById()

findById ( int $locationId,
string $languageId,
int $searchScope = LOCATION_SEARCH_SCOPE_ALL )

Find Location by locationId

Аргументы
int$locationId
string$languageId
int$searchScope
Возвращает
Entity\Location|null|bool

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

◆ findParents()

findParents ( Entity\Location $location,
string $languageId,
int $searchScope = LOCATION_SEARCH_SCOPE_ALL )

Find Location parents

Аргументы
Entity\Location$location
string$languageId
int$searchScope
Возвращает
Entity\Location\Parents|bool

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

◆ save()

save ( Entity\Location $location)

Save Location

Аргументы
Entity\Location$location
Возвращает
Result

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

◆ saveParents()

saveParents ( Entity\Location\Parents $parents)

Save parents from the location

Аргументы
Entity\Location\Parents$parents
Возвращает
Result

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

Поля

◆ $instance

$instance
staticprotected

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

◆ $repository

$repository = null
protected

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


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