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

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

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

Public Member Functions

 __construct (?LanguageNameUtils $languageNameUtils=null, string $languageNameUtilsInclude=LanguageNameUtils::DEFINED)
 
 getLanguages ()
 
 hasLanguage ( $languageCode)
 

Private Member Functions

 getLanguageMap ()
 

Private Attributes

 $languageNameUtils
 
string $languageNameUtilsInclude
 
 $languageMap = null
 

Detailed Description

Provide languages supported as content languages based on MediaWiki's LanguageNameUtils.

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,
string $languageNameUtilsInclude = LanguageNameUtils::DEFINED )
Parameters
null | LanguageNameUtils$languageNameUtils
string$languageNameUtilsIncludeEither LanguageNameUtils::DEFINED, LanguageNameUtils::ALL, or LanguageNameUtils::SUPPORTED.

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

◆ $languageNameUtilsInclude

string Wikibase\Lib\MediaWikiContentLanguages::$languageNameUtilsInclude
private

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