MediaWiki master
NullInterwikiLookup.php
Go to the documentation of this file.
1<?php
22namespace MediaWiki\Interwiki;
23
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}
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.