Base class for diff formatters

This class formats the diff in classic diff format. It is intended that this class be customized via inheritance, to obtain fancier outputs.

Hierarchy

Expanded class hierarchy of DiffFormatter

Related topics

File

core/includes/diff.inc, line 1004
A PHP diff engine for phpwiki. (Taken from phpwiki-1.3.3)

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
DiffFormatter::$leadingContextLines protected property This should be left at zero for this class, but subclasses may want to set this to other values.
DiffFormatter::$trailingContextLines protected property This should be left at zero for this class, but subclasses may want to set this to other values.
DiffFormatter::added protected function
DiffFormatter::block protected function
DiffFormatter::blockHeader protected function
DiffFormatter::changed protected function
DiffFormatter::context protected function
DiffFormatter::deleted protected function
DiffFormatter::endBlock protected function
DiffFormatter::endDiff protected function
DiffFormatter::format public function Format a diff.
DiffFormatter::lines protected function
DiffFormatter::startBlock protected function
DiffFormatter::startDiff protected function