MediaWiki REL1_37
|
PoolWorkArticleView for the current revision of a page, using ParserCache. More...
Public Member Functions | |
__construct (string $workKey, PageRecord $page, RevisionRecord $revision, ParserOptions $parserOptions, RevisionRenderer $revisionRenderer, ParserCache $parserCache, ILBFactory $lbFactory, LoggerSpi $loggerSpi, WikiPageFactory $wikiPageFactory) | |
fallback ( $fast) | |
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. | |
logError ( $status) | |
Log an error. | |
Protected Member Functions | |
afterWork (ParserOutput $output) | |
saveInCache (ParserOutput $output, string $cacheTime) | |
Protected Member Functions inherited from PoolWorkArticleView | |
getLogger ( $name='PoolWorkArticleView') | |
Protected Member Functions inherited from PoolCounterWork | |
isFastStaleEnabled () | |
Should fast stale mode be used? | |
Private Attributes | |
ILBFactory | $lbFactory |
PageRecord | $page |
ParserCache | $parserCache |
WikiPageFactory | $wikiPageFactory |
string | $workKey |
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 the current revision of a page, using ParserCache.
Definition at line 33 of file PoolWorkArticleViewCurrent.php.
PoolWorkArticleViewCurrent::__construct | ( | string | $workKey, |
PageRecord | $page, | ||
RevisionRecord | $revision, | ||
ParserOptions | $parserOptions, | ||
RevisionRenderer | $revisionRenderer, | ||
ParserCache | $parserCache, | ||
ILBFactory | $lbFactory, | ||
LoggerSpi | $loggerSpi, | ||
WikiPageFactory | $wikiPageFactory | ||
) |
string | $workKey | |
PageRecord | $page | |
RevisionRecord | $revision | Revision to render |
ParserOptions | $parserOptions | ParserOptions to use for the parse |
RevisionRenderer | $revisionRenderer | |
ParserCache | $parserCache | |
ILBFactory | $lbFactory | |
LoggerSpi | $loggerSpi | |
WikiPageFactory | $wikiPageFactory |
Definition at line 61 of file PoolWorkArticleViewCurrent.php.
References MediaWiki\Page\ProperPageIdentity\getId(), and MediaWiki\Revision\RevisionRecord\getPageId().
|
protected |
ParserOutput | $output |
Reimplemented from PoolWorkArticleView.
Definition at line 105 of file PoolWorkArticleViewCurrent.php.
PoolWorkArticleViewCurrent::fallback | ( | $fast | ) |
bool | $fast | Fast stale request |
Reimplemented from PoolCounterWork.
Definition at line 130 of file PoolWorkArticleViewCurrent.php.
References PoolWorkArticleView\getLogger().
PoolWorkArticleViewCurrent::getCachedWork | ( | ) |
Reimplemented from PoolCounterWork.
Definition at line 113 of file PoolWorkArticleViewCurrent.php.
References PoolWorkArticleView\getLogger().
|
protected |
ParserOutput | $output | |
string | $cacheTime |
Reimplemented from PoolWorkArticleView.
Definition at line 92 of file PoolWorkArticleViewCurrent.php.
|
private |
Definition at line 45 of file PoolWorkArticleViewCurrent.php.
|
private |
Definition at line 39 of file PoolWorkArticleViewCurrent.php.
|
private |
Definition at line 42 of file PoolWorkArticleViewCurrent.php.
|
private |
Definition at line 48 of file PoolWorkArticleViewCurrent.php.
|
private |
Definition at line 36 of file PoolWorkArticleViewCurrent.php.