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

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
 

Detailed Description

Definition at line 3476 of file WikiPage.php.

Constructor & Destructor Documentation

◆ __construct()

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 3519 of file WikiPage.php.

References $content, $page, $parserOptions, $revid, content, ContentHandler\makeContent(), page, and ParserCache\singleton().

Member Function Documentation

◆ doWork()

PoolWorkArticleView::doWork ( )

◆ error()

PoolWorkArticleView::error (   $status)
Parameters
$statusStatus
Returns
bool

Reimplemented from PoolCounterWork.

Definition at line 3662 of file WikiPage.php.

◆ fallback()

PoolWorkArticleView::fallback ( )
Returns
bool

Reimplemented from PoolCounterWork.

Definition at line 3643 of file WikiPage.php.

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

◆ getCachedWork()

PoolWorkArticleView::getCachedWork ( )
Returns
bool

Reimplemented from PoolCounterWork.

Definition at line 3628 of file WikiPage.php.

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

◆ getError()

PoolWorkArticleView::getError ( )

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

Returns
Status|bool

Definition at line 3558 of file WikiPage.php.

References $error.

◆ getIsDirty()

PoolWorkArticleView::getIsDirty ( )

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

expired)

Returns
bool

Definition at line 3549 of file WikiPage.php.

References $isDirty.

◆ getParserOutput()

PoolWorkArticleView::getParserOutput ( )

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

Returns
ParserOutput

Definition at line 3540 of file WikiPage.php.

References $parserOutput.

Member Data Documentation

◆ $cacheKey

string PoolWorkArticleView::$cacheKey
private

Definition at line 3484 of file WikiPage.php.

◆ $content

Content null PoolWorkArticleView::$content = null
private

Definition at line 3496 of file WikiPage.php.

Referenced by __construct(), and doWork().

◆ $error

Status bool PoolWorkArticleView::$error = false
private

Definition at line 3508 of file WikiPage.php.

Referenced by getError().

◆ $isDirty

bool PoolWorkArticleView::$isDirty = false
private

Definition at line 3504 of file WikiPage.php.

Referenced by getIsDirty().

◆ $page

Page PoolWorkArticleView::$page
private

Definition at line 3480 of file WikiPage.php.

Referenced by __construct().

◆ $parserOptions

ParserOptions PoolWorkArticleView::$parserOptions
private

Definition at line 3492 of file WikiPage.php.

Referenced by __construct(), and doWork().

◆ $parserOutput

ParserOutput bool PoolWorkArticleView::$parserOutput = false
private

Definition at line 3500 of file WikiPage.php.

Referenced by getParserOutput().

◆ $revid

integer PoolWorkArticleView::$revid
private

Definition at line 3488 of file WikiPage.php.

Referenced by __construct(), and doWork().


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