MediaWiki master
MediaWiki\PoolCounter\PoolWorkArticleViewOld Class Reference

PoolWorkArticleView for an old revision of a page, using a simple cache. More...

Inherits MediaWiki\PoolCounter\PoolWorkArticleView.

Collaboration diagram for MediaWiki\PoolCounter\PoolWorkArticleViewOld:

Public Member Functions

 __construct (string $workKey, RevisionOutputCache $cache, RevisionRecord $revision, ParserOptions $parserOptions, RevisionRenderer $revisionRenderer, LoggerSpi $loggerSpi)
 
 doWork ()
 
 getCachedWork ()
 
- Public Member Functions inherited from MediaWiki\PoolCounter\PoolWorkArticleView
 __construct (string $workKey, RevisionRecord $revision, ParserOptions $parserOptions, RevisionRenderer $revisionRenderer, LoggerSpi $loggerSpi)
 
 error ( $status)
 
 renderRevision (?ParserOutput $previousOutput=null, bool $doSample=false, string $sourceLabel='')
 Render the given revision.
 
- Public Member Functions inherited from MediaWiki\PoolCounter\PoolCounterWork
 __construct (string $type, string $key, ?PoolCounter $poolCounter=null)
 
 execute ( $skipcache=false)
 Get the result of the work (whatever it is), or the result of the error() function.
 
 fallback ( $fast)
 A work not so good (eg.
 
 logError ( $status)
 Log an error.
 

Additional Inherited Members

- Protected Member Functions inherited from MediaWiki\PoolCounter\PoolCounterWork
 isFastStaleEnabled ()
 Should fast stale mode be used?
 
- Protected Attributes inherited from MediaWiki\PoolCounter\PoolWorkArticleView
LoggerSpi $loggerSpi
 
ParserOptions $parserOptions
 
RevisionRecord $revision
 
- Protected Attributes inherited from MediaWiki\PoolCounter\PoolCounterWork
bool $cacheable = false
 
string $type = 'generic'
 

Detailed Description

PoolWorkArticleView for an old revision of a page, using a simple cache.

Access: internal

Definition at line 38 of file PoolWorkArticleViewOld.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\PoolCounter\PoolWorkArticleViewOld::__construct ( string $workKey,
RevisionOutputCache $cache,
RevisionRecord $revision,
ParserOptions $parserOptions,
RevisionRenderer $revisionRenderer,
LoggerSpi $loggerSpi )
Parameters
string$workKeyPoolCounter key.
RevisionOutputCache$cacheThe cache to store ParserOutput in.
RevisionRecord$revisionRevision to render
ParserOptions$parserOptionsParserOptions to use for the parse
RevisionRenderer$revisionRenderer
LoggerSpi$loggerSpi

Definition at line 50 of file PoolWorkArticleViewOld.php.

References MediaWiki\PoolCounter\PoolWorkArticleView\$loggerSpi, MediaWiki\PoolCounter\PoolWorkArticleView\$parserOptions, and MediaWiki\PoolCounter\PoolWorkArticleView\$revision.

Member Function Documentation

◆ doWork()

◆ getCachedWork()

MediaWiki\PoolCounter\PoolWorkArticleViewOld::getCachedWork ( )
Returns
Status|false

Reimplemented from MediaWiki\PoolCounter\PoolCounterWork.

Definition at line 96 of file PoolWorkArticleViewOld.php.


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