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

Class: Text_Diff_Engine_shell

Source Location: /Text_Diff-1.2.1/Text/Diff/Engine/shell.php

Class Overview


Class used internally by Diff to actually compute the diffs.


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 19]
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.



[ Top ]


Method Detail

diff   [line 36]

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 16:03:27 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.