MediaWiki  master
NullInterwikiLookup.php
Go to the documentation of this file.
1 <?php
21 namespace MediaWiki\Interwiki;
22 
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 }
An interwiki lookup that has no data, intended for use in the installer.
isValidInterwiki( $prefix)
Check whether an interwiki prefix exists.Interwiki prefix to use bool Whether it exists ...
Service interface for looking up Interwiki records.
Copyright (C) 2018 Kunal Mehta legoktm@member.fsf.org
fetch( $prefix)
Fetch an Interwiki object.Interwiki prefix to use Interwiki|null|bool
getAllPrefixes( $local=null)
Returns information about all interwiki prefixes, in the form of rows of the interwiki table...
invalidateCache( $prefix)
Purge the in-process and persistent object cache for an interwiki prefix.