MediaWiki
REL1_19
|
Public Member Functions | |
__construct (Page $page, ParserOptions $parserOptions, $revid, $useParserCache, $text=null) | |
Constructor. | |
doWork () | |
error ($status) | |
fallback () | |
getCachedWork () | |
getError () | |
Get a Status object in case of error or false otherwise. | |
getIsDirty () | |
Get whether the ParserOutput is a dirty one (i.e. | |
getParserOutput () | |
Get the ParserOutput from this object, or false in case of failure. | |
Private Attributes | |
$cacheKey | |
$error = false | |
$isDirty = false | |
$page | |
$parserOptions | |
$parserOutput = false | |
$revid | |
$text |
Definition at line 2804 of file WikiPage.php.
PoolWorkArticleView::__construct | ( | Page $ | page, |
ParserOptions $ | parserOptions, | ||
$ | revid, | ||
$ | useParserCache, | ||
$ | text = null |
||
) |
Constructor.
$page | Page |
$revid | Integer: ID of the revision being parsed |
$useParserCache | Boolean: whether to use the parser cache |
$parserOptions | parserOptions to use for the parse operation |
$text | String: text to parse or null to load it |
Definition at line 2855 of file WikiPage.php.
References $page, $parserOptions, $revid, $text, and ParserCache\singleton().
Reimplemented from PoolCounterWork.
Definition at line 2895 of file WikiPage.php.
References $text, $wgParser, $wgUseFileCache, Revision\newFromTitle(), ParserCache\singleton(), and wfDebugLog().
PoolWorkArticleView::error | ( | $ | status | ) |
$status | Status |
Reimplemented from PoolCounterWork.
Definition at line 2977 of file WikiPage.php.
Referenced by getError().
Reimplemented from PoolCounterWork.
Definition at line 2959 of file WikiPage.php.
References ParserCache\singleton(), wfDebug(), and wfDebugLog().
Reimplemented from PoolCounterWork.
Definition at line 2944 of file WikiPage.php.
References ParserCache\singleton(), and wfDebug().
Get a Status object in case of error or false otherwise.
Definition at line 2888 of file WikiPage.php.
References error().
Get whether the ParserOutput is a dirty one (i.e.
expired)
Definition at line 2879 of file WikiPage.php.
Get the ParserOutput from this object, or false in case of failure.
Definition at line 2870 of file WikiPage.php.
PoolWorkArticleView::$cacheKey [private] |
Definition at line 2814 of file WikiPage.php.
Definition at line 2844 of file WikiPage.php.
PoolWorkArticleView::$isDirty = false [private] |
Definition at line 2839 of file WikiPage.php.
PoolWorkArticleView::$page [private] |
Definition at line 2809 of file WikiPage.php.
Referenced by __construct().
PoolWorkArticleView::$parserOptions [private] |
Definition at line 2824 of file WikiPage.php.
Referenced by __construct().
PoolWorkArticleView::$parserOutput = false [private] |
Definition at line 2834 of file WikiPage.php.
PoolWorkArticleView::$revid [private] |
Definition at line 2819 of file WikiPage.php.
Referenced by __construct().
PoolWorkArticleView::$text [private] |
Definition at line 2829 of file WikiPage.php.
Referenced by __construct(), and doWork().