MediaWiki  REL1_22
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, $content=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

string $cacheKey
Content null $content = null
Status bool $error = false
bool $isDirty = false
Page $page
ParserOptions $parserOptions
ParserOutput bool $parserOutput = false
integer $revid

Detailed Description

Definition at line 3415 of file WikiPage.php.


Constructor & Destructor Documentation

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

Constructor.

Parameters:
$pagePage|WikiPage
$revidInteger: ID of the revision being parsed
$useParserCacheBoolean: whether to use the parser cache
$parserOptionsparserOptions to use for the parse operation
$contentContent|String: content to parse or null to load it; may also be given as a wikitext string, for BC

Definition at line 3458 of file WikiPage.php.

References ContentHandler\makeContent().


Member Function Documentation

Returns:
bool

Reimplemented from PoolCounterWork.

Definition at line 3504 of file WikiPage.php.

Parameters:
$statusStatus
Returns:
bool

Reimplemented from PoolCounterWork.

Definition at line 3601 of file WikiPage.php.

References wfDebug(), and wfDebugLog().

Returns:
bool

Reimplemented from PoolCounterWork.

Definition at line 3582 of file WikiPage.php.

Returns:
bool

Reimplemented from PoolCounterWork.

Definition at line 3567 of file WikiPage.php.

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

Returns:
Status|bool

Definition at line 3497 of file WikiPage.php.

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

expired)

Returns:
bool

Definition at line 3488 of file WikiPage.php.

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

Returns:
ParserOutput

Definition at line 3479 of file WikiPage.php.


Member Data Documentation

string PoolWorkArticleView::$cacheKey [private]

Definition at line 3423 of file WikiPage.php.

Content null PoolWorkArticleView::$content = null [private]

Definition at line 3435 of file WikiPage.php.

Status bool PoolWorkArticleView::$error = false [private]

Definition at line 3447 of file WikiPage.php.

bool PoolWorkArticleView::$isDirty = false [private]

Definition at line 3443 of file WikiPage.php.

Page PoolWorkArticleView::$page [private]

Definition at line 3419 of file WikiPage.php.

ParserOptions PoolWorkArticleView::$parserOptions [private]

Definition at line 3431 of file WikiPage.php.

ParserOutput bool PoolWorkArticleView::$parserOutput = false [private]

Definition at line 3439 of file WikiPage.php.

integer PoolWorkArticleView::$revid [private]

Definition at line 3427 of file WikiPage.php.


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