MediaWiki master
MediaWiki\Tidy\RemexMungerData Class Reference
Collaboration diagram for MediaWiki\Tidy\RemexMungerData:

Public Member Functions

 __set ( $name, $value)
 
 dump ()
 Get a text representation of the current state of the serializer, for debugging.
 

Public Attributes

SerializerNode null $ancestorPNode
 This tracks the mw:p-wrap node in the Serializer stack which is an ancestor of this node.
 
Element null $childPElement
 The Element for the mw:p-wrap which is a child of the current node.
 
Element null $currentCloneElement
 Stack splitting (essentially our idea of AFE reconstruction) can clone formatting elements which are split over multiple paragraphs.
 
bool $isPWrapper = false
 Is the node a p-wrapper, with name mw:p-wrap?
 
bool $isSplittable = false
 Is the node splittable, i.e.
 
 $needsPWrapping = false
 This is true if the node is a body or blockquote, which activates p-wrapping of child nodes.
 
 $nonblankNodeCount = 0
 The number of child nodes, not counting whitespace-only text nodes or comments.
 
SerializerNode null $wrapBaseNode
 The wrap base node is the body or blockquote node which is the parent of active p-wrappers.
 

Detailed Description

Access: internal

Definition at line 12 of file RemexMungerData.php.

Member Function Documentation

◆ __set()

MediaWiki\Tidy\RemexMungerData::__set ( $name,
$value )

Definition at line 79 of file RemexMungerData.php.

◆ dump()

MediaWiki\Tidy\RemexMungerData::dump ( )

Get a text representation of the current state of the serializer, for debugging.

Returns
string

Definition at line 90 of file RemexMungerData.php.

Member Data Documentation

◆ $ancestorPNode

SerializerNode null MediaWiki\Tidy\RemexMungerData::$ancestorPNode

This tracks the mw:p-wrap node in the Serializer stack which is an ancestor of this node.

If there is no mw:p-wrap ancestor, it is null.

Definition at line 28 of file RemexMungerData.php.

◆ $childPElement

Element null MediaWiki\Tidy\RemexMungerData::$childPElement

The Element for the mw:p-wrap which is a child of the current node.

If this is set, inline insertions into this node will be diverted so that they insert into the p-wrap.

Definition at line 20 of file RemexMungerData.php.

◆ $currentCloneElement

Element null MediaWiki\Tidy\RemexMungerData::$currentCloneElement

Stack splitting (essentially our idea of AFE reconstruction) can clone formatting elements which are split over multiple paragraphs.

TreeBuilder is not aware of the cloning, and continues to insert into the original element. This is set to the newer clone if this node was cloned, i.e. if there is an active diversion of the insertion location.

Definition at line 49 of file RemexMungerData.php.

◆ $isPWrapper

bool MediaWiki\Tidy\RemexMungerData::$isPWrapper = false

Is the node a p-wrapper, with name mw:p-wrap?

Definition at line 56 of file RemexMungerData.php.

◆ $isSplittable

bool MediaWiki\Tidy\RemexMungerData::$isSplittable = false

Is the node splittable, i.e.

a formatting element or a node with a formatting element ancestor which is under an active or deactivated p-wrapper.

Definition at line 65 of file RemexMungerData.php.

◆ $needsPWrapping

MediaWiki\Tidy\RemexMungerData::$needsPWrapping = false

This is true if the node is a body or blockquote, which activates p-wrapping of child nodes.

Definition at line 71 of file RemexMungerData.php.

◆ $nonblankNodeCount

MediaWiki\Tidy\RemexMungerData::$nonblankNodeCount = 0

The number of child nodes, not counting whitespace-only text nodes or comments.

Definition at line 77 of file RemexMungerData.php.

◆ $wrapBaseNode

SerializerNode null MediaWiki\Tidy\RemexMungerData::$wrapBaseNode

The wrap base node is the body or blockquote node which is the parent of active p-wrappers.

This is set if there is an ancestor p-wrapper, or if a p-wrapper was closed due to a block element being encountered inside it.

Definition at line 38 of file RemexMungerData.php.


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