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

Public Member Functions

 __construct (Title $title, LanguageLinkAnnotator $languageLinkAnnotator, SiteLanguageLinksParserOutputAppender $siteLanguageLinksParserOutputAppender, PageContentLanguageOnTheFlyModifier $pageContentLanguageOnTheFlyModifier, PageContentLanguageDbModifier $pageContentLanguageDbModifier)
 
 setInterlanguageLinksHideState ($interlanguageLinksHideState)
 
 setRevisionModeState ($inRevisionMode)
 
 parse ($languageCode, $linkReference)
 

Detailed Description

GNU GPL v2+

Since
1.0
Author
mwjames

Constructor & Destructor Documentation

SIL\InterlanguageLinkParserFunction::__construct ( Title  $title,
LanguageLinkAnnotator  $languageLinkAnnotator,
SiteLanguageLinksParserOutputAppender  $siteLanguageLinksParserOutputAppender,
PageContentLanguageOnTheFlyModifier  $pageContentLanguageOnTheFlyModifier,
PageContentLanguageDbModifier  $pageContentLanguageDbModifier 
)
Since
1.0
Parameters
Title$title
LanguageLinkAnnotator$languageLinkAnnotator
SiteLanguageLinksParserOutputAppender$siteLanguageLinksParserOutputAppender
PageContentLanguageOnTheFlyModifier$pageContentLanguageOnTheFlyModifier
PageContentLanguageDbModifier$pageContentLanguageDbModifier

Member Function Documentation

SIL\InterlanguageLinkParserFunction::parse (   $languageCode,
  $linkReference 
)
Since
1.0
Parameters
string$languageCode
string$linkReference
Returns
null|string
SIL\InterlanguageLinkParserFunction::setInterlanguageLinksHideState (   $interlanguageLinksHideState)
Since
1.0
Parameters
boolean$interlanguageLinksHideState
SIL\InterlanguageLinkParserFunction::setRevisionModeState (   $inRevisionMode)

Revision mode means either in preview or edit state which is not to be handled to avoid storage of yet unprocessed data in cache.

Since
1.2
Parameters
boolean$inRevisionMode

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