\PluginFusioninventoryMenu

Manage the menu of plugin FusionInventory.

Summary

Methods
Properties
Constants
getTypeName()
canView()
canCreate()
getMenuName()
getAdditionalMenuOptions()
getAdditionalMenuContent()
displayMenu()
displayMenuInventory()
displayMenuSNMPInventory()
htmlMenu()
board()
showChart()
showChartBar()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getTypeName()

getTypeName(integer  $nb) : string

Get name of this type by language of the user connected

Parameters

integer $nb

number of elements

Returns

string —

name of this type

canView()

canView() : boolean

Check if can view item

Returns

boolean

canCreate()

canCreate() : boolean

Check if can create an item

Returns

boolean

getMenuName()

getMenuName() : string

Get the menu name

Returns

string

getAdditionalMenuOptions()

getAdditionalMenuOptions() : array

Get additional menu options and breadcrumb

Returns

array

getAdditionalMenuContent()

getAdditionalMenuContent() : array

Get additional menu content

Returns

array

displayMenu()

displayMenu(string  $type = "big") 

Display the menu of plugin FusionInventory

Parameters

string $type

displayMenuInventory()

displayMenuInventory() 

Menu for computer inventory

displayMenuSNMPInventory()

displayMenuSNMPInventory() 

Menu for SNMP inventory

htmlMenu()

htmlMenu(string  $menu_name, array  $a_menu = array(), string  $type = "big", integer  $width_status = 300) : integer

Display menu in html

Parameters

string $menu_name
array $a_menu
string $type
integer $width_status

Returns

integer

board()

board() 

Display the board (graph / stats on FusionInventory plugin page)

showChart()

showChart(string  $name, array  $data, string  $title = '') 

Display chart

Parameters

string $name
array $data

list of data for the chart

string $title

showChartBar()

showChartBar(string  $name, array  $data, string  $title = '', integer  $width = 370) 

Display chart bar

Parameters

string $name
array $data

list of data for the chart

string $title
integer $width