MediaWiki  REL1_22
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 1060 of file DairikiDiff.php.


Member Function Documentation

Parameters:
$lines

Reimplemented from DiffFormatter.

Definition at line 1067 of file DairikiDiff.php.

References $lines, and DiffFormatter\_lines().

Referenced by _changed().

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

Reimplemented from DiffFormatter.

Definition at line 1094 of file DairikiDiff.php.

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

Reimplemented from DiffFormatter.

Definition at line 1082 of file DairikiDiff.php.

References _added(), and _deleted().

Parameters:
$lines

Reimplemented from DiffFormatter.

Definition at line 1074 of file DairikiDiff.php.

References $lines, and DiffFormatter\_lines().

Referenced by _changed().


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 1061 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 1062 of file DairikiDiff.php.


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