3namespace Bitrix\Location\Repository\Location\Strategy;
5use Bitrix\Location\Entity\Location;
6use Bitrix\Location\Entity\Generic\Collection;
7use Bitrix\Location\Entity\Location\Parents;
8use Bitrix\Location\Repository\Location\Capability\IFindByCoords;
9use Bitrix\Location\Repository\Location\Capability\IFindByExternalId;
10use Bitrix\Location\Repository\Location\Capability\IFindById;
11use Bitrix\Location\Repository\Location\Capability\IFindByText;
12use Bitrix\Location\Repository\Location\Capability\IFindParents;
13use Bitrix\Location\Repository\Location\Capability\ISupportAutocomplete;
14use Bitrix\Location\Repository\Location\IScope;
15use Bitrix\Location\Repository\Location\IRepository;
16use Bitrix\Location\Repository\Location\ICache;
17use Bitrix\Location\Repository\Location\IDatabase;
25 public function findById(
int $id,
string $languageId,
int $searchScope)
27 return $this->
find(IFindById::class,
'findById', [$id, $languageId], $searchScope);
30 public function findByExternalId(
string $externalId,
string $sourceCode,
string $languageId,
int $searchScope)
33 IFindByExternalId::class,
83 ISupportAutocomplete::class,
124 $this->locationRepositories[
$key] = $repository;
128 ksort($this->locationRepositories);
142 foreach ($this->locationRepositories as $repository)
144 if ($repository instanceof
IScope)
146 if (!$repository->isScopeSatisfy($searchScope))
152 if ($repository instanceof $interface)
171 if ($repository instanceof
ICache)
173 return self::REPO_PRIORITY_A;
177 return self::REPO_PRIORITY_B;
180 return self::REPO_PRIORITY_C;
getRepoPriority(IRepository $repository)
find(string $interface, string $method, array $params, int $searchScope)
findById(int $id, string $languageId, int $searchScope)
findByExternalId(string $externalId, string $sourceCode, string $languageId, int $searchScope)
findByCoords(float $lat, float $lng, int $zoom, string $languageId, int $searchScope)
setLocationRepositories(array $locationRepositories)
autocomplete(array $params, int $searchScope)
findByText(string $text, string $languageId, int $searchScope)
findParents(Location $location, string $languageId, int $searchScope)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
if(empty($signedUserToken)) $key
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']