MediaWiki
1.23.1
|
Public Member Functions | |
__construct (Page $page, ParserOptions $parserOptions, $revid, $useParserCache, $content=null) | |
Constructor. More... | |
doWork () | |
error ( $status) | |
fallback () | |
getCachedWork () | |
getError () | |
Get a Status object in case of error or false otherwise. More... | |
getIsDirty () | |
Get whether the ParserOutput is a dirty one (i.e. More... | |
getParserOutput () | |
Get the ParserOutput from this object, or false in case of failure. More... | |
Public Member Functions inherited from PoolCounterWork | |
__construct ( $type, $key) | |
execute ( $skipcache=false) | |
Get the result of the work (whatever it is), or the result of the error() function. More... | |
logError ( $status) | |
Log an error. More... | |
Private Attributes | |
string | $cacheKey |
Content null | $content = null |
Status bool | $error = false |
bool | $isDirty = false |
Page | $page |
ParserOptions | $parserOptions |
ParserOutput bool | $parserOutput = false |
integer | $revid |
Additional Inherited Members | |
Protected Attributes inherited from PoolCounterWork | |
$cacheable = false | |
Definition at line 3476 of file WikiPage.php.
PoolWorkArticleView::__construct | ( | Page | $page, |
ParserOptions | $parserOptions, | ||
$revid, | |||
$useParserCache, | |||
$content = null |
|||
) |
Constructor.
$page | Page|WikiPage |
$revid | Integer: ID of the revision being parsed |
$useParserCache | Boolean: whether to use the parser cache |
$parserOptions | parserOptions to use for the parse operation |
$content | Content|String: content to parse or null to load it; may also be given as a wikitext string, for BC |
Definition at line 3519 of file WikiPage.php.
References $content, $page, $parserOptions, $revid, content, ContentHandler\makeContent(), page, and ParserCache\singleton().
PoolWorkArticleView::doWork | ( | ) |
Reimplemented from PoolCounterWork.
Definition at line 3565 of file WikiPage.php.
References $content, $parserOptions, $rev, $revid, $time, content, Content\getParserOutput(), global, Revision\newFromTitle(), page, Revision\RAW, ParserCache\singleton(), wfDebugLog(), and wfTimestampNow().
PoolWorkArticleView::error | ( | $status | ) |
$status | Status |
Reimplemented from PoolCounterWork.
Definition at line 3662 of file WikiPage.php.
PoolWorkArticleView::fallback | ( | ) |
Reimplemented from PoolCounterWork.
Definition at line 3643 of file WikiPage.php.
References page, ParserCache\singleton(), wfDebug(), and wfDebugLog().
PoolWorkArticleView::getCachedWork | ( | ) |
Reimplemented from PoolCounterWork.
Definition at line 3628 of file WikiPage.php.
References page, ParserCache\singleton(), and wfDebug().
PoolWorkArticleView::getError | ( | ) |
Get a Status object in case of error or false otherwise.
Definition at line 3558 of file WikiPage.php.
References $error.
PoolWorkArticleView::getIsDirty | ( | ) |
Get whether the ParserOutput is a dirty one (i.e.
expired)
Definition at line 3549 of file WikiPage.php.
References $isDirty.
PoolWorkArticleView::getParserOutput | ( | ) |
Get the ParserOutput from this object, or false in case of failure.
Definition at line 3540 of file WikiPage.php.
References $parserOutput.
|
private |
Definition at line 3484 of file WikiPage.php.
|
private |
Definition at line 3496 of file WikiPage.php.
Referenced by __construct(), and doWork().
Definition at line 3508 of file WikiPage.php.
Referenced by getError().
|
private |
Definition at line 3504 of file WikiPage.php.
Referenced by getIsDirty().
|
private |
Definition at line 3480 of file WikiPage.php.
Referenced by __construct().
|
private |
Definition at line 3492 of file WikiPage.php.
Referenced by __construct(), and doWork().
|
private |
Definition at line 3500 of file WikiPage.php.
Referenced by getParserOutput().
|
private |
Definition at line 3488 of file WikiPage.php.
Referenced by __construct(), and doWork().