Semantic MediaWiki and related extensions
Public Member Functions | Public Attributes | List of all members
SIL\PageContentLanguageOnTheFlyModifier Class Reference

Public Member Functions

 __construct (InterlanguageLinksLookup $interlanguageLinksLookup, Cache $intermediaryCache)
 
 addToIntermediaryCache (Title $title, $languageCode)
 
 getPageContentLanguage (Title $title, $pageLanguage)
 

Public Attributes

const POOLCACHE_ID = 'sil.pagecontentlanguage'
 

Detailed Description

Modifies the content language based on the SIL annotation found for the selected page.

GNU GPL v2+

Since
1.0
Author
mwjames

Constructor & Destructor Documentation

SIL\PageContentLanguageOnTheFlyModifier::__construct ( InterlanguageLinksLookup  $interlanguageLinksLookup,
Cache  $intermediaryCache 
)
Since
1.0
Parameters
InterlanguageLinksLookup$interlanguageLinksLookup
Cache$intermediaryCache

Member Function Documentation

SIL\PageContentLanguageOnTheFlyModifier::addToIntermediaryCache ( Title  $title,
  $languageCode 
)
Since
1.3
Parameters
Title$title
string&languageCode
SIL\PageContentLanguageOnTheFlyModifier::getPageContentLanguage ( Title  $title,
  $pageLanguage 
)
Since
1.0
Parameters
Title$title
Language | string&$pageLanguage
Returns
string

Member Data Documentation

const SIL\PageContentLanguageOnTheFlyModifier::POOLCACHE_ID = 'sil.pagecontentlanguage'

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