MediaWiki  1.28.0
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:
private

Definition at line 34 of file WordAccumulator.php.

Member Function Documentation

MediaWiki\Diff\WordAccumulator::addWords (   $words,
  $tag = '' 
)
MediaWiki\Diff\WordAccumulator::flushGroup (   $new_tag)
private
Parameters
string$new_tag

Definition at line 46 of file WordAccumulator.php.

References line.

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

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

Member Data Documentation

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

Definition at line 36 of file WordAccumulator.php.

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

Definition at line 40 of file WordAccumulator.php.

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

Definition at line 35 of file WordAccumulator.php.

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

Definition at line 39 of file WordAccumulator.php.

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

Definition at line 38 of file WordAccumulator.php.

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

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

Definition at line 41 of file WordAccumulator.php.

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


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