MediaWiki REL1_40
|
PoolWorkArticleView for an old revision of a page, using a simple cache. More...
Inherits PoolWorkArticleView.
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. | |
fallback ( $fast) | |
A work not so good (eg. | |
logError ( $status) | |
Log an error. | |
Additional Inherited Members | |
Protected Member Functions inherited from PoolCounterWork | |
isFastStaleEnabled () | |
Should fast stale mode be used? | |
Protected Attributes inherited from PoolWorkArticleView | |
LoggerSpi | $loggerSpi |
ParserOptions | $parserOptions |
RevisionRecord | $revision |
Protected Attributes inherited from PoolCounterWork | |
bool | $cacheable = false |
string | $type = 'generic' |
PoolWorkArticleView for an old revision of a page, using a simple cache.
Definition at line 31 of file PoolWorkArticleViewOld.php.
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 43 of file PoolWorkArticleViewOld.php.
PoolWorkArticleViewOld::doWork | ( | ) |
Reimplemented from PoolWorkArticleView.
Definition at line 61 of file PoolWorkArticleViewOld.php.
References PoolWorkArticleView\renderRevision(), and wfTimestampNow().
PoolWorkArticleViewOld::getCachedWork | ( | ) |
Reimplemented from PoolCounterWork.
Definition at line 79 of file PoolWorkArticleViewOld.php.