MediaWiki  REL1_19
UnifiedDiffFormatter Class Reference

A formatter that outputs unified diffs. More...

Inheritance diagram for UnifiedDiffFormatter:
Collaboration diagram for UnifiedDiffFormatter:

List of all members.

Public Member Functions

 _added ($lines)
 _block_header ($xbeg, $xlen, $ybeg, $ylen)
 _changed ($orig, $closing)
 _deleted ($lines)

Public Attributes

 $leading_context_lines = 2
 Number of leading context "lines" to preserve.
 $trailing_context_lines = 2
 Number of trailing context "lines" to preserve.

Detailed Description

A formatter that outputs unified diffs.

Definition at line 1045 of file DairikiDiff.php.


Member Function Documentation

Parameters:
$lines

Reimplemented from DiffFormatter.

Definition at line 1052 of file DairikiDiff.php.

References $lines, and DiffFormatter\_lines().

Referenced by _changed().

Here is the call graph for this function:

Here is the caller graph for this function:

UnifiedDiffFormatter::_block_header ( xbeg,
xlen,
ybeg,
ylen 
)
Parameters:
$xbeg
$xlen
$ybeg
$ylen
Returns:
string

Reimplemented from DiffFormatter.

Definition at line 1079 of file DairikiDiff.php.

UnifiedDiffFormatter::_changed ( orig,
closing 
)
Parameters:
$orig
$closing

Reimplemented from DiffFormatter.

Definition at line 1067 of file DairikiDiff.php.

References _added(), and _deleted().

Here is the call graph for this function:

Parameters:
$lines

Reimplemented from DiffFormatter.

Definition at line 1059 of file DairikiDiff.php.

References $lines, and DiffFormatter\_lines().

Referenced by _changed().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

UnifiedDiffFormatter::$leading_context_lines = 2

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.

Reimplemented from DiffFormatter.

Definition at line 1046 of file DairikiDiff.php.

UnifiedDiffFormatter::$trailing_context_lines = 2

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.

Reimplemented from DiffFormatter.

Definition at line 1047 of file DairikiDiff.php.


The documentation for this class was generated from the following file: