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

Public Member Functions

 __construct (Title $title, DatabaseBase $connection=null, LinkCache $linkCache=null)
 
 markAsPageLanguageByDB ($isDbPageLanguage)
 
 updatePageLanguage ($expectedLanguageCode)
 

Detailed Description

Handling Title::getDbPageLanguageCode and Special:PageLanguage to avoid possible contradictory results when $wgPageLanguageUseDB is enabled.

If wgPageLanguageUseDB is enabled then the PageContentLanguage hook is not going to be called in case Special:PageLanguage assigned a pagelanguage which could create a possible deviation between SIL annotation and the stored DB page_lang.

GNU GPL v2+

Since
1.3
Author
mwjames

Constructor & Destructor Documentation

SIL\PageContentLanguageDbModifier::__construct ( Title  $title,
DatabaseBase  $connection = null,
LinkCache  $linkCache = null 
)
Since
1.3
Parameters
Title$title
DatabaseBase | null$connection
LinkCache | null$linkCache

Member Function Documentation

SIL\PageContentLanguageDbModifier::markAsPageLanguageByDB (   $isDbPageLanguage)
Since
1.3
Parameters
boolean$isDbPageLanguage
SIL\PageContentLanguageDbModifier::updatePageLanguage (   $expectedLanguageCode)
Since
1.3
Parameters
string$expectedLanguageCode

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