MediaWiki master
InterwikiLookup.php
Go to the documentation of this file.
1<?php
7namespace MediaWiki\Interwiki;
8
16interface InterwikiLookup {
17
24 public function isValidInterwiki( $prefix );
25
32 public function fetch( $prefix );
33
58 public function getAllPrefixes( $local = null );
59
65 public function invalidateCache( $prefix );
66
67}
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.