3namespace Bitrix\Location\Repository;
5use Bitrix\Location\Entity;
6use Bitrix\Location\Repository\Location\Strategy\Delete;
7use Bitrix\Location\Repository\Location\Strategy\Find;
8use Bitrix\Location\Repository\Location\Strategy\Save;
17 private $findStrategy;
18 private $saveStrategy;
19 private $deleteStrategy;
29 $this->findStrategy = $findStrategy;
30 $this->saveStrategy = $saveStrategy;
31 $this->deleteStrategy = $deleteStrategy;
37 public function findById(
int $id,
string $languageId,
int $searchScope)
39 return $this->findStrategy->findById($id, $languageId, $searchScope);
49 public function findByExternalId(
string $externalId,
string $sourceCode,
string $languageId,
int $searchScope)
51 return $this->findStrategy->findByExternalId($externalId, $sourceCode, $languageId, $searchScope);
61 public function findByCoords(
float $lat,
float $lng,
int $zoom,
string $languageId,
int $searchScope)
63 return $this->findStrategy->findByCoords($lat, $lng, $zoom, $languageId, $searchScope);
74 return $this->findStrategy->findByText(
$text, $languageId, $searchScope);
84 return $this->findStrategy->autocomplete(
$params, $searchScope);
93 return $this->saveStrategy->save(
$location);
102 return $this->deleteStrategy->delete(
$location);
113 return $this->findStrategy->findParents(
$location, $languageId, $searchScope);
118 return $this->saveStrategy->saveParents($parents);
findParents(Entity\Location $location, string $languageId, int $searchScope)
__construct(Find $findStrategy, Save $saveStrategy, Delete $deleteStrategy)
findById(int $id, string $languageId, int $searchScope)
save(Entity\Location $location)
findByExternalId(string $externalId, string $sourceCode, string $languageId, int $searchScope)
findByCoords(float $lat, float $lng, int $zoom, string $languageId, int $searchScope)
saveParents(Entity\Location\Parents $parents)
autocomplete(array $params, int $searchScope)
findByText(string $text, string $languageId, int $searchScope)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']