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

◆ __construct()

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

Member Function Documentation

◆ addToIntermediaryCache()

SIL\PageContentLanguageOnTheFlyModifier::addToIntermediaryCache ( Title  $title,
  $languageCode 
)
Since
1.3
Parameters
Title$title
string&languageCode

◆ getPageContentLanguage()

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

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

About | General disclaimer | Privacy policy