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

Public Member Functions

 createSpanStart (SplitPosition &$entry)
 
 createSpanEnd (SplitPosition $entry)
 
 createStyleWithPadding ($type, $title, $depth=0)
 
 getStyleWithPadding ($padding, $style)
 
 createStartSpan ($type, $title)
 
 getLegendData ($containsDiff)
 

Public Attributes

const DEFAULT_PADDING = 0
 
 $classMapping
 

Detailed Description

Definition at line 18 of file HighlightRenderer.php.

Member Function Documentation

◆ createSpanEnd()

Fossology\Lib\View\HighlightRenderer::createSpanEnd ( SplitPosition  $entry)
Parameters
SplitPosition$entry
Returns
string

Definition at line 68 of file HighlightRenderer.php.

◆ createSpanStart()

Fossology\Lib\View\HighlightRenderer::createSpanStart ( SplitPosition $entry)
Parameters
SplitPosition$entry
Returns
string

Definition at line 46 of file HighlightRenderer.php.

◆ createStartSpan()

Fossology\Lib\View\HighlightRenderer::createStartSpan (   $type,
  $title 
)
Parameters
string$type
string$title
Returns
string

Definition at line 117 of file HighlightRenderer.php.

◆ createStyleWithPadding()

Fossology\Lib\View\HighlightRenderer::createStyleWithPadding (   $type,
  $title,
  $depth = 0 
)
Parameters
$type
$title
int$depth
Returns
string

Definition at line 90 of file HighlightRenderer.php.

◆ getLegendData()

Fossology\Lib\View\HighlightRenderer::getLegendData (   $containsDiff)
Parameters
boolean$containsDiff
Returns
array

Definition at line 133 of file HighlightRenderer.php.

◆ getStyleWithPadding()

Fossology\Lib\View\HighlightRenderer::getStyleWithPadding (   $padding,
  $style 
)
Parameters
$padding
$style

Definition at line 107 of file HighlightRenderer.php.

Member Data Documentation

◆ $classMapping

Fossology\Lib\View\HighlightRenderer::$classMapping
Initial value:
= array('' => '',
Highlight::UNDEFINED=>'hi-undefined',
Highlight::MATCH => 'hi-match',
Highlight::CHANGED => 'hi-changed',
Highlight::ADDED => 'hi-added',
Highlight::DELETED => 'hi-deleted',
Highlight::SIGNATURE => 'hi-signature',
Highlight::KEYWORD => 'hi-keyword',
Highlight::BULK => 'hi-bulk',
Highlight::COPYRIGHT => 'hi-cp',
Highlight::EMAIL => 'hi-email',
Highlight::URL => 'hi-url',
Highlight::AUTHOR => 'hi-author',
Highlight::BULK => 'hi-bulk',
Highlight::IPRA => 'hi-ipra',
Highlight::ECC => 'hi-mediumorchid',
Highlight::KEYWORDOTHERS => 'hi-teal'
)

Definition at line 22 of file HighlightRenderer.php.


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