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

Public Member Functions

 __construct (Cache $cache=null, $languageFileDir= '')
 
 setCachePrefix ($cachePrefix)
 
 skipCache ()
 
 getModificationTimeByLanguageCode ($languageCode)
 
 canReadByLanguageCode ($languageCode)
 
 writeByLanguageCode ($languageCode, $contents)
 
 readByLanguageCode ($languageCode, $readFromFile=false)
 

Static Public Member Functions

static clear ()
 

Protected Member Functions

 doReadJsonContentsFromFileBy ($languageCode, $cacheKey)
 

Detailed Description

GNU GPL v2+

Since
2.5
Author
mwjames

Constructor & Destructor Documentation

SMW\ExtraneousLanguage\JsonLanguageContentsFileReader::__construct ( Cache  $cache = null,
  $languageFileDir = '' 
)
Since
2.5
Parameters
Cache | null$cache
string$languageFileDir

Member Function Documentation

SMW\ExtraneousLanguage\JsonLanguageContentsFileReader::canReadByLanguageCode (   $languageCode)
Since
2.5
Parameters
string$languageCode
boolean$readFromFile
Returns
boolean
static SMW\ExtraneousLanguage\JsonLanguageContentsFileReader::clear ( )
static
Since
2.5
SMW\ExtraneousLanguage\JsonLanguageContentsFileReader::doReadJsonContentsFromFileBy (   $languageCode,
  $cacheKey 
)
protected
SMW\ExtraneousLanguage\JsonLanguageContentsFileReader::getModificationTimeByLanguageCode (   $languageCode)
Since
1.2.0
Returns
integer
SMW\ExtraneousLanguage\JsonLanguageContentsFileReader::readByLanguageCode (   $languageCode,
  $readFromFile = false 
)
Since
2.5
Parameters
string$languageCode
boolean$readFromFile
Returns
array
Exceptions
RuntimeException
SMW\ExtraneousLanguage\JsonLanguageContentsFileReader::setCachePrefix (   $cachePrefix)
Since
2.5
Parameters
string$cachePrefix
SMW\ExtraneousLanguage\JsonLanguageContentsFileReader::skipCache ( )
Since
2.5
SMW\ExtraneousLanguage\JsonLanguageContentsFileReader::writeByLanguageCode (   $languageCode,
  $contents 
)
Since
2.5
Parameters
string$languageCode
array$contents

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