MediaWiki REL1_33
MediaWiki\Diff\WordAccumulator Class Reference

Stores, escapes and formats the results of word-level diff. More...

Inheritance diagram for MediaWiki\Diff\WordAccumulator:

Public Member Functions

 addWords ( $words, $tag='')
 
 getLines ()
 

Public Attributes

 $delClass = ' class="diffchange diffchange-inline"'
 
 $insClass = ' class="diffchange diffchange-inline"'
 

Private Member Functions

 flushGroup ( $new_tag)
 
 flushLine ( $new_tag)
 

Private Attributes

 $group = ''
 
 $line = ''
 
 $lines = []
 
 $tag = ''
 

Detailed Description

Stores, escapes and formats the results of word-level diff.

Access:\n private

Definition at line 34 of file WordAccumulator.php.

Member Function Documentation

◆ addWords()

MediaWiki\Diff\WordAccumulator::addWords ( $words,
$tag = '' )
Parameters
string[]$words
string$tag

Definition at line 78 of file WordAccumulator.php.

References and(), MediaWiki\Diff\WordAccumulator\flushGroup(), MediaWiki\Diff\WordAccumulator\flushLine(), and group.

Referenced by WordLevelDiff\closing(), and WordLevelDiff\orig().

◆ flushGroup()

MediaWiki\Diff\WordAccumulator::flushGroup ( $new_tag)
private
Parameters
string$new_tag

Definition at line 46 of file WordAccumulator.php.

References and(), and group.

Referenced by MediaWiki\Diff\WordAccumulator\addWords(), and MediaWiki\Diff\WordAccumulator\flushLine().

◆ flushLine()

MediaWiki\Diff\WordAccumulator::flushLine ( $new_tag)
private

◆ getLines()

MediaWiki\Diff\WordAccumulator::getLines ( )

Member Data Documentation

◆ $delClass

MediaWiki\Diff\WordAccumulator::$delClass = ' class="diffchange diffchange-inline"'

Definition at line 36 of file WordAccumulator.php.

◆ $group

MediaWiki\Diff\WordAccumulator::$group = ''
private

Definition at line 40 of file WordAccumulator.php.

◆ $insClass

MediaWiki\Diff\WordAccumulator::$insClass = ' class="diffchange diffchange-inline"'

Definition at line 35 of file WordAccumulator.php.

◆ $line

MediaWiki\Diff\WordAccumulator::$line = ''
private

Definition at line 39 of file WordAccumulator.php.

◆ $lines

MediaWiki\Diff\WordAccumulator::$lines = []
private

Definition at line 38 of file WordAccumulator.php.

Referenced by MediaWiki\Diff\WordAccumulator\getLines().

◆ $tag

MediaWiki\Diff\WordAccumulator::$tag = ''
private

Definition at line 41 of file WordAccumulator.php.


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