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 = '' |
Definition at line 400 of file HTMLDiff.php.
HTMLDiffer::__construct | ( | $ | output | ) |
static HTMLDiffer::diffDebug | ( | $ | str | ) | [static] |
Add to debug output.
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.
Definition at line 548 of file HTMLDiff.php.
Referenced by DifferenceEngine::renderHtmlDiff().
HTMLDiffer::htmlDiff | ( | $ | from, | |
$ | to | |||
) |
Definition at line 409 of file HTMLDiff.php.
References $error, $output, diffDebug(), Sanitizer::hackDocType(), output(), preProcess(), wfProfileIn(), and wfProfileOut().
HTMLDiffer::preProcess | ( | $ | differences | ) | [private] |
static HTMLDiffer::score | ( | $ | ll, | |
$ | nll, | |||
$ | rl, | |||
$ | nrl | |||
) | [static] |
HTMLDiffer::$debug = '' [static, private] |
Definition at line 403 of file HTMLDiff.php.
HTMLDiffer::$output [private] |