MediaWiki
REL1_34
NullInterwikiLookup.php
Go to the documentation of this file.
1
<?php
21
namespace
MediaWiki\Interwiki
;
22
29
class
NullInterwikiLookup
implements
InterwikiLookup
{
30
34
public
function
isValidInterwiki
( $prefix ) {
35
return
false
;
36
}
37
41
public
function
fetch
( $prefix ) {
42
return
false
;
43
}
44
48
public
function
getAllPrefixes
( $local =
null
) {
49
return
[];
50
}
51
55
public
function
invalidateCache
( $prefix ) {
56
}
57
}
MediaWiki\Interwiki\NullInterwikiLookup
An interwiki lookup that has no data, intended for use in the installer.
Definition
NullInterwikiLookup.php:29
MediaWiki\Interwiki\NullInterwikiLookup\isValidInterwiki
isValidInterwiki( $prefix)
Check whether an interwiki prefix exists.bool Whether it exists
Definition
NullInterwikiLookup.php:34
MediaWiki\Interwiki\NullInterwikiLookup\invalidateCache
invalidateCache( $prefix)
Purge the in-process and persistent object cache for an interwiki prefix.
Definition
NullInterwikiLookup.php:55
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:48
MediaWiki\Interwiki\NullInterwikiLookup\fetch
fetch( $prefix)
Fetch an Interwiki object.Interwiki|null|bool
Definition
NullInterwikiLookup.php:41
MediaWiki\Interwiki\InterwikiLookup
Service interface for looking up Interwiki records.
Definition
InterwikiLookup.php:32
MediaWiki\Interwiki
Copyright (C) 2018 Kunal Mehta legoktm@member.fsf.org
Definition
ClassicInterwikiLookup.php:23
includes
interwiki
NullInterwikiLookup.php
Generated on Mon Nov 25 2024 16:05:14 for MediaWiki by
1.10.0