CirrusSearch
Elasticsearch-powered search for MediaWiki
Loading...
Searching...
No Matches
CirrusSearch\EmptyInterwikiResolver Class Reference
+ Inheritance diagram for CirrusSearch\EmptyInterwikiResolver:
+ Collaboration diagram for CirrusSearch\EmptyInterwikiResolver:

Public Member Functions

 getSisterProjectPrefixes ()
 
 getSisterProjectConfigs ()
 
 getInterwikiPrefix ( $wikiId)
 
 getSameProjectWikiByLang ( $lang)
 
 getSameProjectConfigByLang ( $lang)
 

Additional Inherited Members

- Public Attributes inherited from CirrusSearch\InterwikiResolver
const SERVICE = 'CirrusSearchInterwikiresolver'
 @const string service name
 

Member Function Documentation

◆ getInterwikiPrefix()

CirrusSearch\EmptyInterwikiResolver::getInterwikiPrefix ( $wikiId)
Parameters
string$wikiId
Returns
string|null the interwiki identified for this $wikiId or null if none found

Implements CirrusSearch\InterwikiResolver.

◆ getSameProjectConfigByLang()

CirrusSearch\EmptyInterwikiResolver::getSameProjectConfigByLang ( $lang)
Parameters
string$lang
Returns
SearchConfig[] zero or one element array: [] or [ interwiki -> SearchConfig ]

Implements CirrusSearch\InterwikiResolver.

◆ getSameProjectWikiByLang()

CirrusSearch\EmptyInterwikiResolver::getSameProjectWikiByLang ( $lang)
Parameters
string$lang
Returns
string[] a single elt array [ 'iw_prefix' => 'wikiId' ] or [] if none found

Implements CirrusSearch\InterwikiResolver.

◆ getSisterProjectConfigs()

CirrusSearch\EmptyInterwikiResolver::getSisterProjectConfigs ( )
Returns
SearchConfig[] configs of sister projects indexed by interwiki prefix

Implements CirrusSearch\InterwikiResolver.

◆ getSisterProjectPrefixes()

CirrusSearch\EmptyInterwikiResolver::getSisterProjectPrefixes ( )
Returns
string[] of wikiIds indexed by interwiki prefix

Implements CirrusSearch\InterwikiResolver.


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