Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\ParserOutput\TermboxVersionParserCacheValueRejector Class Reference

Public Member Functions

 __construct (TermboxFlag $flag)
 
 keepCachedValue (ParserOutput $parserOutput, 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.
 

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 $parserOutput,
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$parserOutputThe parser cache value
ParserOptions$parserOptionsThe parser cache key
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: