- 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 | languageCode to use for display terms |
◆ convertToSearchResult()
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::convertToSearchResult |
( |
TermIndexEntry | $termIndexEntry | ) |
|
|
private |
◆ getDescriptionDisplayTerm()
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::getDescriptionDisplayTerm |
( |
EntityId | $entityId | ) |
|
|
private |
◆ getEntityIdsForTermIndexEntries()
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::getEntityIdsForTermIndexEntries |
( |
array | $termsIndexEntries | ) |
|
|
private |
- Parameters
-
TermIndexEntry[] | $termsIndexEntries | |
- Returns
- EntityId[]
◆ getFallbackLanguageCodes()
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::getFallbackLanguageCodes |
( |
string | $languageCode | ) |
|
|
private |
- Parameters
-
- Returns
- string[]
◆ getFallbackMatchedTermIndexEntries()
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::getFallbackMatchedTermIndexEntries |
( |
string | $text, |
|
|
string | $languageCode, |
|
|
array | $termTypes, |
|
|
string | $entityType, |
|
|
array | $matchedEntityIdSerializations ) |
|
private |
- Parameters
-
string | $text | |
string | $languageCode | |
string[] | $termTypes | |
string | $entityType | |
string[] | $matchedEntityIdSerializations | |
- Returns
- TermIndexEntry[]
◆ getLabelDisplayTerm()
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::getLabelDisplayTerm |
( |
EntityId | $entityId | ) |
|
|
private |
◆ getMatchedEntityIdSerializations()
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::getMatchedEntityIdSerializations |
( |
array | $matchedTermIndexEntries | ) |
|
|
private |
- Parameters
-
TermIndexEntry[] | $matchedTermIndexEntries | |
- Returns
- string[]
◆ getMatchingTermIndexEntries()
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::getMatchingTermIndexEntries |
( |
string | $text, |
|
|
string | $languageCode, |
|
|
string | $entityType, |
|
|
array | $termTypes ) |
|
private |
- Parameters
-
string | $text | |
string | $languageCode | |
string | $entityType | |
string[] | $termTypes | |
- Returns
- TermIndexEntry[]
◆ getSearchResults()
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::getSearchResults |
( |
array | $termIndexEntries | ) |
|
|
private |
- Parameters
-
TermIndexEntry[] | $termIndexEntries | |
- Returns
- TermSearchResult[]
◆ getTermIndexOptions()
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::getTermIndexOptions |
( |
| ) |
|
|
private |
◆ preFetchLabelsAndDescriptionsForDisplay()
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::preFetchLabelsAndDescriptionsForDisplay |
( |
array | $entityIds | ) |
|
|
private |
◆ searchForEntities()
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::searchForEntities |
( |
string | $text, |
|
|
string | $languageCode, |
|
|
string | $entityType, |
|
|
array | $termTypes ) |
◆ setTermSearchOptions()
Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::setTermSearchOptions |
( |
TermSearchOptions | $termSearchOptions | ) |
|
◆ $bufferingTermLookup
◆ $displayLanguageCode
string Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::$displayLanguageCode |
|
private |
◆ $labelDescriptionLookup
◆ $languageFallbackChainFactory
◆ $matchingTermsLookup
MatchingTermsLookup Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::$matchingTermsLookup |
|
private |
◆ $termSearchOptions
TermSearchOptions Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor::$termSearchOptions |
|
private |
The documentation for this class was generated from the following file: