ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
s
t
w
+
Functions
_
a
b
c
f
g
h
i
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
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
Text_Diff_Renderer_unified\_added
_added($lines)
Definition:
unified.php:35
Services
XHTMLValidator
validator
Text_Diff
unified.php
Generated on Mon Apr 7 2025 20:01:31 for ILIAS by
1.8.13 (using
Doxyfile
)