MediaWiki
master
NullInterwikiLookup.php
Go to the documentation of this file.
1
<?php
9
namespace
MediaWiki\Interwiki
;
10
17
class
NullInterwikiLookup
implements
InterwikiLookup
{
18
22
public
function
isValidInterwiki
( $prefix ) {
23
return
false
;
24
}
25
29
public
function
fetch
( $prefix ) {
30
return
false
;
31
}
32
36
public
function
getAllPrefixes
( $local =
null
) {
37
return
[];
38
}
39
43
public
function
invalidateCache
( $prefix ) {
44
}
45
}
MediaWiki\Interwiki\NullInterwikiLookup
An interwiki lookup that has no data, intended for use in the installer.
Definition
NullInterwikiLookup.php:17
MediaWiki\Interwiki\NullInterwikiLookup\isValidInterwiki
isValidInterwiki( $prefix)
Check whether an interwiki prefix exists.bool Whether it exists
Definition
NullInterwikiLookup.php:22
MediaWiki\Interwiki\NullInterwikiLookup\invalidateCache
invalidateCache( $prefix)
Purge the in-process and any persistent cache (e.g.memcached) for an interwiki prefix.
Definition
NullInterwikiLookup.php:43
MediaWiki\Interwiki\NullInterwikiLookup\getAllPrefixes
getAllPrefixes( $local=null)
Returns information about all interwiki prefixes, in the form of rows of the interwiki table....
Definition
NullInterwikiLookup.php:36
MediaWiki\Interwiki\NullInterwikiLookup\fetch
fetch( $prefix)
Get the Interwiki object for a given prefix.Interwiki|null|false Null for invalid,...
Definition
NullInterwikiLookup.php:29
MediaWiki\Interwiki\InterwikiLookup
Service interface for looking up Interwiki records.
Definition
InterwikiLookup.php:16
MediaWiki\Interwiki
Definition
ClassicInterwikiLookup.php:7
includes
Interwiki
NullInterwikiLookup.php
Generated on Sun Nov 9 2025 19:25:03 for MediaWiki by
1.10.0