Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\ExtraneousLanguage\LanguageContents Class Reference

Public Member Functions

 __construct (JsonLanguageContentsFileReader $jsonLanguageContentsFileReader, LanguageFallbackFinder $languageFallbackFinder)
 
 getCanonicalFallbackLanguageCode ()
 
 has ($languageCode)
 
 prepareWithLanguage ($languageCode)
 
 hasLanguageWithIndex ($languageCode, $index)
 
 getContentsByLanguageWithIndex ($languageCode, $index)
 

Detailed Description

GNU GPL v2+

Since
2.5
Author
mwjames

Constructor & Destructor Documentation

SMW\ExtraneousLanguage\LanguageContents::__construct ( JsonLanguageContentsFileReader  $jsonLanguageContentsFileReader,
LanguageFallbackFinder  $languageFallbackFinder 
)
Since
2.5
Parameters
JsonLanguageContentsFileReader$jsonLanguageContentsFileReader
LanguageFallbackFinder$languageFallbackFinder

Member Function Documentation

SMW\ExtraneousLanguage\LanguageContents::getCanonicalFallbackLanguageCode ( )
Since
2.5
Returns
string
SMW\ExtraneousLanguage\LanguageContents::getContentsByLanguageWithIndex (   $languageCode,
  $index 
)
Since
2.5
Parameters
string$languageCode
string$index
Returns
array|string|false
SMW\ExtraneousLanguage\LanguageContents::has (   $languageCode)
Since
2.5
Parameters
string$languageCode
Returns
boolean
SMW\ExtraneousLanguage\LanguageContents::hasLanguageWithIndex (   $languageCode,
  $index 
)
Since
2.5
Parameters
string$languageCode
string$index
Returns
boolean
SMW\ExtraneousLanguage\LanguageContents::prepareWithLanguage (   $languageCode)
Since
2.5
Parameters
string$languageCode
Returns
boolean

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