\PluginFusioninventoryInventoryComputerComputer

Manage the extended information of a computer.

Summary

Methods
Properties
Constants
getTypeName()
getTabNameForItem()
displayTabContentForItem()
showInfo()
displaySerializedInventory()
cleanComputer()
getLock()
$rightname
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$rightname

$rightname : string

The right name for this class

Type

string

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

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

showInfo()

showInfo(object  $item) : true

Display information about computer (bios, last contact.

..)

Parameters

object $item

Returns

true

displaySerializedInventory()

displaySerializedInventory(integer  $computers_id) 

Display a serialized inventory

Parameters

integer $computers_id

cleanComputer()

cleanComputer(integer  $computers_id) 

Delete extended information of computer

Parameters

integer $computers_id

getLock()

getLock(integer  $computers_id) : boolean

Get entity lock. If true, computer can't be transfered to another entity by agent inventory (so in automatic)

Parameters

integer $computers_id

Returns

boolean