ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
TableDiffFormatter Class Reference
+ Inheritance diagram for TableDiffFormatter:
+ Collaboration diagram for TableDiffFormatter:

Public Member Functions

 TableDiffFormatter ()
 _block_header ($xbeg, $xlen, $ybeg, $ylen)
 _start_block ($header)
 _end_block ()
 _lines ($lines, $prefix=' ', $color='white')
 addedLine ($line)
 deletedLine ($line)
 contextLine ($line)
 emptyLine ()
 _added ($lines)
 _deleted ($lines)
 _context ($lines)
 _changed ($orig, $closing)
- Public Member Functions inherited from DiffFormatter
 format ($diff)
 Format a diff.
 _block ($xbeg, $xlen, $ybeg, $ylen, &$edits)
 _start_diff ()
 _end_diff ()
 _lines ($lines, $prefix= ' ')

Additional Inherited Members

- Data Fields inherited from DiffFormatter
 $leading_context_lines = 0
 Number of leading context "lines" to preserve.
 $trailing_context_lines = 0
 Number of trailing context "lines" to preserve.

Detailed Description

Definition at line 1706 of file class.WordLevelDiff.php.

Member Function Documentation

TableDiffFormatter::_added (   $lines)

Reimplemented from DiffFormatter.

Definition at line 1748 of file class.WordLevelDiff.php.

{
return "<td>-</td><td class='diff-deletedline'>{$line}</td>";
}
# HTML-escape parameter before calling this
TableDiffFormatter::_block_header (   $xbeg,
  $xlen,
  $ybeg,
  $ylen 
)

Reimplemented from DiffFormatter.

Definition at line 1713 of file class.WordLevelDiff.php.

{
TableDiffFormatter::_changed (   $orig,
  $closing 
)

Reimplemented from DiffFormatter.

Definition at line 1770 of file class.WordLevelDiff.php.

{
echo '<tr>' . $this->deletedLine( htmlspecialchars ( $line ) ) .
$this->emptyLine() . "</tr>\n";
}
}
function _context( $lines ) {
foreach ($lines as $line) {
echo '<tr>' .
$this->contextLine( htmlspecialchars ( $line ) ) .
$this->contextLine( htmlspecialchars ( $line ) ) . "</tr>\n";
}
}
function _changed( $orig, $closing ) {
$fname = 'TableDiffFormatter::_changed';
//wfProfileIn( $fname );
$diff = new WordLevelDiff( $orig, $closing );
$del = $diff->orig();
$add = $diff->closing();
TableDiffFormatter::_context (   $lines)

Reimplemented from DiffFormatter.

Definition at line 1762 of file class.WordLevelDiff.php.

{
foreach ($lines as $line) {
echo '<tr>' . $this->emptyLine() .
$this->addedLine( htmlspecialchars ( $line ) ) . "</tr>\n";
}
}
TableDiffFormatter::_deleted (   $lines)

Reimplemented from DiffFormatter.

Definition at line 1755 of file class.WordLevelDiff.php.

{$line}</td>";
}
function emptyLine() {
return '<td colspan="2">&nbsp;</td>';
}
TableDiffFormatter::_end_block ( )

Reimplemented from DiffFormatter.

Definition at line 1723 of file class.WordLevelDiff.php.

{
TableDiffFormatter::_lines (   $lines,
  $prefix = ' ',
  $color = 'white' 
)

Definition at line 1726 of file class.WordLevelDiff.php.

{
TableDiffFormatter::_start_block (   $header)

Reimplemented from DiffFormatter.

Definition at line 1719 of file class.WordLevelDiff.php.

{
TableDiffFormatter::addedLine (   $line)

Definition at line 1730 of file class.WordLevelDiff.php.

{
TableDiffFormatter::contextLine (   $line)

Definition at line 1740 of file class.WordLevelDiff.php.

{
}
TableDiffFormatter::deletedLine (   $line)

Definition at line 1735 of file class.WordLevelDiff.php.

{
TableDiffFormatter::emptyLine ( )

Definition at line 1744 of file class.WordLevelDiff.php.

{
return "<td>+</td><td class='diff-addedline'>{$line}</td>";
}
TableDiffFormatter::TableDiffFormatter ( )

Definition at line 1708 of file class.WordLevelDiff.php.

{

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