MediaWiki
1.30.0
|
Public Member Functions | |
__construct (SiteLookup $siteLookup, array $interwikiMap=null) | |
fetch ( $prefix) | |
See InterwikiLookup::fetch It loads the whole interwiki map. More... | |
getAllPrefixes ( $local=null) | |
See InterwikiLookup::getAllPrefixes. More... | |
invalidateCache ( $prefix) | |
See InterwikiLookup::invalidateCache. More... | |
isValidInterwiki ( $prefix) | |
See InterwikiLookup::isValidInterwiki It loads the whole interwiki map. More... | |
Private Member Functions | |
getInterwikiMap () | |
Get interwikiMap attribute, load if needed. More... | |
getSiteInterwikis (Site $site) | |
Load interwikis for the given site. More... | |
loadInterwikiMap () | |
Load interwiki map to use as cache. More... | |
Private Attributes | |
Interwiki[] null | $interwikiMap |
associative array mapping interwiki prefixes to Interwiki objects More... | |
SiteLookup | $siteLookup |
Definition at line 35 of file InterwikiLookupAdapter.php.
MediaWiki\Interwiki\InterwikiLookupAdapter::__construct | ( | SiteLookup | $siteLookup, |
array | $interwikiMap = null |
||
) |
Definition at line 47 of file InterwikiLookupAdapter.php.
References MediaWiki\Interwiki\InterwikiLookupAdapter\$interwikiMap, and MediaWiki\Interwiki\InterwikiLookupAdapter\$siteLookup.
MediaWiki\Interwiki\InterwikiLookupAdapter::fetch | ( | $prefix | ) |
See InterwikiLookup::fetch It loads the whole interwiki map.
string | $prefix | Interwiki prefix to use |
Implements MediaWiki\Interwiki\InterwikiLookup.
Definition at line 73 of file InterwikiLookupAdapter.php.
References MediaWiki\Interwiki\InterwikiLookupAdapter\isValidInterwiki().
MediaWiki\Interwiki\InterwikiLookupAdapter::getAllPrefixes | ( | $local = null | ) |
See InterwikiLookup::getAllPrefixes.
string | null | $local | If set, limits output to local/non-local interwikis |
Implements MediaWiki\Interwiki\InterwikiLookup.
Definition at line 91 of file InterwikiLookupAdapter.php.
References $res, as, and MediaWiki\Interwiki\InterwikiLookupAdapter\getInterwikiMap().
|
private |
Get interwikiMap attribute, load if needed.
Definition at line 144 of file InterwikiLookupAdapter.php.
References MediaWiki\Interwiki\InterwikiLookupAdapter\$interwikiMap, and MediaWiki\Interwiki\InterwikiLookupAdapter\loadInterwikiMap().
Referenced by MediaWiki\Interwiki\InterwikiLookupAdapter\getAllPrefixes(), and MediaWiki\Interwiki\InterwikiLookupAdapter\isValidInterwiki().
|
private |
Load interwikis for the given site.
Site | $site |
Definition at line 157 of file InterwikiLookupAdapter.php.
References $path, as, Site\getGlobalId(), Site\getInterwikiIds(), Site\getPageUrl(), and Site\getSource().
Referenced by MediaWiki\Interwiki\InterwikiLookupAdapter\invalidateCache(), and MediaWiki\Interwiki\InterwikiLookupAdapter\loadInterwikiMap().
MediaWiki\Interwiki\InterwikiLookupAdapter::invalidateCache | ( | $prefix | ) |
See InterwikiLookup::invalidateCache.
string | $prefix |
Implements MediaWiki\Interwiki\InterwikiLookup.
Definition at line 113 of file InterwikiLookupAdapter.php.
References MediaWiki\Interwiki\InterwikiLookupAdapter\getSiteInterwikis().
MediaWiki\Interwiki\InterwikiLookupAdapter::isValidInterwiki | ( | $prefix | ) |
See InterwikiLookup::isValidInterwiki It loads the whole interwiki map.
string | $prefix | Interwiki prefix to use |
Implements MediaWiki\Interwiki\InterwikiLookup.
Definition at line 62 of file InterwikiLookupAdapter.php.
References MediaWiki\Interwiki\InterwikiLookupAdapter\getInterwikiMap().
Referenced by MediaWiki\Interwiki\InterwikiLookupAdapter\fetch().
|
private |
Load interwiki map to use as cache.
Definition at line 129 of file InterwikiLookupAdapter.php.
References MediaWiki\Interwiki\InterwikiLookupAdapter\$interwikiMap, as, and MediaWiki\Interwiki\InterwikiLookupAdapter\getSiteInterwikis().
Referenced by MediaWiki\Interwiki\InterwikiLookupAdapter\getInterwikiMap().
|
private |
associative array mapping interwiki prefixes to Interwiki objects
Definition at line 45 of file InterwikiLookupAdapter.php.
Referenced by MediaWiki\Interwiki\InterwikiLookupAdapter\__construct(), MediaWiki\Interwiki\InterwikiLookupAdapter\getInterwikiMap(), and MediaWiki\Interwiki\InterwikiLookupAdapter\loadInterwikiMap().
|
private |
Definition at line 40 of file InterwikiLookupAdapter.php.
Referenced by MediaWiki\Interwiki\InterwikiLookupAdapter\__construct().