Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\MediaWikiContentLanguages Class Reference

Provide languages supported as content languages based on MediaWiki's Language class. More...

+ Inheritance diagram for Wikibase\Lib\MediaWikiContentLanguages:
+ Collaboration diagram for Wikibase\Lib\MediaWikiContentLanguages:

Public Member Functions

 __construct (LanguageNameUtils $languageNameUtils=null)
 
 getLanguages ()
 
 hasLanguage ( $languageCode)
 

Private Member Functions

 getLanguageMap ()
 

Private Attributes

 $languageNameUtils
 
 $languageMap = null
 

Detailed Description

Provide languages supported as content languages based on MediaWiki's Language class.

Author
Adrian Heine adria.nosp@m.n.he.nosp@m.ine@w.nosp@m.ikim.nosp@m.edia..nosp@m.de
Marius Hoch < hoo@o.nosp@m.nlin.nosp@m.e.de >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\MediaWikiContentLanguages::__construct ( LanguageNameUtils $languageNameUtils = null)

Member Function Documentation

◆ getLanguageMap()

Wikibase\Lib\MediaWikiContentLanguages::getLanguageMap ( )
private
Returns
string[] Array of language codes => language names.

◆ getLanguages()

Wikibase\Lib\MediaWikiContentLanguages::getLanguages ( )
Returns
string[] Array of language codes supported as content language

Implements Wikibase\Lib\ContentLanguages.

◆ hasLanguage()

Wikibase\Lib\MediaWikiContentLanguages::hasLanguage ( $languageCode)
Parameters
string$languageCode
Returns
bool

Implements Wikibase\Lib\ContentLanguages.

Member Data Documentation

◆ $languageMap

Wikibase\Lib\MediaWikiContentLanguages::$languageMap = null
private

◆ $languageNameUtils

Wikibase\Lib\MediaWikiContentLanguages::$languageNameUtils
private

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