MediaWiki
1.33.0
|
Service interface for looking up Interwiki records. More...
Public Member Functions | |
fetch ( $prefix) | |
Fetch an Interwiki object. 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 persistent object cache for an interwiki prefix. More... | |
isValidInterwiki ( $prefix) | |
Check whether an interwiki prefix exists. More... | |
Service interface for looking up Interwiki records.
Definition at line 31 of file InterwikiLookup.php.
MediaWiki\Interwiki\InterwikiLookup::fetch | ( | $prefix | ) |
Fetch an Interwiki object.
string | $prefix | Interwiki prefix to use |
Implemented in MediaWiki\Interwiki\ClassicInterwikiLookup, MediaWiki\Interwiki\InterwikiLookupAdapter, and MediaWiki\Interwiki\NullInterwikiLookup.
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:
string | null | $local | If set, limits output to local/non-local interwikis |
Implemented in MediaWiki\Interwiki\ClassicInterwikiLookup, MediaWiki\Interwiki\InterwikiLookupAdapter, and MediaWiki\Interwiki\NullInterwikiLookup.
MediaWiki\Interwiki\InterwikiLookup::invalidateCache | ( | $prefix | ) |
Purge the in-process and persistent object cache for an interwiki prefix.
string | $prefix |
Implemented in MediaWiki\Interwiki\ClassicInterwikiLookup, MediaWiki\Interwiki\InterwikiLookupAdapter, and MediaWiki\Interwiki\NullInterwikiLookup.
MediaWiki\Interwiki\InterwikiLookup::isValidInterwiki | ( | $prefix | ) |
Check whether an interwiki prefix exists.
string | $prefix | Interwiki prefix to use |
Implemented in MediaWiki\Interwiki\ClassicInterwikiLookup, MediaWiki\Interwiki\InterwikiLookupAdapter, and MediaWiki\Interwiki\NullInterwikiLookup.