MediaWiki REL1_37
MediaWiki\Tidy\RemexCompatFormatter Class Reference
Inheritance diagram for MediaWiki\Tidy\RemexCompatFormatter:
Collaboration diagram for MediaWiki\Tidy\RemexCompatFormatter:

Public Member Functions

 __construct ( $options=[])
 
 characters (SerializerNode $parent, $text, $start, $length)
 
 element (SerializerNode $parent, SerializerNode $node, $contents)
 
 startDocument ( $fragmentNamespace, $fragmentName)
 

Private Attributes

callable $textProcessor
 

Static Private Attributes

static $markedEmptyElements
 

Detailed Description

Access: internal

Definition at line 13 of file RemexCompatFormatter.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Tidy\RemexCompatFormatter::__construct (   $options = [])

Definition at line 23 of file RemexCompatFormatter.php.

Member Function Documentation

◆ characters()

MediaWiki\Tidy\RemexCompatFormatter::characters ( SerializerNode  $parent,
  $text,
  $start,
  $length 
)

Definition at line 36 of file RemexCompatFormatter.php.

◆ element()

MediaWiki\Tidy\RemexCompatFormatter::element ( SerializerNode  $parent,
SerializerNode  $node,
  $contents 
)

Definition at line 52 of file RemexCompatFormatter.php.

References $s.

◆ startDocument()

MediaWiki\Tidy\RemexCompatFormatter::startDocument (   $fragmentNamespace,
  $fragmentName 
)

Definition at line 32 of file RemexCompatFormatter.php.

Member Data Documentation

◆ $markedEmptyElements

MediaWiki\Tidy\RemexCompatFormatter::$markedEmptyElements
staticprivate
Initial value:
= [
'li' => true,
'p' => true,
'tr' => true,
]

Definition at line 14 of file RemexCompatFormatter.php.

◆ $textProcessor

callable MediaWiki\Tidy\RemexCompatFormatter::$textProcessor
private

Definition at line 21 of file RemexCompatFormatter.php.


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