Definition at line 1026 of file class.WordLevelDiff.php.
◆ __construct()
_HWLDF_WordAccumulator::__construct |
( |
| ) |
|
◆ _flushGroup()
_HWLDF_WordAccumulator::_flushGroup |
( |
|
$new_tag | ) |
|
Definition at line 1041 of file class.WordLevelDiff.php.
1043 if ($this->_group !==
'') {
1044 if ($this->_tag ==
'ins') {
1045 $this->_line .=
'[ilDiffInsStart]' .
1046 htmlspecialchars($this->_group) .
'[ilDiffInsEnd]';
1047 } elseif ($this->_tag ==
'del') {
1048 $this->_line .=
'[ilDiffDelStart]' .
1049 htmlspecialchars($this->_group) .
'[ilDiffDelEnd]';
1051 $this->_line .= htmlspecialchars($this->_group);
1055 $this->_tag = $new_tag;
◆ _flushLine()
_HWLDF_WordAccumulator::_flushLine |
( |
|
$new_tag | ) |
|
Definition at line 1058 of file class.WordLevelDiff.php.
References NBSP.
1061 if ($this->_line !=
'') {
1062 array_push($this->_lines, $this->_line);
1064 # make empty lines visible by inserting an NBSP 1065 array_push($this->_lines,
NBSP);
const NBSP
Additions by Axel Boldt follow, partly taken from diff.php, phpwiki-1.3.3.
◆ addWords()
_HWLDF_WordAccumulator::addWords |
( |
|
$words, |
|
|
|
$tag = '' |
|
) |
| |
Definition at line 1070 of file class.WordLevelDiff.php.
1072 if ($tag != $this->_tag) {
1076 foreach ($words as $word) {
1081 if ($word[0] ==
"\n") {
1083 $word = substr($word, 1);
1085 assert(!strstr($word,
"\n"));
1086 $this->_group .= $word;
◆ getLines()
_HWLDF_WordAccumulator::getLines |
( |
| ) |
|
◆ $_group
string _HWLDF_WordAccumulator::$_group |
|
private |
◆ $_line
string _HWLDF_WordAccumulator::$_line |
|
private |
◆ $_lines
array _HWLDF_WordAccumulator::$_lines |
|
private |
◆ $_tag
string _HWLDF_WordAccumulator::$_tag |
|
private |
The documentation for this class was generated from the following file: