PHP Класс Horde_Text_Diff_Engine_Shell, horde

This class uses the Unix diff program via shell_exec to compute the differences between the two input arrays. Copyright 2007-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Автор: Milian Wolff ([email protected])
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_diffCommand string Path to the diff executable

Открытые методы

Метод Описание
diff ( array $from_lines, array $to_lines ) : array Returns the array of differences.

Защищенные методы

Метод Описание
_getLines ( &$text_lines, &$line_no, integer $end = false ) : array Get lines from either the old or new text

Описание методов

_getLines() защищенный Метод

Get lines from either the old or new text
protected _getLines ( &$text_lines, &$line_no, integer $end = false ) : array
$end integer Optional end line, when we want to chop more than one line.
Результат array The chopped lines

diff() публичный Метод

Returns the array of differences.
public diff ( array $from_lines, array $to_lines ) : array
$from_lines array lines of text from old file
$to_lines array lines of text from new file
Результат array all changes made (array with Horde_Text_Diff_Op_* objects)

Описание свойств

$_diffCommand защищенное свойство

Path to the diff executable
protected string $_diffCommand
Результат string