- Copyright
- GPL-2.0-or-later
- Author
- Addshore
◆ __construct()
- Parameters
-
MatchingTermsLookup | $matchingTermsLookup | Used to search the terms |
LanguageFallbackChainFactory | $fallbackFactory | |
PrefetchingTermLookup | $bufferingTermLookup | Provides the displayTerms |
string | $displayLanguageCode | |
◆ addFallbackLanguageCodes()
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::addFallbackLanguageCodes |
( |
array |
$languageCodes | ) |
|
|
private |
- Parameters
-
- Returns
- string[]
◆ convertToSearchResult()
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::convertToSearchResult |
( |
TermIndexEntry |
$termIndexEntry | ) |
|
|
private |
◆ getDescriptionDisplayTerm()
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::getDescriptionDisplayTerm |
( |
EntityId |
$entityId | ) |
|
|
private |
- Parameters
-
- Returns
- null|Term
◆ getEntityIdsForTermIndexEntries()
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::getEntityIdsForTermIndexEntries |
( |
array |
$termsIndexEntries | ) |
|
|
private |
- Parameters
-
- Returns
- EntityId[]
◆ getFallbackMatchedTermIndexEntries()
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::getFallbackMatchedTermIndexEntries |
( |
|
$text, |
|
|
array |
$languageCodes, |
|
|
|
$termTypes, |
|
|
|
$entityType, |
|
|
array |
$matchedEntityIdSerializations |
|
) |
| |
|
private |
- Parameters
-
string | $text | |
string[] | $languageCodes | |
string[] | $termTypes | |
string | $entityType | |
string[] | $matchedEntityIdSerializations | |
- Returns
- TermIndexEntry[]
◆ getLabelDisplayTerm()
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::getLabelDisplayTerm |
( |
EntityId |
$entityId | ) |
|
|
private |
- Parameters
-
- Returns
- null|Term
◆ getMatchedEntityIdSerializations()
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::getMatchedEntityIdSerializations |
( |
array |
$matchedTermIndexEntries | ) |
|
|
private |
- Parameters
-
- Returns
- string[]
◆ getMatchingTermIndexEntries()
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::getMatchingTermIndexEntries |
( |
|
$text, |
|
|
|
$languageCode, |
|
|
|
$entityType, |
|
|
array |
$termTypes |
|
) |
| |
|
private |
- Parameters
-
string | $text | |
string | $languageCode | |
string | $entityType | |
string[] | $termTypes | |
- Returns
- TermIndexEntry[]
◆ getSearchResults()
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::getSearchResults |
( |
array |
$termIndexEntries | ) |
|
|
private |
◆ getTermIndexOptions()
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::getTermIndexOptions |
( |
| ) |
|
|
private |
◆ makeTermIndexSearchCriteria()
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::makeTermIndexSearchCriteria |
( |
|
$text, |
|
|
array |
$languageCodes, |
|
|
array |
$termTypes |
|
) |
| |
|
private |
- Parameters
-
string | $text | |
string[] | $languageCodes | |
string[] | $termTypes | |
- Returns
- TermIndexSearchCriteria[]
◆ preFetchLabelsAndDescriptionsForDisplay()
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::preFetchLabelsAndDescriptionsForDisplay |
( |
array |
$entityIds | ) |
|
|
private |
◆ searchForEntities()
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::searchForEntities |
( |
|
$text, |
|
|
|
$languageCode, |
|
|
|
$entityType, |
|
|
array |
$termTypes |
|
) |
| |
◆ setTermSearchOptions()
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::setTermSearchOptions |
( |
TermSearchOptions |
$termSearchOptions | ) |
|
◆ $bufferingTermLookup
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::$bufferingTermLookup |
|
private |
◆ $displayLanguageCode
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::$displayLanguageCode |
|
private |
◆ $labelDescriptionLookup
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::$labelDescriptionLookup |
|
private |
◆ $languageFallbackChainFactory
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::$languageFallbackChainFactory |
|
private |
◆ $matchingTermsLookup
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::$matchingTermsLookup |
|
private |
◆ $termSearchOptions
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::$termSearchOptions |
|
private |
The documentation for this class was generated from the following file: