Wikibase
MediaWiki Wikibase extension
|
Methods helping search interactors from a term store. More...
Public Member Functions | |
getMatchingTerms (array $criteria, $termType=null, $entityType=null, array $options=[]) | |
Returns the terms that match the provided conditions. More... | |
Methods helping search interactors from a term store.
Wikibase\Lib\Store\MatchingTermsLookup::getMatchingTerms | ( | array | $criteria, |
$termType = null , |
|||
$entityType = null , |
|||
array | $options = [] |
||
) |
Returns the terms that match the provided conditions.
$terms is an array of Term objects. Terms are joined by OR. The fields of the terms are joined by AND.
A default can be provided for termType and entityType via the corresponding method parameters.
TermIndexSearchCriteria[] | $criteria | |
string | string[] | null | $termType | |
string | string[] | null | $entityType | |
array | $options | Accepted options are:
|
Implemented in Wikibase\Lib\Store\Sql\Terms\DatabaseMatchingTermsLookup.