MediaWiki
master
|
Service interface for looking up Interwiki records. More...
Public Member Functions | |
fetch ( $prefix) | |
Get the Interwiki object for a given prefix. More... | |
getAllPrefixes ( $local=null) | |
Returns information about all interwiki prefixes, in the form of rows of the interwiki table. More... | |
invalidateCache ( $prefix) | |
Purge the in-process and any persistent cache (e.g. More... | |
isValidInterwiki ( $prefix) | |
Check whether an interwiki prefix exists. More... | |
Service interface for looking up Interwiki records.
Default implementation is ClassicInterwikiLookup.
Definition at line 32 of file InterwikiLookup.php.
MediaWiki\Interwiki\InterwikiLookup::fetch | ( | $prefix | ) |
Get the Interwiki object for a given prefix.
string | $prefix | Interwiki prefix |
Implemented in MediaWiki\Interwiki\NullInterwikiLookup, MediaWiki\Interwiki\InterwikiLookupAdapter, and MediaWiki\Interwiki\ClassicInterwikiLookup.
MediaWiki\Interwiki\InterwikiLookup::getAllPrefixes | ( | $local = null | ) |
Returns information about all interwiki prefixes, in the form of rows of the interwiki table.
Each row may have the following keys:
bool | null | $local | If set, limit output to local or non-local interwikis |
Implemented in MediaWiki\Interwiki\NullInterwikiLookup, MediaWiki\Interwiki\InterwikiLookupAdapter, and MediaWiki\Interwiki\ClassicInterwikiLookup.
MediaWiki\Interwiki\InterwikiLookup::invalidateCache | ( | $prefix | ) |
Purge the in-process and any persistent cache (e.g.
memcached) for an interwiki prefix.
string | $prefix |
Implemented in MediaWiki\Interwiki\NullInterwikiLookup, MediaWiki\Interwiki\InterwikiLookupAdapter, and MediaWiki\Interwiki\ClassicInterwikiLookup.
MediaWiki\Interwiki\InterwikiLookup::isValidInterwiki | ( | $prefix | ) |
Check whether an interwiki prefix exists.
string | $prefix | Interwiki prefix |
Implemented in MediaWiki\Interwiki\NullInterwikiLookup, MediaWiki\Interwiki\InterwikiLookupAdapter, and MediaWiki\Interwiki\ClassicInterwikiLookup.