MediaWiki REL1_35
|
Public Member Functions | |
__construct (WikiPage $page, ParserOptions $parserOptions, $revid, $useParserCache, $revision=null, $audience=RevisionRecord::FOR_PUBLIC) | |
doWork () | |
error ( $status) | |
fallback ( $fast) | |
getCachedWork () | |
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. | |
Private Attributes | |
int | $audience |
string | $cacheKey |
Status bool | $error = false |
bool | $isDirty = false |
bool | $isFast = false |
WikiPage | $page |
ParserCache | $parserCache |
ParserOptions | $parserOptions |
ParserOutput bool | $parserOutput = false |
RevisionRenderer | $renderer = null |
int | $revid |
RevisionRecord null | $revision = null |
RevisionStore | $revisionStore = null |
Additional Inherited Members | |
Protected Member Functions inherited from PoolCounterWork | |
isFastStaleEnabled () | |
Should fast stale mode be used? | |
Protected Attributes inherited from PoolCounterWork | |
bool | $cacheable = false |
string | $type = 'generic' |
Definition at line 28 of file PoolWorkArticleView.php.
PoolWorkArticleView::__construct | ( | WikiPage | $page, |
ParserOptions | $parserOptions, | ||
$revid, | |||
$useParserCache, | |||
$revision = null , |
|||
$audience = RevisionRecord::FOR_PUBLIC |
|||
) |
WikiPage | $page | |
ParserOptions | $parserOptions | ParserOptions to use for the parse |
int | $revid | ID of the revision being parsed. |
bool | $useParserCache | Whether to use the parser cache. operation. |
RevisionRecord | Content | string | null | $revision | Revision to render, or null to load it; may also be given as a wikitext string, or a Content object, for BC. |
int | $audience | One of the RevisionRecord audience constants |
Definition at line 78 of file PoolWorkArticleView.php.
References $audience, $content, $page, $parserOptions, $revid, $revision, WikiPage\getId(), MediaWiki\Revision\RevisionRecord\getId(), MediaWiki\Revision\RevisionRecord\getPageId(), WikiPage\getRevisionRecord(), and WikiPage\getTitle().
PoolWorkArticleView::doWork | ( | ) |
Reimplemented from PoolCounterWork.
Definition at line 176 of file PoolWorkArticleView.php.
References $audience, $revision, $wgUseFileCache, and wfTimestampNow().
PoolWorkArticleView::error | ( | $status | ) |
Status | $status |
Reimplemented from PoolCounterWork.
Definition at line 313 of file PoolWorkArticleView.php.
References error().
Referenced by error().
PoolWorkArticleView::fallback | ( | $fast | ) |
bool | $fast | Fast stale request |
Reimplemented from PoolCounterWork.
Definition at line 269 of file PoolWorkArticleView.php.
References wfDebugLog().
PoolWorkArticleView::getCachedWork | ( | ) |
Reimplemented from PoolCounterWork.
Definition at line 253 of file PoolWorkArticleView.php.
References wfDebug().
PoolWorkArticleView::getError | ( | ) |
Get a Status object in case of error or false otherwise.
Definition at line 169 of file PoolWorkArticleView.php.
References $error.
PoolWorkArticleView::getIsDirty | ( | ) |
Get whether the ParserOutput is a dirty one (i.e.
expired)
Definition at line 151 of file PoolWorkArticleView.php.
References $isDirty.
PoolWorkArticleView::getIsFastStale | ( | ) |
Get whether the ParserOutput was retrieved in fast stale mode.
Definition at line 160 of file PoolWorkArticleView.php.
References $isFast.
PoolWorkArticleView::getParserOutput | ( | ) |
Get the ParserOutput from this object, or false in case of failure.
Definition at line 142 of file PoolWorkArticleView.php.
References $parserOutput.
|
private |
Definition at line 48 of file PoolWorkArticleView.php.
Referenced by __construct(), and doWork().
|
private |
Definition at line 33 of file PoolWorkArticleView.php.
|
private |
Definition at line 66 of file PoolWorkArticleView.php.
Referenced by getError().
|
private |
Definition at line 60 of file PoolWorkArticleView.php.
Referenced by getIsDirty().
|
private |
Definition at line 63 of file PoolWorkArticleView.php.
Referenced by getIsFastStale().
|
private |
Definition at line 30 of file PoolWorkArticleView.php.
Referenced by __construct().
|
private |
Definition at line 39 of file PoolWorkArticleView.php.
|
private |
Definition at line 42 of file PoolWorkArticleView.php.
Referenced by __construct().
|
private |
Definition at line 57 of file PoolWorkArticleView.php.
Referenced by getParserOutput().
|
private |
Definition at line 54 of file PoolWorkArticleView.php.
|
private |
Definition at line 36 of file PoolWorkArticleView.php.
Referenced by __construct().
|
private |
Definition at line 45 of file PoolWorkArticleView.php.
Referenced by __construct(), and doWork().
|
private |
Definition at line 51 of file PoolWorkArticleView.php.