MediaWiki REL1_39
MediaWiki\Diff\WordAccumulator Class Reference

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

Public Member Functions

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

Public Attributes

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

Detailed Description

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

Access: internal

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 84 of file WordAccumulator.php.

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

◆ getLines()

MediaWiki\Diff\WordAccumulator::getLines ( )
Returns
string[]

Definition at line 108 of file WordAccumulator.php.

Member Data Documentation

◆ $delClass

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

Definition at line 38 of file WordAccumulator.php.

◆ $insClass

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

Definition at line 36 of file WordAccumulator.php.


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