MediaWiki REL1_39
|
PoolCounter protected work wrapping RenderedRevision->getRevisionParserOutput. More...
Public Member Functions | |
__construct (string $workKey, RevisionRecord $revision, ParserOptions $parserOptions, RevisionRenderer $revisionRenderer, LoggerSpi $loggerSpi) | |
doWork () | |
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. | |
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 PoolCounterWork | |
bool | $cacheable = false |
string | $type = 'generic' |
Additional Inherited Members | |
Protected Member Functions inherited from PoolCounterWork | |
isFastStaleEnabled () | |
Should fast stale mode be used? | |
PoolCounter protected work wrapping RenderedRevision->getRevisionParserOutput.
Caching behavior may be defined by subclasses.
Definition at line 33 of file PoolWorkArticleView.php.
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 54 of file PoolWorkArticleView.php.
PoolWorkArticleView::doWork | ( | ) |
Reimplemented from PoolCounterWork.
Reimplemented in PoolWorkArticleViewCurrent, and PoolWorkArticleViewOld.
Definition at line 71 of file PoolWorkArticleView.php.
References renderRevision().
PoolWorkArticleView::error | ( | $status | ) |
Status | $status |
Reimplemented from PoolCounterWork.
Definition at line 112 of file PoolWorkArticleView.php.
PoolWorkArticleView::renderRevision | ( | ) |
Definition at line 78 of file PoolWorkArticleView.php.
Referenced by doWork(), PoolWorkArticleViewCurrent\doWork(), and PoolWorkArticleViewOld\doWork().
|
protected |
Definition at line 45 of file PoolWorkArticleView.php.
|
protected |
Definition at line 36 of file PoolWorkArticleView.php.
|
protected |
Definition at line 39 of file PoolWorkArticleView.php.