1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
locationrepository.php
См. документацию.
1<?php
2
3namespace Bitrix\Location\Repository;
4
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;
9use Bitrix\Main\Result;
10
16{
17 private $findStrategy;
18 private $saveStrategy;
19 private $deleteStrategy;
20
27 public function __construct(Find $findStrategy, Save $saveStrategy, Delete $deleteStrategy)
28 {
29 $this->findStrategy = $findStrategy;
30 $this->saveStrategy = $saveStrategy;
31 $this->deleteStrategy = $deleteStrategy;
32 }
33
37 public function findById(int $id, string $languageId, int $searchScope)
38 {
39 return $this->findStrategy->findById($id, $languageId, $searchScope);
40 }
41
49 public function findByExternalId(string $externalId, string $sourceCode, string $languageId, int $searchScope)
50 {
51 return $this->findStrategy->findByExternalId($externalId, $sourceCode, $languageId, $searchScope);
52 }
53
61 public function findByCoords(float $lat, float $lng, int $zoom, string $languageId, int $searchScope)
62 {
63 return $this->findStrategy->findByCoords($lat, $lng, $zoom, $languageId, $searchScope);
64 }
65
72 public function findByText(string $text, string $languageId, int $searchScope)
73 {
74 return $this->findStrategy->findByText($text, $languageId, $searchScope);
75 }
76
82 public function autocomplete(array $params, int $searchScope)
83 {
84 return $this->findStrategy->autocomplete($params, $searchScope);
85 }
86
91 public function save(Entity\Location $location)
92 {
93 return $this->saveStrategy->save($location);
94 }
95
100 public function delete(Entity\Location $location): Result
101 {
102 return $this->deleteStrategy->delete($location);
103 }
104
111 public function findParents(Entity\Location $location, string $languageId, int $searchScope)
112 {
113 return $this->findStrategy->findParents($location, $languageId, $searchScope);
114 }
115
116 public function saveParents(Entity\Location\Parents $parents): Result
117 {
118 return $this->saveStrategy->saveParents($parents);
119 }
120}
findParents(Entity\Location $location, string $languageId, int $searchScope)
Определения locationrepository.php:111
__construct(Find $findStrategy, Save $saveStrategy, Delete $deleteStrategy)
Определения locationrepository.php:27
findById(int $id, string $languageId, int $searchScope)
Определения locationrepository.php:37
save(Entity\Location $location)
Определения locationrepository.php:91
findByExternalId(string $externalId, string $sourceCode, string $languageId, int $searchScope)
Определения locationrepository.php:49
findByCoords(float $lat, float $lng, int $zoom, string $languageId, int $searchScope)
Определения locationrepository.php:61
saveParents(Entity\Location\Parents $parents)
Определения locationrepository.php:116
autocomplete(array $params, int $searchScope)
Определения locationrepository.php:82
findByText(string $text, string $languageId, int $searchScope)
Определения locationrepository.php:72
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
Определения ufield.php:9
$text
Определения template_pdf.php:79
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']
Определения template.php:799
$location
Определения options.php:2729