MediaWiki  master
PoolWorkArticleViewOld Class Reference

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

Inheritance diagram for PoolWorkArticleViewOld:
Collaboration diagram for PoolWorkArticleViewOld:

Public Member Functions

 __construct (string $workKey, RevisionOutputCache $cache, RevisionRecord $revision, ParserOptions $parserOptions, RevisionRenderer $revisionRenderer, LoggerSpi $loggerSpi)
 
 doWork ()
 
 getCachedWork ()
 
- Public Member Functions inherited from PoolWorkArticleView
 __construct (string $workKey, RevisionRecord $revision, ParserOptions $parserOptions, RevisionRenderer $revisionRenderer, LoggerSpi $loggerSpi)
 
 error ( $status)
 
 renderRevision ()
 
- Public Member Functions inherited from 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. More...
 
 fallback ( $fast)
 A work not so good (eg. More...
 
 logError ( $status)
 Log an error. More...
 

Private Attributes

RevisionOutputCache $cache
 

Additional Inherited Members

- Protected Member Functions inherited from PoolCounterWork
 isFastStaleEnabled ()
 Should fast stale mode be used? More...
 
- Protected Attributes inherited from PoolWorkArticleView
LoggerSpi $loggerSpi
 
ParserOptions $parserOptions
 
RevisionRecord $revision
 
- Protected Attributes inherited from 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 31 of file PoolWorkArticleViewOld.php.

Constructor & Destructor Documentation

◆ __construct()

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 44 of file PoolWorkArticleViewOld.php.

References $cache, PoolWorkArticleView\$loggerSpi, PoolWorkArticleView\$parserOptions, and PoolWorkArticleView\$revision.

Member Function Documentation

◆ doWork()

PoolWorkArticleViewOld::doWork ( )
Returns
Status

Reimplemented from PoolWorkArticleView.

Definition at line 62 of file PoolWorkArticleViewOld.php.

References PoolWorkArticleView\renderRevision(), and wfTimestampNow().

◆ getCachedWork()

PoolWorkArticleViewOld::getCachedWork ( )
Returns
Status|false

Reimplemented from PoolCounterWork.

Definition at line 80 of file PoolWorkArticleViewOld.php.

References StatusValue\newGood().

Member Data Documentation

◆ $cache

RevisionOutputCache PoolWorkArticleViewOld::$cache
private

Definition at line 34 of file PoolWorkArticleViewOld.php.

Referenced by __construct().


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