\Horde_Text_Diff_Engine_Shell

Class used internally by Diff to actually compute the diffs.

This class uses the Unix diff program via shell_exec to compute the differences between the two input arrays.

Copyright 2007-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.

Summary

Methods
Properties
Constants
diff()
No public properties found
No constants found
_getLines()
$_diffCommand
N/A
No private methods found
No private properties found
N/A

Properties

$_diffCommand

$_diffCommand : string

Path to the diff executable

Type

string

Methods

diff()

diff(array  $from_lines, array  $to_lines) : array

Returns the array of differences.

Parameters

array $from_lines

lines of text from old file

array $to_lines

lines of text from new file

Returns

array —

all changes made (array with Horde_Text_DiffOp* objects)

_getLines()

_getLines(  $text_lines,   $line_no, integer  $end = false) : array

Get lines from either the old or new text

Parameters

$text_lines
$line_no
integer $end

Optional end line, when we want to chop more than one line.

Returns

array —

The chopped lines