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