Semantic MediaWiki and related extensions
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SESP\Cache\MessageCache Class Reference

Public Member Functions

 __construct (Language $language=null, $cacheTimeOffset=null)
 
 setLanguage (Language $language)
 
 inUserLanguage ()
 
 purge ()
 
 setCacheTimeOffset ($cacheTimeOffset)
 
 setCache (BagOStuff $cache)
 
 getCacheId ()
 
 get ($key)
 

Static Public Member Functions

static clear ()
 

Protected Member Functions

 getTextMessage ($key, $arguments)
 
 updateMessagesToCache ()
 
 fetchMessagesFromCache ()
 
 getCache ()
 
 getCachePrefix ()
 
 getTouched ()
 
 getMessageFileModificationTime ()
 

Protected Attributes

 $language = null
 
 $touched = null
 
 $cacheTimeOffset = null
 
 $messages = null
 
 $cache = null
 

Detailed Description

GNU GPL v2+

Since
1.2.0
Author
mwjames

Constructor & Destructor Documentation

SESP\Cache\MessageCache::__construct ( Language  $language = null,
  $cacheTimeOffset = null 
)
Since
1.2.0
Parameters
Language | null$language
integer | null$cacheTimeOffset

Member Function Documentation

static SESP\Cache\MessageCache::clear ( )
static
Since
1.2.0
SESP\Cache\MessageCache::fetchMessagesFromCache ( )
protected
SESP\Cache\MessageCache::get (   $key)
Since
1.2.0
Parameters
string$key
Returns
string
SESP\Cache\MessageCache::getCache ( )
protected
SESP\Cache\MessageCache::getCacheId ( )
Since
1.2.0
Returns
string
SESP\Cache\MessageCache::getCachePrefix ( )
protected
SESP\Cache\MessageCache::getMessageFileModificationTime ( )
protected
SESP\Cache\MessageCache::getTextMessage (   $key,
  $arguments 
)
protected
SESP\Cache\MessageCache::getTouched ( )
protected
SESP\Cache\MessageCache::inUserLanguage ( )
Since
1.4
Returns
MessageCache
SESP\Cache\MessageCache::purge ( )
Since
1.2.0

MessageCache::ByLanguage( Language::factory( 'en' ) )->purge()

Returns
MessageCache
SESP\Cache\MessageCache::setCache ( BagOStuff  $cache)
Since
1.2.0
Parameters
BagOStuff$cache
SESP\Cache\MessageCache::setCacheTimeOffset (   $cacheTimeOffset)
Since
1.2.0
Parameters
integer$cacheTimeOffset
Returns
MessageCache
SESP\Cache\MessageCache::setLanguage ( Language  $language)
Since
1.4
Parameters
Language$language
SESP\Cache\MessageCache::updateMessagesToCache ( )
protected

Member Data Documentation

SESP\Cache\MessageCache::$cache = null
protected
SESP\Cache\MessageCache::$cacheTimeOffset = null
protected
SESP\Cache\MessageCache::$language = null
protected
SESP\Cache\MessageCache::$messages = null
protected
SESP\Cache\MessageCache::$touched = null
protected

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