includes/EmptyInterwikiResolver.php
<?php
namespace CirrusSearch;
class EmptyInterwikiResolver implements InterwikiResolver {
/**
* @return string[] of wikiIds indexed by interwiki prefix
*/
public function getSisterProjectPrefixes() {
return [];
}
/**
* @return SearchConfig[] configs of sister projects indexed by interwiki prefix
*/
public function getSisterProjectConfigs() {
return [];
}
/**
* @param string $wikiId
* @return string|null the interwiki identified for this $wikiId or null if none found
*/
public function getInterwikiPrefix( $wikiId ) {
return null;
}
/**
* @param string $lang
* @return string[] a single elt array [ 'iw_prefix' => 'wikiId' ] or [] if none found
*/
public function getSameProjectWikiByLang( $lang ) {
return [];
}
/**
* @param string $lang
* @return SearchConfig[] zero or one element array: [] or [ interwiki -> SearchConfig ]
*/
public function getSameProjectConfigByLang( $lang ) {
return [];
}
}