MediaWiki master
MediaWiki\Parser\Parsoid\Config\PageConfig Class Reference

Page-level configuration interface for Parsoid. More...

Inherits IPageConfig.

Collaboration diagram for MediaWiki\Parser\Parsoid\Config\PageConfig:

Public Member Functions

 __construct (private readonly ParserOptions $parserOptions, private readonly SlotRoleHandler $slotRoleHandler, private readonly Title $title, private readonly ?RevisionRecord $revision, private readonly Bcp47Code $pageLanguage, private readonly string $pageLanguageDir,)
 
 fetchRevisionRecordOfTemplate (Title $title, ?Parser $parser)
 Use ParserOptions::getTemplateCallback() to fetch the correct (usually latest) RevisionRecord for the given title.
 
 getContentModel ()
 
 getLinkTarget ()
 
 getPageId ()
 
 getPageLanguageBcp47 ()
 
 getPageLanguageDir ()
 
 getParentRevisionId ()
 
 getParserOptions ()
 
 getRevisionContent ()
 
 getRevisionId ()
 
 getRevisionSha1 ()
 
 getRevisionSize ()
 
 getRevisionTimestamp ()
 
 getRevisionUser ()
 
 getRevisionUserId ()
 

Detailed Description

Page-level configuration interface for Parsoid.

This is effectively "Parsoid's view of ParserOptions".

Since
1.39
Access: internal

Definition at line 29 of file PageConfig.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Parser\Parsoid\Config\PageConfig::__construct ( private readonly ParserOptions $parserOptions,
private readonly SlotRoleHandler $slotRoleHandler,
private readonly Title $title,
private readonly ?RevisionRecord $revision,
private readonly Bcp47Code $pageLanguage,
private readonly string $pageLanguageDir )

Definition at line 30 of file PageConfig.php.

Member Function Documentation

◆ fetchRevisionRecordOfTemplate()

MediaWiki\Parser\Parsoid\Config\PageConfig::fetchRevisionRecordOfTemplate ( Title $title,
?Parser $parser )

Use ParserOptions::getTemplateCallback() to fetch the correct (usually latest) RevisionRecord for the given title.

Parameters
Title$title
?Parser$parser
Returns
?RevisionRecord

Definition at line 86 of file PageConfig.php.

◆ getContentModel()

MediaWiki\Parser\Parsoid\Config\PageConfig::getContentModel ( )

Definition at line 40 of file PageConfig.php.

◆ getLinkTarget()

MediaWiki\Parser\Parsoid\Config\PageConfig::getLinkTarget ( )

Definition at line 51 of file PageConfig.php.

◆ getPageId()

MediaWiki\Parser\Parsoid\Config\PageConfig::getPageId ( )

Definition at line 56 of file PageConfig.php.

◆ getPageLanguageBcp47()

MediaWiki\Parser\Parsoid\Config\PageConfig::getPageLanguageBcp47 ( )

Definition at line 61 of file PageConfig.php.

◆ getPageLanguageDir()

MediaWiki\Parser\Parsoid\Config\PageConfig::getPageLanguageDir ( )

Definition at line 66 of file PageConfig.php.

◆ getParentRevisionId()

MediaWiki\Parser\Parsoid\Config\PageConfig::getParentRevisionId ( )

Definition at line 106 of file PageConfig.php.

◆ getParserOptions()

MediaWiki\Parser\Parsoid\Config\PageConfig::getParserOptions ( )
Access: internal
Used by DataAccess; not part of Parsoid's interface.
Returns
ParserOptions

Definition at line 74 of file PageConfig.php.

◆ getRevisionContent()

MediaWiki\Parser\Parsoid\Config\PageConfig::getRevisionContent ( )

Definition at line 150 of file PageConfig.php.

◆ getRevisionId()

MediaWiki\Parser\Parsoid\Config\PageConfig::getRevisionId ( )

Definition at line 100 of file PageConfig.php.

◆ getRevisionSha1()

MediaWiki\Parser\Parsoid\Config\PageConfig::getRevisionSha1 ( )

Definition at line 132 of file PageConfig.php.

◆ getRevisionSize()

MediaWiki\Parser\Parsoid\Config\PageConfig::getRevisionSize ( )

Definition at line 144 of file PageConfig.php.

◆ getRevisionTimestamp()

MediaWiki\Parser\Parsoid\Config\PageConfig::getRevisionTimestamp ( )

Definition at line 112 of file PageConfig.php.

◆ getRevisionUser()

MediaWiki\Parser\Parsoid\Config\PageConfig::getRevisionUser ( )

Definition at line 118 of file PageConfig.php.

◆ getRevisionUserId()

MediaWiki\Parser\Parsoid\Config\PageConfig::getRevisionUserId ( )

Definition at line 125 of file PageConfig.php.


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