Wikibase
MediaWiki Wikibase extension
|
Picks a TermSearchInteractor configured for the particular entity type when searching for entities. More...
Public Member Functions | |
__construct (array $interactors) | |
searchForEntities ( $text, $languageCode, $entityType, array $termTypes) | |
setTermSearchOptions (TermSearchOptions $termSearchOptions) | |
Private Member Functions | |
getInteractorForEntityType ( $entityType) | |
Private Attributes | |
$interactors = [] | |
$searchOptions | |
Picks a TermSearchInteractor configured for the particular entity type when searching for entities.
TODO: rename to DispatchingByEntityTypeTermSearchInteractor ?
Wikibase\Lib\Interactors\DispatchingTermSearchInteractor::__construct | ( | array | $interactors | ) |
TermSearchInteractor[] | $interactors | Associative array mapping entity types (strings) to TermSearchInteractor instances |
ParameterAssertionException |
|
private |
string | $entityType |
Wikibase\Lib\Interactors\DispatchingTermSearchInteractor::searchForEntities | ( | $text, | |
$languageCode, | |||
$entityType, | |||
array | $termTypes | ||
) |
string | $text | |
string | $languageCode | |
string | $entityType | |
string[] | $termTypes |
Implements Wikibase\Lib\Interactors\TermSearchInteractor.
Wikibase\Lib\Interactors\DispatchingTermSearchInteractor::setTermSearchOptions | ( | TermSearchOptions | $termSearchOptions | ) |
|
private |
|
private |