Wikibase
MediaWiki Wikibase extension
Wikibase\Lib\StaticContentLanguages Class Reference

Provide languages supported as content languages based on a list. More...

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

Public Member Functions

 __construct (array $languageCodes)
 
 getLanguages ()
 
 hasLanguage ( $languageCode)
 

Private Attributes

 $languageCodes = null
 

Detailed Description

Provide languages supported as content languages based on a list.

Author
Adrian Heine adria.nosp@m.n.he.nosp@m.ine@w.nosp@m.ikim.nosp@m.edia..nosp@m.de

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\StaticContentLanguages::__construct ( array  $languageCodes)
Parameters
string[]$languageCodes

Member Function Documentation

◆ getLanguages()

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

Implements Wikibase\Lib\ContentLanguages.

◆ hasLanguage()

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

Implements Wikibase\Lib\ContentLanguages.

Member Data Documentation

◆ $languageCodes

Wikibase\Lib\StaticContentLanguages::$languageCodes = null
private

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