Moodle  2.2.1
http://www.collinsharper.com
WikiDiffFormatter Class Reference
Inheritance diagram for WikiDiffFormatter:

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)

Data Fields

 $leading_context_lines = 0
 $trailing_context_lines = 0

Detailed Description

A class to format WikiDiffs

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 685 of file diff_nwiki.php.


Member Function Documentation

_added ( lines)

Reimplemented in TableWikiDiffFormatterOld, and TableWikiDiffFormatter.

Definition at line 817 of file diff_nwiki.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_block ( xbeg,
xlen,
ybeg,
ylen,
&$  edits 
)

Definition at line 765 of file diff_nwiki.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_block_header ( xbeg,
xlen,
ybeg,
ylen 
)

Reimplemented in TableWikiDiffFormatterOld, and TableWikiDiffFormatter.

Definition at line 792 of file diff_nwiki.php.

Here is the caller graph for this function:

_changed ( orig,
closing 
)

Reimplemented in TableWikiDiffFormatterOld, and TableWikiDiffFormatter.

Definition at line 824 of file diff_nwiki.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_context ( lines)

Reimplemented in TableWikiDiffFormatterOld, and TableWikiDiffFormatter.

Definition at line 813 of file diff_nwiki.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_deleted ( lines)

Reimplemented in TableWikiDiffFormatterOld, and TableWikiDiffFormatter.

Definition at line 820 of file diff_nwiki.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Reimplemented in TableWikiDiffFormatterOld, and TableWikiDiffFormatter.

Definition at line 805 of file diff_nwiki.php.

Here is the caller graph for this function:

_end_diff ( )

Definition at line 786 of file diff_nwiki.php.

Here is the caller graph for this function:

_lines ( lines,
prefix = ' ' 
)

Definition at line 808 of file diff_nwiki.php.

Here is the caller graph for this function:

_start_block ( header)

Reimplemented in TableWikiDiffFormatterOld, and TableWikiDiffFormatter.

Definition at line 801 of file diff_nwiki.php.

Here is the caller graph for this function:

Definition at line 782 of file diff_nwiki.php.

Here is the caller graph for this function:

format ( diff)

Format a diff.

Parameters:
$diffobject A WikiDiff object.
Returns:
string The formatted output.

Definition at line 709 of file diff_nwiki.php.

Here is the call graph for this function:


Field Documentation

$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 693 of file diff_nwiki.php.

$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 701 of file diff_nwiki.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations