Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Interactors\TermSearchInteractor Interface Reference

Interface for searching for terms. More...

+ Inheritance diagram for Wikibase\Lib\Interactors\TermSearchInteractor:

Public Member Functions

 searchForEntities ( $text, $languageCode, $entityType, array $termTypes)
 

Detailed Description

Interface for searching for terms.

Author
Addshore

Member Function Documentation

◆ searchForEntities()

Wikibase\Lib\Interactors\TermSearchInteractor::searchForEntities (   $text,
  $languageCode,
  $entityType,
array  $termTypes 
)
Parameters
string$textTerm text to search for
string$languageCodeLanguage code to search in
string$entityTypeType of Entity to return
string[]$termTypesTypes of Term to return, array of Wikibase\Lib\TermIndexEntry::TYPE_*
Returns
TermSearchResult[]

Implemented in Wikibase\Lib\Interactors\DispatchingTermSearchInteractor, and Wikibase\Lib\Interactors\MatchingTermsLookupSearchInteractor.


The documentation for this interface was generated from the following file: