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

Provide languages supported as content languages by removing values in one ContentLanguages from another ContentLanguages. More...

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

Public Member Functions

 __construct (ContentLanguages $all, ContentLanguages $excluded)
 
 getLanguages ()
 
 hasLanguage ( $languageCode)
 

Private Member Functions

 getLanguageCodes ()
 

Private Attributes

 $all
 
 $excluded
 
 $languageCodes = null
 

Detailed Description

Provide languages supported as content languages by removing values in one ContentLanguages from another ContentLanguages.

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\DifferenceContentLanguages::__construct ( ContentLanguages $all,
ContentLanguages $excluded )

Member Function Documentation

◆ getLanguageCodes()

Wikibase\Lib\DifferenceContentLanguages::getLanguageCodes ( )
private
Returns
string[] Array of language codes

◆ getLanguages()

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

Implements Wikibase\Lib\ContentLanguages.

◆ hasLanguage()

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

Implements Wikibase\Lib\ContentLanguages.

Member Data Documentation

◆ $all

Wikibase\Lib\DifferenceContentLanguages::$all
private

◆ $excluded

Wikibase\Lib\DifferenceContentLanguages::$excluded
private

◆ $languageCodes

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

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