MediaWiki  1.27.1
ArrayDiffFormatter Class Reference

A pseudo-formatter that just passes along the Diff::$edits array. More...

Inheritance diagram for ArrayDiffFormatter:
Collaboration diagram for ArrayDiffFormatter:

Public Member Functions

 format ($diff)
 
- Public Member Functions inherited from DiffFormatter
 format ($diff)
 Format a diff. More...
 

Additional Inherited Members

- Protected Member Functions inherited from DiffFormatter
 added ($lines)
 
 block ($xbeg, $xlen, $ybeg, $ylen, &$edits)
 
 blockHeader ($xbeg, $xlen, $ybeg, $ylen)
 
 changed ($orig, $closing)
 Writes the two sets of lines to the output buffer, separated by "---" and a newline. More...
 
 context ($lines)
 
 deleted ($lines)
 
 endBlock ()
 Called at the end of a block of connected edits. More...
 
 endDiff ()
 
 lines ($lines, $prefix= ' ')
 Writes all (optionally prefixed) lines to the output buffer, separated by newlines. More...
 
 startBlock ($header)
 Called at the start of a block of connected edits. More...
 
 startDiff ()
 
 writeOutput ($text)
 Writes a string to the output buffer. More...
 
- Protected Attributes inherited from DiffFormatter
int $leadingContextLines = 0
 Number of leading context "lines" to preserve. More...
 
int $trailingContextLines = 0
 Number of trailing context "lines" to preserve. More...
 

Detailed Description

A pseudo-formatter that just passes along the Diff::$edits array.

Definition at line 31 of file ArrayDiffFormatter.php.

Member Function Documentation

ArrayDiffFormatter::format (   $diff)
Parameters
Diff$diffA Diff object.
Returns
array[] List of associative arrays, each describing a difference.

Definition at line 38 of file ArrayDiffFormatter.php.

References $key, $line, $retval, and as.


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