MediaWiki master
|
PoolWorkArticleView for an old revision of a page, using a simple cache. More...
Inherits MediaWiki\PoolCounter\PoolWorkArticleView.
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' |
PoolWorkArticleView for an old revision of a page, using a simple cache.
Definition at line 38 of file PoolWorkArticleViewOld.php.
MediaWiki\PoolCounter\PoolWorkArticleViewOld::__construct | ( | string | $workKey, |
RevisionOutputCache | $cache, | ||
RevisionRecord | $revision, | ||
ParserOptions | $parserOptions, | ||
RevisionRenderer | $revisionRenderer, | ||
LoggerSpi | $loggerSpi ) |
string | $workKey | PoolCounter key. |
RevisionOutputCache | $cache | The cache to store ParserOutput in. |
RevisionRecord | $revision | Revision to render |
ParserOptions | $parserOptions | ParserOptions 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.
MediaWiki\PoolCounter\PoolWorkArticleViewOld::doWork | ( | ) |
Reimplemented from MediaWiki\PoolCounter\PoolWorkArticleView.
Definition at line 68 of file PoolWorkArticleViewOld.php.
References MediaWiki\MediaWikiServices\getInstance(), MediaWiki\MainConfigNames\ParsoidSelectiveUpdateSampleRate, MediaWiki\PoolCounter\PoolWorkArticleView\renderRevision(), and wfTimestampNow().
MediaWiki\PoolCounter\PoolWorkArticleViewOld::getCachedWork | ( | ) |
Reimplemented from MediaWiki\PoolCounter\PoolCounterWork.
Definition at line 96 of file PoolWorkArticleViewOld.php.