ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
TableDiffFormatter Class Reference
+ Inheritance diagram for TableDiffFormatter:
+ Collaboration diagram for TableDiffFormatter:

Public Member Functions

 __construct ()
 
 _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. More...
 
 _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)
 

Additional Inherited Members

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

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

TableDiffFormatter::__construct ( )

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

1884 {

Member Function Documentation

◆ _added()

TableDiffFormatter::_added (   $lines)

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

1920  {$line}</td>";
1921  }
1922 
1923  # HTML-escape parameter before calling this
1924  public function contextLine($line)
1925  {
1926  return "<td> </td><td class='diff-context'>{$line}</td>";

◆ _block_header()

TableDiffFormatter::_block_header (   $xbeg,
  $xlen,
  $ybeg,
  $ylen 
)

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

1884 {

◆ _changed()

TableDiffFormatter::_changed (   $orig,
  $closing 
)

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

1951  {
1952  foreach ($lines as $line) {
1953  echo '<tr>' .
1954  $this->contextLine(htmlspecialchars($line)) .
1955  $this->contextLine(htmlspecialchars($line)) . "</tr>\n";
1956  }
1957  }
1958 
1959  public function _changed($orig, $closing)
1960  {
1961  $fname = 'TableDiffFormatter::_changed';
1962  //wfProfileIn( $fname );
1963 
1964  $diff = new WordLevelDiff($orig, $closing);
1965  $del = $diff->orig();
1966  $add = $diff->closing();
1967 
_changed($orig, $closing)

◆ _context()

TableDiffFormatter::_context (   $lines)

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

1936  {
1937  echo '<tr>' . $this->emptyLine() .
1938  $this->addedLine(htmlspecialchars($line)) . "</tr>\n";
1939  }
1940  }
1941 
1942  public function _deleted($lines)
1943  {

◆ _deleted()

TableDiffFormatter::_deleted (   $lines)

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

1930  {
1931  return '<td colspan="2">&nbsp;</td>';
1932  }
1933 
1934  public function _added($lines)

◆ _end_block()

TableDiffFormatter::_end_block ( )

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

1892  {

◆ _lines()

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

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

1899  {

◆ _start_block()

TableDiffFormatter::_start_block (   $header)

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

References DifferenceEngine\__construct().

1884 {
1885  public function __construct()
1886  {
1887  $this->leading_context_lines = 2;
+ Here is the call graph for this function:

◆ addedLine()

TableDiffFormatter::addedLine (   $line)

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

1899  {
1900  echo $header;
1901  }

◆ contextLine()

TableDiffFormatter::contextLine (   $line)

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

1913  {

◆ deletedLine()

TableDiffFormatter::deletedLine (   $line)

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

1904  {
1905  }
1906 
1907  public function _lines($lines, $prefix = ' ', $color = 'white')
_lines($lines, $prefix=' ', $color='white')

◆ emptyLine()

TableDiffFormatter::emptyLine ( )

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

1919  {

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