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 store (formerly known as the term index). More...

Public Member Functions

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

Private Attributes

const FIELD_NAMES
 
 $termType = null
 
 $termLanguage = null
 
 $termText = null
 

Detailed Description

Object representing search criteria while performing a search in the term store (formerly known as 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 ( )

◆ getTermType()

Wikibase\Lib\Store\TermIndexSearchCriteria::getTermType ( )

◆ getText()

Wikibase\Lib\Store\TermIndexSearchCriteria::getText ( )

Member Data Documentation

◆ $termLanguage

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

◆ $termText

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

◆ $termType

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

◆ FIELD_NAMES

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

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