MediaWiki master
InterwikiLookup.php
Go to the documentation of this file.
1<?php
21namespace MediaWiki\Interwiki;
22
23use Interwiki;
24
32interface InterwikiLookup {
33
40 public function isValidInterwiki( $prefix );
41
48 public function fetch( $prefix );
49
67 public function getAllPrefixes( $local = null );
68
74 public function invalidateCache( $prefix );
75
76}
An interwiki record value object.
Definition Interwiki.php:27
Service interface for looking up Interwiki records.
invalidateCache( $prefix)
Purge the in-process and any persistent cache (e.g.
isValidInterwiki( $prefix)
Check whether an interwiki prefix exists.
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.