MediaWiki REL1_39
|
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, bool $cacheable=true) | |
doWork () | |
fallback ( $fast) | |
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. | |
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 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, | ||
bool | $cacheable = true ) |
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 | |
bool | $cacheable | Whether it should store the result in cache or not |
Definition at line 62 of file PoolWorkArticleViewCurrent.php.
References PoolCounterWork\$cacheable, MediaWiki\Page\ProperPageIdentity\getId(), and MediaWiki\Revision\RevisionRecord\getPageId().
PoolWorkArticleViewCurrent::doWork | ( | ) |
Reimplemented from PoolWorkArticleView.
Definition at line 93 of file PoolWorkArticleViewCurrent.php.
References PoolWorkArticleView\renderRevision(), and wfTimestampNow().
PoolWorkArticleViewCurrent::fallback | ( | $fast | ) |
bool | $fast | Fast stale request |
Reimplemented from PoolCounterWork.
Definition at line 135 of file PoolWorkArticleViewCurrent.php.
PoolWorkArticleViewCurrent::getCachedWork | ( | ) |
Reimplemented from PoolCounterWork.
Definition at line 122 of file PoolWorkArticleViewCurrent.php.