MediaWiki master
|
PoolCounter protected work wrapping RenderedRevision->getRevisionParserOutput. More...
Inherits MediaWiki\PoolCounter\PoolCounterWork.
Inherited by MediaWiki\PoolCounter\PoolWorkArticleViewCurrent, and MediaWiki\PoolCounter\PoolWorkArticleViewOld.
Public Member Functions | |
__construct (string $workKey, RevisionRecord $revision, ParserOptions $parserOptions, RevisionRenderer $revisionRenderer, LoggerSpi $loggerSpi) | |
doWork () | |
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. | |
getCachedWork () | |
Retrieve the work from cache. | |
logError ( $status) | |
Log an error. | |
Protected Attributes | |
LoggerSpi | $loggerSpi |
ParserOptions | $parserOptions |
RevisionRecord | $revision |
Protected Attributes inherited from MediaWiki\PoolCounter\PoolCounterWork | |
bool | $cacheable = false |
string | $type = 'generic' |
Additional Inherited Members | |
Protected Member Functions inherited from MediaWiki\PoolCounter\PoolCounterWork | |
isFastStaleEnabled () | |
Should fast stale mode be used? | |
PoolCounter protected work wrapping RenderedRevision->getRevisionParserOutput.
Caching behavior may be defined by subclasses.
Definition at line 40 of file PoolWorkArticleView.php.
MediaWiki\PoolCounter\PoolWorkArticleView::__construct | ( | string | $workKey, |
RevisionRecord | $revision, | ||
ParserOptions | $parserOptions, | ||
RevisionRenderer | $revisionRenderer, | ||
LoggerSpi | $loggerSpi ) |
string | $workKey | |
RevisionRecord | $revision | Revision to render |
ParserOptions | $parserOptions | ParserOptions to use for the parse |
RevisionRenderer | $revisionRenderer | |
LoggerSpi | $loggerSpi |
Definition at line 57 of file PoolWorkArticleView.php.
References MediaWiki\PoolCounter\PoolWorkArticleView\$loggerSpi, MediaWiki\PoolCounter\PoolWorkArticleView\$parserOptions, and MediaWiki\PoolCounter\PoolWorkArticleView\$revision.
MediaWiki\PoolCounter\PoolWorkArticleView::doWork | ( | ) |
Reimplemented from MediaWiki\PoolCounter\PoolCounterWork.
Reimplemented in MediaWiki\PoolCounter\PoolWorkArticleViewCurrent, and MediaWiki\PoolCounter\PoolWorkArticleViewOld.
Definition at line 74 of file PoolWorkArticleView.php.
References MediaWiki\PoolCounter\PoolWorkArticleView\renderRevision().
MediaWiki\PoolCounter\PoolWorkArticleView::error | ( | $status | ) |
Status | $status |
Reimplemented from MediaWiki\PoolCounter\PoolCounterWork.
Definition at line 132 of file PoolWorkArticleView.php.
MediaWiki\PoolCounter\PoolWorkArticleView::renderRevision | ( | ?ParserOutput | $previousOutput = null, |
bool | $doSample = false, | ||
string | $sourceLabel = '' ) |
Render the given revision.
?ParserOutput | $previousOutput | previously-cached output for this page (used by Parsoid for selective updates) |
bool | $doSample | Whether to collect statistics on this render |
string | $sourceLabel | the source label to use on the statistics |
Definition at line 89 of file PoolWorkArticleView.php.
References MediaWiki\MediaWikiServices\getInstance().
Referenced by MediaWiki\PoolCounter\PoolWorkArticleView\doWork(), MediaWiki\PoolCounter\PoolWorkArticleViewCurrent\doWork(), and MediaWiki\PoolCounter\PoolWorkArticleViewOld\doWork().
|
protected |
Definition at line 48 of file PoolWorkArticleView.php.
Referenced by MediaWiki\PoolCounter\PoolWorkArticleViewCurrent\__construct(), MediaWiki\PoolCounter\PoolWorkArticleViewOld\__construct(), and MediaWiki\PoolCounter\PoolWorkArticleView\__construct().
|
protected |
Definition at line 42 of file PoolWorkArticleView.php.
Referenced by MediaWiki\PoolCounter\PoolWorkArticleViewCurrent\__construct(), MediaWiki\PoolCounter\PoolWorkArticleViewOld\__construct(), and MediaWiki\PoolCounter\PoolWorkArticleView\__construct().
|
protected |
Definition at line 44 of file PoolWorkArticleView.php.
Referenced by MediaWiki\PoolCounter\PoolWorkArticleViewCurrent\__construct(), MediaWiki\PoolCounter\PoolWorkArticleViewOld\__construct(), and MediaWiki\PoolCounter\PoolWorkArticleView\__construct().