ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
_HWLDF_WordAccumulator Class Reference
+ Collaboration diagram for _HWLDF_WordAccumulator:

Public Member Functions

 _HWLDF_WordAccumulator ()
 _flushGroup ($new_tag)
 _flushLine ($new_tag)
 addWords ($words, $tag= '')
 getLines ()

Detailed Description

Definition at line 1557 of file class.WordLevelDiff.php.

Member Function Documentation

_HWLDF_WordAccumulator::_flushGroup (   $new_tag)

Definition at line 1565 of file class.WordLevelDiff.php.

{
function _HWLDF_WordAccumulator () {
$this->_lines = array();
$this->_line = '';
$this->_group = '';
$this->_tag = '';
}
_HWLDF_WordAccumulator::_flushLine (   $new_tag)

Definition at line 1580 of file class.WordLevelDiff.php.

{
if ($this->_tag == 'ins')
$this->_line .= '[ilDiffInsStart]' .
htmlspecialchars ( $this->_group ) . '[ilDiffInsEnd]';
elseif ($this->_tag == 'del')
$this->_line .= '[ilDiffDelStart]' .
htmlspecialchars ( $this->_group ) . '[ilDiffDelEnd]';
else
$this->_line .= htmlspecialchars ( $this->_group );
_HWLDF_WordAccumulator::_HWLDF_WordAccumulator ( )

Definition at line 1558 of file class.WordLevelDiff.php.

{
_HWLDF_WordAccumulator::addWords (   $words,
  $tag = '' 
)

Definition at line 1590 of file class.WordLevelDiff.php.

Referenced by WordLevelDiff\closing().

{
$this->_flushGroup($new_tag);
if ($this->_line != '')
array_push ( $this->_lines, $this->_line );
else
# make empty lines visible by inserting an NBSP
array_push ( $this->_lines, NBSP );
$this->_line = '';
}
function addWords ($words, $tag = '') {
if ($tag != $this->_tag)

+ Here is the caller graph for this function:

_HWLDF_WordAccumulator::getLines ( )

Definition at line 1607 of file class.WordLevelDiff.php.

{
// new-line should only come as first char of word.
if ($word == '')

The documentation for this class was generated from the following file: