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 ascending Modifiers Type Description
DiffFormatter::startDiff protected function
DiffFormatter::startBlock protected function
DiffFormatter::lines protected function
DiffFormatter::format public function Format a diff.
DiffFormatter::endDiff protected function
DiffFormatter::endBlock protected function
DiffFormatter::deleted protected function
DiffFormatter::context protected function
DiffFormatter::changed protected function
DiffFormatter::blockHeader protected function
DiffFormatter::block protected function
DiffFormatter::added protected function
DiffFormatter::$trailingContextLines protected property This should be left at zero for this class, but subclasses may want to set this to other values.
DiffFormatter::$leadingContextLines protected property This should be left at zero for this class, but subclasses may want to set this to other values.