\PluginFusioninventoryNetworkEquipment

Manage and display extended information of network equipments.

Summary

Methods
Properties
Constants
getTabNameForItem()
displayTabContentForItem()
getType()
showForm()
displayHubConnections()
updateNetworkInfo()
showNetworkEquipmentInformation()
showInfo()
showNetworkPortDetailHeader()
showNetworkPortDetail()
displaySerializedInventory()
getItemtypeIcon()
$rightname
No constants found
No protected methods found
No protected properties found
N/A
byteSize()
No private properties found
N/A

Properties

$rightname

$rightname : string

The right name for this class

Type

string

Methods

getTabNameForItem()

getTabNameForItem(object  $item, integer  $withtemplate) : string

Get the tab name used for item

Parameters

object $item

the item object

integer $withtemplate

1 if is a template form

Returns

string —

name of the tab

displayTabContentForItem()

displayTabContentForItem(object  $item, integer  $tabnum = 1, integer  $withtemplate) : boolean

Display the content of the tab

Parameters

object $item
integer $tabnum

number of the tab to display

integer $withtemplate

1 if is a template form

Returns

boolean

getType()

getType() : string

Get the type of the itemtype

Returns

string

showForm()

showForm(object  $item, array  $options = array()) 

Display form

Parameters

object $item
array $options

displayHubConnections()

displayHubConnections(integer  $items_id, string  $background_img) 

Display connections with hub

Parameters

integer $items_id
string $background_img

updateNetworkInfo()

updateNetworkInfo(integer  $id, integer  $configsecurities_id, string  $sysdescr) 

Update the network equipement extended information

Parameters

integer $id
integer $configsecurities_id
string $sysdescr

showNetworkEquipmentInformation()

showNetworkEquipmentInformation(object  $item, array  $options) 

Display network equipment extended information

Parameters

object $item
array $options

showInfo()

showInfo(object  $item) 

Display informations about networkequipment (automatic inventory)

Parameters

object $item

NetworkEquipment instance

showNetworkPortDetailHeader()

showNetworkPortDetailHeader(string  $monitoring, string  $query) : object

Display network port detail header

Parameters

string $monitoring
string $query

Returns

object

showNetworkPortDetail()

showNetworkPortDetail(array  $data, boolean  $monitoring, boolean  $aggrega) : \nothing

Display detail networkport based on glpi core networkport and fusioninventory networkport

Parameters

array $data

with id ant fusionid

boolean $monitoring

true if monitoring installed && actived

boolean $aggrega

true if this port is aggregate port

Returns

\nothing

displaySerializedInventory()

displaySerializedInventory(integer  $items_id) 

Display serialized inventory

Parameters

integer $items_id

getItemtypeIcon()

getItemtypeIcon(string  $itemtype) : string

Get the icon related to the itemtype

Parameters

string $itemtype

Returns

string

byteSize()

byteSize(\number  $bytes, \number  $sizeoct = 1024) : \better

Convert size of octets

Parameters

\number $bytes
\number $sizeoct

Returns

\better —

size format