WeakWiki


WeakWiki\Diff
lib\diff.library.php at line 21

Class Diff

Diff

public class Diff

Ross Scrivener http://scrivna.com PHP file diff implementation Much credit goes to... Paul's Simple Diff Algorithm v 0.1 (C) Paul Butler 2007 May be used and distributed under the zlib/libpng license. ... for the actual diff code, i changed a few things and implemented a pretty interface to it. See http://scrivna.com/demos/filediff/code.html. Only minor changes have been made to fit it in WeakWiki.


Field Summary
mixed

$changes

mixed

$diff

mixed

$linepadding

Method Summary
void

diffWrap(mixed old, mixed new)

void

doDiff(mixed old, mixed new)

void

formatcode(mixed code)

void

getText(mixed a, mixed b)

void

inline(mixed old, mixed new, mixed linepadding)

void

showline(mixed line)

Field Detail

lib\diff.library.php at line 23

changes

public mixed $changes = array()

lib\diff.library.php at line 24

diff

public mixed $diff = array()

lib\diff.library.php at line 25

linepadding

public mixed $linepadding = null

Method Detail

lib\diff.library.php at line 59

diffWrap

public void diffWrap(mixed old, mixed new)

lib\diff.library.php at line 27

doDiff

public void doDiff(mixed old, mixed new)

lib\diff.library.php at line 80

formatcode

public void formatcode(mixed code)

lib\diff.library.php at line 189

getText

public void getText(mixed a, mixed b)

lib\diff.library.php at line 107

inline

public void inline(mixed old, mixed new, mixed linepadding)

lib\diff.library.php at line 88

showline

public void showline(mixed line)

WeakWiki