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

File

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

Members

Contains filters are case sensitive
Name Modifiers Typesort descending Description
DiffFormatter::format public function Format a diff.
DiffFormatter::block protected function
DiffFormatter::startDiff protected function
DiffFormatter::endDiff protected function
DiffFormatter::blockHeader protected function
DiffFormatter::startBlock protected function
DiffFormatter::endBlock protected function
DiffFormatter::lines protected function
DiffFormatter::context protected function
DiffFormatter::added protected function
DiffFormatter::deleted protected function
DiffFormatter::changed protected function
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.