\PluginFusioninventoryEntity

Manage the entity configuration.

Summary

Methods
Properties
Constants
getTypeName()
getTabNameForItem()
displayTabContentForItem()
showForm()
getValueAncestor()
getValue()
post_getEmpty()
$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

showForm()

showForm(integer  $entities_id, array  $options = array()) : true

Display form

Parameters

integer $entities_id
array $options

Returns

true

getValueAncestor()

getValueAncestor(string  $name, integer  $entities_id) : string

Get value of config

Parameters

string $name

field name

integer $entities_id

Returns

string —

value of field

getValue()

getValue(string  $name, integer  $entities_id) : string

Get the value (of this entity or parent entity or in general config

Parameters

string $name

field name

integer $entities_id

Returns

string —

value of this field

post_getEmpty()

post_getEmpty() 

Initialize a field when get empty item (default values)