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.
파일 보기
프로젝트 열기: horde/horde
보호된 프로퍼티들
공개 메소드들
보호된 메소드들
메소드 |
설명 |
|
_getLines ( &$text_lines, &$line_no, integer $end = false ) : array |
Get lines from either the old or new text |
|
메소드 상세
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 |
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 |
|