MediaWiki
REL1_41
NullInterwikiLookup.php
Go to the documentation of this file.
1
<?php
22
namespace
MediaWiki\Interwiki
;
23
30
class
NullInterwikiLookup
implements
InterwikiLookup
{
31
35
public
function
isValidInterwiki
( $prefix ) {
36
return
false
;
37
}
38
42
public
function
fetch
( $prefix ) {
43
return
false
;
44
}
45
49
public
function
getAllPrefixes
( $local =
null
) {
50
return
[];
51
}
52
56
public
function
invalidateCache
( $prefix ) {
57
}
58
}
MediaWiki\Interwiki\NullInterwikiLookup
An interwiki lookup that has no data, intended for use in the installer.
Definition
NullInterwikiLookup.php:30
MediaWiki\Interwiki\NullInterwikiLookup\isValidInterwiki
isValidInterwiki( $prefix)
Check whether an interwiki prefix exists.bool Whether it exists
Definition
NullInterwikiLookup.php:35
MediaWiki\Interwiki\NullInterwikiLookup\invalidateCache
invalidateCache( $prefix)
Purge the in-process and any persistent cache (e.g.memcached) for an interwiki prefix.
Definition
NullInterwikiLookup.php:56
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:49
MediaWiki\Interwiki\NullInterwikiLookup\fetch
fetch( $prefix)
Get the Interwiki object for a given prefix.Interwiki|null|false Null for invalid,...
Definition
NullInterwikiLookup.php:42
MediaWiki\Interwiki\InterwikiLookup
Service interface for looking up Interwiki records.
Definition
InterwikiLookup.php:32
MediaWiki\Interwiki
Definition
ClassicInterwikiLookup.php:21
includes
interwiki
NullInterwikiLookup.php
Generated on Wed Nov 27 2024 07:23:35 for MediaWiki by
1.10.0