CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Retrieve Interwiki information. More...
Public Member Functions | |
getSisterProjectPrefixes () | |
getSisterProjectConfigs () | |
getInterwikiPrefix ( $wikiId) | |
getSameProjectWikiByLang ( $lang) | |
Determine the proper interwiki_prefix <=> wikiId pair for a given language code. | |
getSameProjectConfigByLang ( $lang) | |
Fetch the config of the wiki identified by this language code. | |
Public Attributes | |
const | SERVICE = 'CirrusSearchInterwikiresolver' |
@const string service name | |
Retrieve Interwiki information.
Designed to support CirrusSearch usecase:
CirrusSearch\InterwikiResolver::getInterwikiPrefix | ( | $wikiId | ) |
string | $wikiId |
Implemented in CirrusSearch\BaseInterwikiResolver, and CirrusSearch\EmptyInterwikiResolver.
CirrusSearch\InterwikiResolver::getSameProjectConfigByLang | ( | $lang | ) |
Fetch the config of the wiki identified by this language code.
string | $lang |
Implemented in CirrusSearch\BaseInterwikiResolver, and CirrusSearch\EmptyInterwikiResolver.
CirrusSearch\InterwikiResolver::getSameProjectWikiByLang | ( | $lang | ) |
Determine the proper interwiki_prefix <=> wikiId pair for a given language code.
Most the time the language code is equals to interwiki prefix but in some rarer cases it's not true. Always use the interwiki prefix returned by this function to generate crosslanguage interwiki links.
string | $lang |
Implemented in CirrusSearch\BaseInterwikiResolver, and CirrusSearch\EmptyInterwikiResolver.
CirrusSearch\InterwikiResolver::getSisterProjectConfigs | ( | ) |
Implemented in CirrusSearch\BaseInterwikiResolver, and CirrusSearch\EmptyInterwikiResolver.
CirrusSearch\InterwikiResolver::getSisterProjectPrefixes | ( | ) |
Implemented in CirrusSearch\BaseInterwikiResolver, and CirrusSearch\EmptyInterwikiResolver.