ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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}
An exception for terminatinating execution or to throw for unit testing.
$_leading_context_lines
Number of leading context "lines" to preserve.
Definition: unified.php:17
$_trailing_context_lines
Number of trailing context "lines" to preserve.
Definition: unified.php:22
_changed($orig, $final)
Definition: unified.php:45
_blockHeader($xbeg, $xlen, $ybeg, $ylen)
Definition: unified.php:24
_lines($lines, $prefix=' ')
Definition: Renderer.php:193