FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\Lib\View\TextRenderer Class Reference
Collaboration diagram for Fossology\Lib\View\TextRenderer:
Collaboration graph

Public Member Functions

 __construct (HighlightRenderer $highlightRenderer)
 
 renderText (TextFragment $fragment, $splitPositions=array(), $insertBacklink=false)
 
 renderHex (TextFragment $fragment, $splitPositions=array())
 
 render (TextFragment $fragment, HighlightState $state, PagedResult $result, $splitPositions=array())
 

Protected Member Functions

 processEntriesOutsideVisibleRange (TextFragment $fragment, HighlightState $state, PagedResult $result, $entries, $isAfterVisibleRange)
 
 processEntriesWithinVisibleRange (TextFragment $fragment, HighlightState $state, PagedResult $result, $actionPosition, $entries)
 
 finalizeContentText (TextFragment $fragment, HighlightState $state, PagedResult $result)
 

Private Attributes

 $highlightRenderer
 

Detailed Description

Definition at line 19 of file TextRenderer.php.

Member Function Documentation

◆ finalizeContentText()

Fossology\Lib\View\TextRenderer::finalizeContentText ( TextFragment  $fragment,
HighlightState  $state,
PagedResult  $result 
)
protected
Parameters
TextFragment$fragment
HighlightState$state
PagedResult$result

Definition at line 116 of file TextRenderer.php.

◆ processEntriesOutsideVisibleRange()

Fossology\Lib\View\TextRenderer::processEntriesOutsideVisibleRange ( TextFragment  $fragment,
HighlightState  $state,
PagedResult  $result,
  $entries,
  $isAfterVisibleRange 
)
protected
Parameters
TextFragment$fragment
HighlightState$state
PagedResult$result
SplitPosition[]$entries
boolean$isAfterVisibleRange

Definition at line 86 of file TextRenderer.php.

◆ processEntriesWithinVisibleRange()

Fossology\Lib\View\TextRenderer::processEntriesWithinVisibleRange ( TextFragment  $fragment,
HighlightState  $state,
PagedResult  $result,
  $actionPosition,
  $entries 
)
protected
Parameters
TextFragment$fragment
HighlightState$state
PagedResult$result
int$actionPosition
SplitPosition[]$entries

Definition at line 101 of file TextRenderer.php.

◆ render()

Fossology\Lib\View\TextRenderer::render ( TextFragment  $fragment,
HighlightState  $state,
PagedResult  $result,
  $splitPositions = array() 
)
Parameters
TextFragment$fragment
HighlightState$state
PagedResult$result
SplitPosition[]$splitPositions
Returns
PagedTextResult

Definition at line 63 of file TextRenderer.php.

◆ renderHex()

Fossology\Lib\View\TextRenderer::renderHex ( TextFragment  $fragment,
  $splitPositions = array() 
)
Parameters
TextFragment$fragment
SplitPosition[]$splitPositions
Returns
string

Definition at line 49 of file TextRenderer.php.

◆ renderText()

Fossology\Lib\View\TextRenderer::renderText ( TextFragment  $fragment,
  $splitPositions = array(),
  $insertBacklink = false 
)
Parameters
TextFragment$fragment
SplitPosition[]$splitPositions
bool$insertBacklink
Returns
string

Definition at line 37 of file TextRenderer.php.


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