MediaWiki REL1_37
|
Service interface for looking up Interwiki records. More...
Public Member Functions | |
fetch ( $prefix) | |
Fetch an Interwiki object. | |
getAllPrefixes ( $local=null) | |
Returns information about all interwiki prefixes, in the form of rows of the interwiki table. | |
invalidateCache ( $prefix) | |
Purge the in-process and persistent object cache for an interwiki prefix. | |
isValidInterwiki ( $prefix) | |
Check whether an interwiki prefix exists. | |
Service interface for looking up Interwiki records.
Definition at line 32 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.