$_edits
$_edits : array
Array of changes.
General API for generating and formatting diffs - the differences between two sequences of strings.
The original PHP version of this code was written by Geoffrey T. Dairiki dairiki@dairiki.org, and is used/adapted with his permission.
Copyright 2004 Geoffrey T. Dairiki dairiki@dairiki.org Copyright 2004-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
__construct(string $engine, array $params)
Computes diffs between sequences of strings.
string | $engine | Name of the diffing engine to use. 'auto' will automatically select the best. |
array | $params | Parameters to pass to the diffing engine. Normally an array of two arrays, each containing the lines from a file. |
reverse() : \Horde_Text_Diff
Computes a reversed diff.
Example:
$diff = new Horde_Text_Diff($lines1, $lines2);
$rev = $diff->reverse();
A Diff object representing the inverse of the original diff. Note that we purposely don't return a reference here, since this essentially is a clone() method.