HTMLDiffer Class Reference

List of all members.

Public Member Functions

 __construct ($output)
 htmlDiff ($from, $to)

Static Public Member Functions

static score ($ll, $nll, $rl, $nrl)
 Heuristic to merge differences for readability.
static diffDebug ($str)
 Add to debug output.
static getDebugOutput ()
 Get debug output.

Private Member Functions

 preProcess ($differences)

Private Attributes

 $output

Static Private Attributes

static $debug = ''


Detailed Description

Definition at line 400 of file HTMLDiff.php.


Constructor & Destructor Documentation

HTMLDiffer::__construct ( output  ) 

Definition at line 405 of file HTMLDiff.php.

References $output, and output().


Member Function Documentation

static HTMLDiffer::diffDebug ( str  )  [static]

Add to debug output.

Parameters:
string $str Debug output

Definition at line 540 of file HTMLDiff.php.

Referenced by ImageNode::__construct(), DomTreeBuilder::endDocument(), DomTreeBuilder::endElement(), htmlDiff(), TextNodeDiffer::markAsDeleted(), and DomTreeBuilder::startElement().

static HTMLDiffer::getDebugOutput (  )  [static]

Get debug output.

Returns:
string

Definition at line 548 of file HTMLDiff.php.

Referenced by DifferenceEngine::renderHtmlDiff().

HTMLDiffer::htmlDiff ( from,
to 
)

HTMLDiffer::preProcess ( differences  )  [private]

Definition at line 485 of file HTMLDiff.php.

References $i.

Referenced by htmlDiff().

static HTMLDiffer::score ( ll,
nll,
rl,
nrl 
) [static]

Heuristic to merge differences for readability.

Definition at line 517 of file HTMLDiff.php.


Member Data Documentation

HTMLDiffer::$debug = '' [static, private]

Definition at line 403 of file HTMLDiff.php.

HTMLDiffer::$output [private]

Definition at line 402 of file HTMLDiff.php.

Referenced by __construct(), and htmlDiff().


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

Generated on Sat Sep 5 02:08:38 2009 for MediaWiki by  doxygen 1.5.9