Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

DiffFormatter Class Reference

List of all members.

Public Member Functions

 format ($diff)
 _block ($xbeg, $xlen, $ybeg, $ylen, &$edits)
 _start_diff ()
 _end_diff ()
 _block_header ($xbeg, $xlen, $ybeg, $ylen)
 _start_block ($header)
 _end_block ()
 _lines ($lines, $prefix= ' ')
 _context ($lines)
 _added ($lines)
 _deleted ($lines)
 _changed ($orig, $closing)

Public Attributes

 $leading_context_lines = 0
 $trailing_context_lines = 0

Detailed Description

A class to format Diffs

This class formats the diff in classic diff format. It is intended that this class be customized via inheritance, to obtain fancier outputs.

Definition at line 861 of file DifferenceEngine.php.


Member Function Documentation

DiffFormatter::_added lines  ) 
 

Definition at line 993 of file DifferenceEngine.php.

References _added().

Referenced by _added(), and _block().

DiffFormatter::_block xbeg,
xlen,
ybeg,
ylen,
&$  edits
 

Definition at line 941 of file DifferenceEngine.php.

References _added(), _block(), _changed(), _context(), _deleted(), _end_block(), and _start_block().

Referenced by _block(), and format().

DiffFormatter::_block_header xbeg,
xlen,
ybeg,
ylen
 

Definition at line 968 of file DifferenceEngine.php.

References _block_header().

Referenced by _block_header().

DiffFormatter::_changed orig,
closing
 

Definition at line 1000 of file DifferenceEngine.php.

References _changed().

Referenced by _block(), and _changed().

DiffFormatter::_context lines  ) 
 

Definition at line 989 of file DifferenceEngine.php.

References _context().

Referenced by _block(), and _context().

DiffFormatter::_deleted lines  ) 
 

Definition at line 996 of file DifferenceEngine.php.

References _deleted().

Referenced by _block(), and _deleted().

DiffFormatter::_end_block  ) 
 

Definition at line 981 of file DifferenceEngine.php.

Referenced by _block().

DiffFormatter::_end_diff  ) 
 

Definition at line 962 of file DifferenceEngine.php.

Referenced by format().

DiffFormatter::_lines lines,
prefix = ' '
 

Definition at line 984 of file DifferenceEngine.php.

References _lines().

Referenced by _lines().

DiffFormatter::_start_block header  ) 
 

Definition at line 977 of file DifferenceEngine.php.

References _start_block().

Referenced by _block(), and _start_block().

DiffFormatter::_start_diff  ) 
 

Definition at line 958 of file DifferenceEngine.php.

Referenced by format().

DiffFormatter::format diff  ) 
 

Format a diff.

Parameters:
$diff object A Diff object.
Returns:
string The formatted output.

Definition at line 885 of file DifferenceEngine.php.

References _block(), _end_diff(), _start_diff(), and format().

Referenced by format().


Member Data Documentation

DiffFormatter::$leading_context_lines = 0
 

Number of leading context "lines" to preserve.

This should be left at zero for this class, but subclasses may want to set this to other values.

Definition at line 869 of file DifferenceEngine.php.

DiffFormatter::$trailing_context_lines = 0
 

Number of trailing context "lines" to preserve.

This should be left at zero for this class, but subclasses may want to set this to other values.

Definition at line 877 of file DifferenceEngine.php.


The documentation for this class was generated from the following file:
Generated on Tue Jun 29 23:40:22 2004 for Mediawiki by doxygen 1.3.7