|
MediaWiki master
|
An interwiki lookup that has no data, intended for use in the installer. More...
Inherits MediaWiki\Interwiki\InterwikiLookup.

Public Member Functions | ||||
| fetch ( $prefix) | ||||
Get the Interwiki object for a given prefix.
| ||||
| getAllPrefixes ( $local=null) | ||||
Returns information about all interwiki prefixes, in the form of rows of the interwiki table.Each row may have the following keys:
labsconsole: and wikitech: resolve to the same URL, but you want VisualEditor to prefer wikitech when adding new links, then the row for wikitech should come before the row for labsconsole.
| ||||
| invalidateCache ( $prefix) | ||||
Purge the in-process and any persistent cache (e.g.memcached) for an interwiki prefix.
| ||||
| isValidInterwiki ( $prefix) | ||||
Check whether an interwiki prefix exists.
| ||||
An interwiki lookup that has no data, intended for use in the installer.
Definition at line 17 of file NullInterwikiLookup.php.
| MediaWiki\Interwiki\NullInterwikiLookup::fetch | ( | $prefix | ) |
Get the Interwiki object for a given prefix.
| string | $prefix | Interwiki prefix |
Implements MediaWiki\Interwiki\InterwikiLookup.
Definition at line 29 of file NullInterwikiLookup.php.
| MediaWiki\Interwiki\NullInterwikiLookup::getAllPrefixes | ( | $local = null | ) |
Returns information about all interwiki prefixes, in the form of rows of the interwiki table.Each row may have the following keys:
labsconsole: and wikitech: resolve to the same URL, but you want VisualEditor to prefer wikitech when adding new links, then the row for wikitech should come before the row for labsconsole.| bool | null | $local | If set, limit output to local or non-local interwikis |
Implements MediaWiki\Interwiki\InterwikiLookup.
Definition at line 36 of file NullInterwikiLookup.php.
| MediaWiki\Interwiki\NullInterwikiLookup::invalidateCache | ( | $prefix | ) |
Purge the in-process and any persistent cache (e.g.memcached) for an interwiki prefix.
| string | $prefix |
Implements MediaWiki\Interwiki\InterwikiLookup.
Definition at line 43 of file NullInterwikiLookup.php.
| MediaWiki\Interwiki\NullInterwikiLookup::isValidInterwiki | ( | $prefix | ) |
Check whether an interwiki prefix exists.
| string | $prefix | Interwiki prefix |
Implements MediaWiki\Interwiki\InterwikiLookup.
Definition at line 22 of file NullInterwikiLookup.php.