MediaWiki  REL1_19
PoolWorkArticleView Class Reference
Inheritance diagram for PoolWorkArticleView:
Collaboration diagram for PoolWorkArticleView:

List of all members.

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

Detailed Description

Definition at line 2804 of file WikiPage.php.


Constructor & Destructor Documentation

PoolWorkArticleView::__construct ( Page page,
ParserOptions parserOptions,
revid,
useParserCache,
text = null 
)

Constructor.

Parameters:
$pagePage
$revidInteger: ID of the revision being parsed
$useParserCacheBoolean: whether to use the parser cache
$parserOptionsparserOptions to use for the parse operation
$textString: text to parse or null to load it

Definition at line 2855 of file WikiPage.php.

References $page, $parserOptions, $revid, $text, and ParserCache\singleton().

Here is the call graph for this function:


Member Function Documentation

Returns:
bool

Reimplemented from PoolCounterWork.

Definition at line 2895 of file WikiPage.php.

References $text, $wgParser, $wgUseFileCache, Revision\newFromTitle(), ParserCache\singleton(), and wfDebugLog().

Here is the call graph for this function:

Parameters:
$statusStatus

Reimplemented from PoolCounterWork.

Definition at line 2977 of file WikiPage.php.

Referenced by getError().

Here is the caller graph for this function:

Returns:
bool

Reimplemented from PoolCounterWork.

Definition at line 2959 of file WikiPage.php.

References ParserCache\singleton(), wfDebug(), and wfDebugLog().

Here is the call graph for this function:

Returns:
bool

Reimplemented from PoolCounterWork.

Definition at line 2944 of file WikiPage.php.

References ParserCache\singleton(), and wfDebug().

Here is the call graph for this function:

Get a Status object in case of error or false otherwise.

Returns:
Status|false

Definition at line 2888 of file WikiPage.php.

References error().

Here is the call graph for this function:

Get whether the ParserOutput is a dirty one (i.e.

expired)

Returns:
bool

Definition at line 2879 of file WikiPage.php.

Get the ParserOutput from this object, or false in case of failure.

Returns:
ParserOutput

Definition at line 2870 of file WikiPage.php.


Member Data Documentation

PoolWorkArticleView::$cacheKey [private]

Definition at line 2814 of file WikiPage.php.

PoolWorkArticleView::$error = false [private]

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().


The documentation for this class was generated from the following file: