MediaWiki  master
MediaWiki\Interwiki\InterwikiLookupAdapter Class Reference

InterwikiLookupAdapter on top of SiteLookup. More...

Inheritance diagram for MediaWiki\Interwiki\InterwikiLookupAdapter:
Collaboration diagram for MediaWiki\Interwiki\InterwikiLookupAdapter:

Public Member Functions

 __construct (SiteLookup $siteLookup, array $interwikiMap=null)
 
 fetch ( $prefix)
 See InterwikiLookup::fetch It loads the whole interwiki map. More...
 
 getAllPrefixes ( $local=null)
 See InterwikiLookup::getAllPrefixes. More...
 
 invalidateCache ( $prefix)
 See InterwikiLookup::invalidateCache. More...
 
 isValidInterwiki ( $prefix)
 See InterwikiLookup::isValidInterwiki It loads the whole interwiki map. More...
 

Detailed Description

InterwikiLookupAdapter on top of SiteLookup.

Since
1.29
Note
GPL-2.0-or-later

Definition at line 34 of file InterwikiLookupAdapter.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Interwiki\InterwikiLookupAdapter::__construct ( SiteLookup  $siteLookup,
array  $interwikiMap = null 
)

Definition at line 46 of file InterwikiLookupAdapter.php.

Member Function Documentation

◆ fetch()

MediaWiki\Interwiki\InterwikiLookupAdapter::fetch (   $prefix)

See InterwikiLookup::fetch It loads the whole interwiki map.

Parameters
string$prefixInterwiki prefix to use
Returns
Interwiki|null|bool

Implements MediaWiki\Interwiki\InterwikiLookup.

Definition at line 72 of file InterwikiLookupAdapter.php.

References MediaWiki\Interwiki\InterwikiLookupAdapter\isValidInterwiki().

◆ getAllPrefixes()

MediaWiki\Interwiki\InterwikiLookupAdapter::getAllPrefixes (   $local = null)

See InterwikiLookup::getAllPrefixes.

Parameters
bool | null$localIf set, limits output to local/non-local interwikis
Returns
array[] interwiki rows

Implements MediaWiki\Interwiki\InterwikiLookup.

Definition at line 91 of file InterwikiLookupAdapter.php.

References $res.

◆ invalidateCache()

MediaWiki\Interwiki\InterwikiLookupAdapter::invalidateCache (   $prefix)

See InterwikiLookup::invalidateCache.

Parameters
string$prefix

Implements MediaWiki\Interwiki\InterwikiLookup.

Definition at line 113 of file InterwikiLookupAdapter.php.

◆ isValidInterwiki()

MediaWiki\Interwiki\InterwikiLookupAdapter::isValidInterwiki (   $prefix)

See InterwikiLookup::isValidInterwiki It loads the whole interwiki map.

Parameters
string$prefixInterwiki prefix to use
Returns
bool Whether it exists

Implements MediaWiki\Interwiki\InterwikiLookup.

Definition at line 61 of file InterwikiLookupAdapter.php.

Referenced by MediaWiki\Interwiki\InterwikiLookupAdapter\fetch().


The documentation for this class was generated from the following file: