FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\Lib\UI\Component\MicroMenu Class Reference
Collaboration diagram for Fossology\Lib\UI\Component\MicroMenu:
Collaboration graph

Public Member Functions

 insert ($groups, $name, $position, $module, $uri, $tooltip)
 
 getFormatParameter ($itemId=null)
 
 addFormatMenuEntries ($selectedFormat, $pageNumber, $menuKey=self::VIEW, $hexFactor=10)
 

Public Attributes

const VIEW = 'View'
 
const VIEW_META = 'View-Meta'
 
const FORMAT_HEX = 'hex'
 
const FORMAT_TEXT = 'text'
 
const FORMAT_FLOW = 'flow'
 
const TARGET_DEFAULT = 'default'
 
const TARGET_VIEW = 'view'
 

Private Attributes

 $formatOptions = array(self::FORMAT_FLOW, self::FORMAT_TEXT, self::FORMAT_HEX)
 
 $textFormats = array(self::FORMAT_HEX, self::FORMAT_TEXT, self::FORMAT_FLOW)
 
 $targets
 

Detailed Description

Definition at line 8 of file MicroMenu.php.

Member Function Documentation

◆ addFormatMenuEntries()

Fossology\Lib\UI\Component\MicroMenu::addFormatMenuEntries (   $selectedFormat,
  $pageNumber,
  $menuKey = self::VIEW,
  $hexFactor = 10 
)
Parameters
$selectedFormat
$pageNumber
string$menuKey
int$hexFactor
Returns
string

Definition at line 74 of file MicroMenu.php.

◆ getFormatParameter()

Fossology\Lib\UI\Component\MicroMenu::getFormatParameter (   $itemId = null)
Parameters
$itemId
Returns
string

Definition at line 51 of file MicroMenu.php.

Member Data Documentation

◆ $targets

Fossology\Lib\UI\Component\MicroMenu::$targets
private
Initial value:
= array(
self::TARGET_DEFAULT => array(MicroMenu::VIEW_META, MicroMenu::VIEW),
self::TARGET_VIEW => array(MicroMenu::VIEW)
)

Definition at line 24 of file MicroMenu.php.


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