ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
Text_Diff_Renderer_unified Class Reference
+ Inheritance diagram for Text_Diff_Renderer_unified:
+ Collaboration diagram for Text_Diff_Renderer_unified:

Public Member Functions

 _blockHeader ($xbeg, $xlen, $ybeg, $ylen)
 _added ($lines)
 _deleted ($lines)
 _changed ($orig, $final)
- Public Member Functions inherited from Text_Diff_Renderer
 Text_Diff_Renderer ($params=array())
 Constructor.
 getParams ()
 Get any renderer parameters.
 render ($diff)
 Renders a diff.
 _block ($xbeg, $xlen, $ybeg, $ylen, &$edits)
 _startDiff ()
 _endDiff ()
 _startBlock ($header)
 _endBlock ()
 _lines ($lines, $prefix= ' ')
 _context ($lines)

Data Fields

 $_leading_context_lines = 4
 Number of leading context "lines" to preserve.
 $_trailing_context_lines = 4
 Number of trailing context "lines" to preserve.
- Data Fields inherited from Text_Diff_Renderer
 $_leading_context_lines = 0
 Number of leading context "lines" to preserve.
 $_trailing_context_lines = 0
 Number of trailing context "lines" to preserve.

Detailed Description

Definition at line 11 of file unified.php.

Member Function Documentation

Text_Diff_Renderer_unified::_added (   $lines)

Reimplemented from Text_Diff_Renderer.

Definition at line 34 of file unified.php.

References Text_Diff_Renderer\_lines().

Referenced by _changed().

{
return $this->_lines($lines, '+');
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Text_Diff_Renderer_unified::_blockHeader (   $xbeg,
  $xlen,
  $ybeg,
  $ylen 
)

Reimplemented from Text_Diff_Renderer.

Definition at line 23 of file unified.php.

{
if ($xlen != 1) {
$xbeg .= ',' . $xlen;
}
if ($ylen != 1) {
$ybeg .= ',' . $ylen;
}
return "@@ -$xbeg +$ybeg @@";
}
Text_Diff_Renderer_unified::_changed (   $orig,
  $final 
)

Reimplemented from Text_Diff_Renderer.

Definition at line 44 of file unified.php.

References _added(), and _deleted().

{
return $this->_deleted($orig) . $this->_added($final);
}

+ Here is the call graph for this function:

Text_Diff_Renderer_unified::_deleted (   $lines)

Reimplemented from Text_Diff_Renderer.

Definition at line 39 of file unified.php.

References Text_Diff_Renderer\_lines().

Referenced by _changed().

{
return $this->_lines($lines, '-');
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

Text_Diff_Renderer_unified::$_leading_context_lines = 4

Number of leading context "lines" to preserve.

Definition at line 16 of file unified.php.

Text_Diff_Renderer_unified::$_trailing_context_lines = 4

Number of trailing context "lines" to preserve.

Definition at line 21 of file unified.php.


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