ILIAS
eassessment Revision 61809
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
unified.php
Go to the documentation of this file.
1
<?php
11
class
Text_Diff_Renderer_unified
extends
Text_Diff_Renderer
{
12
16
public
$_leading_context_lines
= 4;
17
21
public
$_trailing_context_lines
= 4;
22
23
function
_blockHeader
($xbeg, $xlen, $ybeg, $ylen)
24
{
25
if
($xlen != 1) {
26
$xbeg .=
','
. $xlen;
27
}
28
if
($ylen != 1) {
29
$ybeg .=
','
. $ylen;
30
}
31
return
"@@ -$xbeg +$ybeg @@"
;
32
}
33
34
function
_added
($lines)
35
{
36
return
$this->
_lines
($lines,
'+'
);
37
}
38
39
function
_deleted
($lines)
40
{
41
return
$this->
_lines
($lines,
'-'
);
42
}
43
44
function
_changed
($orig, $final)
45
{
46
return
$this->
_deleted
($orig) . $this->
_added
($final);
47
}
48
49
}
Services
XHTMLValidator
validator
Text_Diff
unified.php
Generated on Mon Apr 25 2016 19:01:46 for ILIAS by
1.8.1.2 (using
Doxyfile
)