MediaWiki master
NullInterwikiLookup.php
Go to the documentation of this file.
1<?php
9namespace MediaWiki\Interwiki;
10
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}
An interwiki lookup that has no data, intended for use in the installer.
isValidInterwiki( $prefix)
Check whether an interwiki prefix exists.bool Whether it exists
invalidateCache( $prefix)
Purge the in-process and any persistent cache (e.g.memcached) for an interwiki prefix.
getAllPrefixes( $local=null)
Returns information about all interwiki prefixes, in the form of rows of the interwiki table....
fetch( $prefix)
Get the Interwiki object for a given prefix.Interwiki|null|false Null for invalid,...
Service interface for looking up Interwiki records.