ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
unified.php
Go to the documentation of this file.
1
<?
php
11
class
Text_Diff_Renderer_unified
extends
Text_Diff_Renderer
12
{
13
17
public
$_leading_context_lines
= 4;
18
22
public
$_trailing_context_lines
= 4;
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
}
Text_Diff_Renderer_unified\$_trailing_context_lines
$_trailing_context_lines
Number of trailing context "lines" to preserve.
Definition:
unified.php:22
Text_Diff_Renderer_unified
Definition:
unified.php:11
Text_Diff_Renderer_unified\$_leading_context_lines
$_leading_context_lines
Number of leading context "lines" to preserve.
Definition:
unified.php:17
Text_Diff_Renderer_unified\_deleted
_deleted($lines)
Definition:
unified.php:40
Text_Diff_Renderer_unified\_blockHeader
_blockHeader($xbeg, $xlen, $ybeg, $ylen)
Definition:
unified.php:24
Text_Diff_Renderer\_lines
_lines($lines, $prefix=' ')
Definition:
Renderer.php:193
Text_Diff_Renderer
Definition:
Renderer.php:12
Text_Diff_Renderer_unified\_changed
_changed($orig, $final)
Definition:
unified.php:45
php
Text_Diff_Renderer_unified\_added
_added($lines)
Definition:
unified.php:35
Services
XHTMLValidator
validator
Text_Diff
unified.php
Generated on Thu Jan 30 2025 19:02:10 for ILIAS by
1.8.13 (using
Doxyfile
)