MediaWiki REL1_37
|
PoolWorkArticleView for an old revision of a page, using a simple cache. More...
Public Member Functions | |
__construct (string $workKey, RevisionOutputCache $cache, RevisionRecord $revision, ParserOptions $parserOptions, RevisionRenderer $revisionRenderer, LoggerSpi $loggerSpi) | |
getCachedWork () | |
Public Member Functions inherited from PoolWorkArticleView | |
__construct (string $workKey, RevisionRecord $revision, ParserOptions $parserOptions, RevisionRenderer $revisionRenderer, LoggerSpi $loggerSpi) | |
doWork () | |
error ( $status) | |
getError () | |
Get a Status object in case of error or false otherwise. | |
getIsDirty () | |
Get whether the ParserOutput is a dirty one (i.e. | |
getIsFastStale () | |
Get whether the ParserOutput was retrieved in fast stale mode. | |
getParserOutput () | |
Get the ParserOutput from this object, or false in case of failure. | |
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. | |
Protected Member Functions | |
saveInCache (ParserOutput $output, string $cacheTime) | |
Protected Member Functions inherited from PoolWorkArticleView | |
afterWork (ParserOutput $output) | |
Subclasses may implement this to perform some action after the work of rendering is done. | |
getLogger ( $name='PoolWorkArticleView') | |
Protected Member Functions inherited from PoolCounterWork | |
isFastStaleEnabled () | |
Should fast stale mode be used? | |
Private Attributes | |
RevisionOutputCache | $cache |
Additional Inherited Members | |
Protected Attributes inherited from PoolWorkArticleView | |
Status bool | $error = false |
bool | $isDirty = false |
bool | $isFast = false |
ParserOptions | $parserOptions |
ParserOutput bool | $parserOutput = false |
RevisionRenderer | $renderer = null |
RevisionRecord null | $revision = null |
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 30 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.
References $cache.
PoolWorkArticleViewOld::getCachedWork | ( | ) |
Reimplemented from PoolCounterWork.
Definition at line 69 of file PoolWorkArticleViewOld.php.
|
protected |
ParserOutput | $output | |
string | $cacheTime |
Reimplemented from PoolWorkArticleView.
Definition at line 62 of file PoolWorkArticleViewOld.php.
|
private |
Definition at line 33 of file PoolWorkArticleViewOld.php.