MediaWiki master
MediaWiki\PoolCounter\PoolWorkArticleViewCurrent Class Reference

PoolWorkArticleView for the current revision of a page, using ParserCache. More...

Inherits MediaWiki\PoolCounter\PoolWorkArticleView.

Collaboration diagram for MediaWiki\PoolCounter\PoolWorkArticleViewCurrent:

Public Member Functions

 __construct (string $workKey, PageRecord $page, RevisionRecord $revision, ParserOptions $parserOptions, RevisionRenderer $revisionRenderer, ParserCache $parserCache, ILBFactory $lbFactory, ChronologyProtector $chronologyProtector, LoggerSpi $loggerSpi, WikiPageFactory $wikiPageFactory, bool $cacheable=true, bool $triggerLinksUpdate=false)
 
 doWork ()
 
 fallback ( $fast)
 
 getCachedWork ()
 
- Public Member Functions inherited from MediaWiki\PoolCounter\PoolWorkArticleView
 __construct (string $workKey, RevisionRecord $revision, ParserOptions $parserOptions, RevisionRenderer $revisionRenderer, LoggerSpi $loggerSpi)
 
 error ( $status)
 
 renderRevision ()
 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.
 
 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 the current revision of a page, using ParserCache.

Access: internal

Definition at line 42 of file PoolWorkArticleViewCurrent.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\PoolCounter\PoolWorkArticleViewCurrent::__construct ( string $workKey,
PageRecord $page,
RevisionRecord $revision,
ParserOptions $parserOptions,
RevisionRenderer $revisionRenderer,
ParserCache $parserCache,
ILBFactory $lbFactory,
ChronologyProtector $chronologyProtector,
LoggerSpi $loggerSpi,
WikiPageFactory $wikiPageFactory,
bool $cacheable = true,
bool $triggerLinksUpdate = false )
Parameters
string$workKey
PageRecord$page
RevisionRecord$revisionRevision to render
ParserOptions$parserOptionsParserOptions to use for the parse
RevisionRenderer$revisionRenderer
ParserCache$parserCache
ILBFactory$lbFactory
ChronologyProtector$chronologyProtector
LoggerSpi$loggerSpi
WikiPageFactory$wikiPageFactory
bool$cacheableWhether it should store the result in cache or not
bool$triggerLinksUpdateWhether it should trigger an opportunistic LinksUpdate or not

Definition at line 71 of file PoolWorkArticleViewCurrent.php.

References MediaWiki\PoolCounter\PoolCounterWork\$cacheable, MediaWiki\PoolCounter\PoolWorkArticleView\$loggerSpi, MediaWiki\PoolCounter\PoolWorkArticleView\$parserOptions, MediaWiki\PoolCounter\PoolWorkArticleView\$revision, MediaWiki\Page\ProperPageIdentity\getId(), and MediaWiki\Revision\RevisionRecord\getPageId().

Member Function Documentation

◆ doWork()

MediaWiki\PoolCounter\PoolWorkArticleViewCurrent::doWork ( )

◆ fallback()

MediaWiki\PoolCounter\PoolWorkArticleViewCurrent::fallback ( $fast)
Parameters
bool$fastFast stale request
Returns
Status|false

Reimplemented from MediaWiki\PoolCounter\PoolCounterWork.

Definition at line 144 of file PoolWorkArticleViewCurrent.php.

◆ getCachedWork()

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

Reimplemented from MediaWiki\PoolCounter\PoolCounterWork.

Definition at line 131 of file PoolWorkArticleViewCurrent.php.


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