Text_Diff
[ class tree: Text_Diff ] [ index: Text_Diff ] [ all elements ]

Class: Text_Diff_Engine_shell

Source Location: /Text_Diff-0.3.1/Diff/Engine/shell.php

Class Overview


$Horde: framework/Text_Diff/Diff/Engine/shell.php,v 1.5 2007/09/26 16:09:54 jan Exp $


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 18]
$Horde: framework/Text_Diff/Diff/Engine/shell.php,v 1.5 2007/09/26 16:09:54 jan Exp $

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 The Horde Project (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.



[ Top ]


Method Detail

diff   [line 35]

array diff( array $from_lines, array $to_lines)

Returns the array of differences.
  • Return: all changes made (array with Text_Diff_Op_* objects)

Parameters:

array   $from_lines   —  lines of text from old file
array   $to_lines   —  lines of text from new file

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:10:41 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.