Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\ParserOutput\TermboxVersionParserCacheValueRejector Class Reference

Public Member Functions

 __construct (TermboxFlag $flag)
 
 keepCachedValue (ParserOutput $parserValue, ParserOptions $parserOptions)
 Determines whether we should reject an otherwise valid parser cache value in order to add a Termbox Version to the ParserOptions and Parser Cache key. More...
 

Private Attributes

const TERMBOX_VERSION_KEY = 'termboxVersion'
 
 $flag
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\ParserOutput\TermboxVersionParserCacheValueRejector::__construct ( TermboxFlag  $flag)

Member Function Documentation

◆ keepCachedValue()

Wikibase\Repo\ParserOutput\TermboxVersionParserCacheValueRejector::keepCachedValue ( ParserOutput  $parserValue,
ParserOptions  $parserOptions 
)

Determines whether we should reject an otherwise valid parser cache value in order to add a Termbox Version to the ParserOptions and Parser Cache key.

To be used in conjunction with Mediawiki's RejectParserCacheValue hook

Parameters
ParserOutput$parserValue
ParserOptions$parserOptions
Returns
bool

Member Data Documentation

◆ $flag

Wikibase\Repo\ParserOutput\TermboxVersionParserCacheValueRejector::$flag
private

◆ TERMBOX_VERSION_KEY

const Wikibase\Repo\ParserOutput\TermboxVersionParserCacheValueRejector::TERMBOX_VERSION_KEY = 'termboxVersion'
private

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