class DiffFormatter

A class to format Diffs

This class formats the diff in classic diff format. It is intended that this class be customized via inheritance, to obtain fancier outputs. @todo document @private @subpackage DifferenceEngine

Hierarchy

Expanded class hierarchy of DiffFormatter

File

drupal/core/lib/Drupal/Component/Diff/DiffEngine.php, line 772
A PHP diff engine for phpwiki. (Taken from phpwiki-1.3.3)

View source

Members

Namesort descending Modifiers Type Description Overrides
DiffFormatter::$leading_context_lines property Number of leading context "lines" to preserve.
DiffFormatter::$show_header property Should a block header be shown?
DiffFormatter::$trailing_context_lines property Number of trailing context "lines" to preserve.
DiffFormatter::format function Format a diff.
DiffFormatter::_added function 1
DiffFormatter::_block function
DiffFormatter::_block_header function 1
DiffFormatter::_changed function 1
DiffFormatter::_context function 1
DiffFormatter::_deleted function 1
DiffFormatter::_end_block function 1
DiffFormatter::_end_diff function 1
DiffFormatter::_lines function 1
DiffFormatter::_start_block function 1
DiffFormatter::_start_diff function 1