Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс Repository
+ Граф наследования:Repository:

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

 __construct (string $apiKey, HttpClient $httpClient, GoogleSource $googleSource, CachedPool $cachePool=null)
 
 findByExternalId (string $locationExternalId, string $sourceCode, string $languageId)
 
 findByText (string $query, string $languageId)
 
 findParents (Location $location, string $languageId)
 
- Открытые члены унаследованные от BaseRepository
 isScopeSatisfy (int $scope)
 

Открытые статические члены

static getSourceCode ()
 

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

 isCollectionContainLocation (Location $location, Collection $collection)
 
 chooseParentFromCollection (Location $location, Collection $collection, Parents $parentResultCollection, array $parentTypes)
 
 findLocalLocationByExternalId (Location $location)
 
 buildFinder ($requester, $converter)
 
 find ($requester, $converter=null, array $findParams=[])
 

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

 $apiKey = ''
 
 $httpClient = null
 
 $cachePool = null
 
 $googleSource = null
 

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

static $sourceCode = 'GOOGLE'
 

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

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

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

◆ __construct()

__construct ( string $apiKey,
HttpClient $httpClient,
GoogleSource $googleSource,
CachedPool $cachePool = null )

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

Методы

◆ buildFinder()

buildFinder ( $requester,
$converter )
protected
Аргументы
Requesters\BaseRequester$requester
Converters\BaseConverter$converter
Возвращает
Finder

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

◆ chooseParentFromCollection()

chooseParentFromCollection ( Location $location,
Collection $collection,
Parents $parentResultCollection,
array $parentTypes )
protected

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

◆ find()

find ( $requester,
$converter = null,
array $findParams = [] )
protected
Аргументы
BaseRequester$requester,`
BaseConverter$converter
array$findParams
Возвращает
Location|Collection|false|null|array

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

◆ findByExternalId()

findByExternalId ( string $locationExternalId,
string $sourceCode,
string $languageId )

@inheritDoc

Замещает IFindByExternalId.

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

◆ findByText()

findByText ( string $query,
string $languageId )

@inheritDoc

Замещает IFindByText.

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

◆ findLocalLocationByExternalId()

findLocalLocationByExternalId ( Location $location)
protected
Аргументы
Location$location
Возвращает
Location|bool|null todo: maybe carry out?

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

◆ findParents()

findParents ( Location $location,
string $languageId )

@inheritDoc

Замещает IFindParents.

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

◆ getSourceCode()

static getSourceCode ( )
static

@inheritDoc

Замещает ISource.

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

◆ isCollectionContainLocation()

isCollectionContainLocation ( Location $location,
Collection $collection )
protected

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

Данные класса

◆ $apiKey

$apiKey = ''
protected

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

◆ $cachePool

$cachePool = null
protected

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

◆ $googleSource

$googleSource = null
protected

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

◆ $httpClient

$httpClient = null
protected

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

◆ $sourceCode

$sourceCode = 'GOOGLE'
staticprotected

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