ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
unified.php
Go to the documentation of this file.
1 <?php
12 {
13 
18 
23 
24  public function _blockHeader($xbeg, $xlen, $ybeg, $ylen)
25  {
26  if ($xlen != 1) {
27  $xbeg .= ',' . $xlen;
28  }
29  if ($ylen != 1) {
30  $ybeg .= ',' . $ylen;
31  }
32  return "@@ -$xbeg +$ybeg @@";
33  }
34 
35  public function _added($lines)
36  {
37  return $this->_lines($lines, '+');
38  }
39 
40  public function _deleted($lines)
41  {
42  return $this->_lines($lines, '-');
43  }
44 
45  public function _changed($orig, $final)
46  {
47  return $this->_deleted($orig) . $this->_added($final);
48  }
49 }
$_trailing_context_lines
Number of trailing context "lines" to preserve.
Definition: unified.php:22
$_leading_context_lines
Number of leading context "lines" to preserve.
Definition: unified.php:17
_blockHeader($xbeg, $xlen, $ybeg, $ylen)
Definition: unified.php:24
_lines($lines, $prefix=' ')
Definition: Renderer.php:193
_changed($orig, $final)
Definition: unified.php:45