Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Store\TermIndexSearchCriteria Class Reference

Object representing search criteria while performing a search in the term index. More...

Public Member Functions

 __construct (array $fields=[])
 
 getTermType ()
 
 getLanguage ()
 
 getText ()
 

Private Attributes

 $fieldNames
 
 $termType = null
 
 $termLanguage = null
 
 $termText = null
 

Detailed Description

Object representing search criteria while performing a search in the term index.

Instances might be incomplete (have null values for some of the fields).

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Store\TermIndexSearchCriteria::__construct ( array  $fields = [])
Parameters
array$fieldsAssociative array containing fields: 'termType' => string|null, one of TermIndexEntry::TYPE_… constants, 'termLanguage' => string|null 'termText' => string|null
Exceptions
ParameterAssertionException

Member Function Documentation

◆ getLanguage()

Wikibase\Lib\Store\TermIndexSearchCriteria::getLanguage ( )
Returns
string|null

◆ getTermType()

Wikibase\Lib\Store\TermIndexSearchCriteria::getTermType ( )
Returns
string|null

◆ getText()

Wikibase\Lib\Store\TermIndexSearchCriteria::getText ( )
Returns
string|null

Member Data Documentation

◆ $fieldNames

Wikibase\Lib\Store\TermIndexSearchCriteria::$fieldNames
private
Initial value:
= [
'termType',
'termLanguage',
'termText',
]

◆ $termLanguage

Wikibase\Lib\Store\TermIndexSearchCriteria::$termLanguage = null
private

◆ $termText

Wikibase\Lib\Store\TermIndexSearchCriteria::$termText = null
private

◆ $termType

Wikibase\Lib\Store\TermIndexSearchCriteria::$termType = null
private

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