Properties

$first_level_menu

$first_level_menu : string

Define first level menu name

Type

string

$second_level_menu

$second_level_menu : string

Define second level menu name

Type

string

$third_level_menu

$third_level_menu : string

Define third level menu name

Type

string

$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

getAdditionalFields()

getAdditionalFields() : array

Fields added to this class

Returns

array

displaySpecificTypeField()

displaySpecificTypeField(integer  $ID, array  $field = array()) 

Display specific fields

Parameters

integer $ID
array $field

showItemtype()

showItemtype(integer  $ID) 

DIsplay the credential itemtype

Parameters

integer $ID

defineMoreTabs()

defineMoreTabs(array  $options = array()) : array

Define more tabs to display

Parameters

array $options

Returns

array

displayMoreTabs()

displayMoreTabs(array  $tab) 

Display more tabs

Parameters

array $tab

getSearchOptions()

getSearchOptions() : array

Get search function for the class

Returns

array

checkBeforeInsert()

checkBeforeInsert(array  $input) : array

Perform checks to be sure that an itemtype and at least a field are selected

Parameters

array $input

the values to insert in DB

Returns

array

prepareInputForAdd()

prepareInputForAdd(array  $input) : array

Prepare data before add to database

Parameters

array $input

Returns

array

prepareInputForUpdate()

prepareInputForUpdate(array  $input) : array

Prepare data before update in database

Parameters

array $input

Returns

array

getLabelByItemtype()

getLabelByItemtype(string  $credential_itemtype) : string|false

Get an itemtype label by the credential itemtype

Parameters

string $credential_itemtype

for example PluginFusioninventoryInventoryComputerESX

Returns

string|false

findItemtypeType()

findItemtypeType(string  $credential_itemtype) : array

Find a credential by his itemtype

Parameters

string $credential_itemtype

for example PluginFusioninventoryInventoryComputerESX

Returns

array

getCredentialsItemTypes()

getCredentialsItemTypes() : array

Get all credentials itemtypes

Returns

array

getForItemtype()

getForItemtype(string  $itemtype) : array

Get credential types

Parameters

string $itemtype

Returns

array

dropdownCredentials()

dropdownCredentials(array  $params = array()) 

Display dropdown with credentials

Parameters

array $params

dropdownCredentialsForItemtype()

dropdownCredentialsForItemtype(array  $params = array()) 

Display dropdown of credentials for itemtype

Parameters

array $params

hasAlLeastOneType()

hasAlLeastOneType() : boolean

Check if there's at least one credential itemetype

Returns

boolean

displayHeader()

displayHeader() 

Display a specific header