Class Text_Diff_Engine_shell

Description

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.

$Horde: framework/Text_Diff/Diff/Engine/shell.php,v 1.6.2.4 2009/01/06 15:23:41 jan Exp $

Copyright 2007-2009 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://opensource.org/licenses/lgpl-license.php.

Located in /Text_Diff/Diff/Engine/shell.php (line 19)


	
			
Variable Summary
 string $_diffCommand
Method Summary
 array diff (array $from_lines, array $to_lines)
Variables
string $_diffCommand = 'diff' (line 26)

Path to the diff executable

Methods
diff (line 36)

Returns the array of differences.

  • return: all changes made (array with Text_Diff_Op_* objects)
array diff (array $from_lines, array $to_lines)
  • array $from_lines: lines of text from old file
  • array $to_lines: lines of text from new file

Documentation generated on Sun, 30 Jan 2011 05:21:22 +0000 by phpDocumentor 1.4.3