9use \Bitrix\Location\Repository\LocationRepository;
10use \Bitrix\Location\Infrastructure\Service\Config;
21 use \Bitrix\Location\Common\RepositoryTrait;
37 public function findById(
int $locationId,
string $languageId,
int $searchScope = LOCATION_SEARCH_SCOPE_ALL)
43 $result = $this->repository->findById($locationId, $languageId, $searchScope);
62 public function findByExternalId(
string $externalId,
string $sourceCode,
string $languageId,
int $searchScope = LOCATION_SEARCH_SCOPE_ALL)
68 $result = $this->repository->findByExternalId($externalId, $sourceCode, $languageId, $searchScope);
83 public function autocomplete(array $params,
int $searchScope = LOCATION_SEARCH_SCOPE_ALL)
89 $result = $this->repository->autocomplete($params, $searchScope);
114 $result = $this->repository->findParents($location, $languageId, $searchScope);
132 return $this->repository->save($location);
143 return $this->repository->delete($location);
153 $this->setRepository($config->get(
'repository'));
154 parent::__construct($config);
166 return $this->repository->saveParents($parents);
processException(\Exception $exception)
findByExternalId(string $externalId, string $sourceCode, string $languageId, int $searchScope=LOCATION_SEARCH_SCOPE_ALL)
findById(int $locationId, string $languageId, int $searchScope=LOCATION_SEARCH_SCOPE_ALL)
findParents(Entity\Location $location, string $languageId, int $searchScope=LOCATION_SEARCH_SCOPE_ALL)
save(Entity\Location $location)
saveParents(Entity\Location\Parents $parents)
autocomplete(array $params, int $searchScope=LOCATION_SEARCH_SCOPE_ALL)
__construct(Config\Container $config)