\PluginFusioninventoryDeployCheck

Manage the checks before deploy a package.

Summary

Methods
Properties
Constants
getTypes()
getUnitLabel()
getUnitSize()
displayForm()
displayList()
displayDropdownType()
getValues()
displayAjaxValues()
add_item()
save_item()
remove_item()
move_item()
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

getTypes()

getTypes() : array

Get types of checks with name => description

Returns

array

getUnitLabel()

getUnitLabel() : array

Get Unit name

Returns

array

getUnitSize()

getUnitSize(string  $unit) : integer

Get the number to multiply to have in B relative to the unit

Parameters

string $unit

the unit of number

Returns

integer —

the number to multiply

displayForm()

displayForm(object  $package, array  $request_data, string  $rand, string  $mode) 

Display form

Parameters

object $package

PluginFusioninventoryDeployPackage instance

array $request_data
string $rand

unique element id used to identify/update an element

string $mode

possible values: init|edit|create

displayList()

displayList(object  $package, array  $datas, string  $rand) 

Display list of checks

Parameters

object $package

PluginFusioninventoryDeployPackage instance

array $datas

array converted of 'json' field in DB where stored checks

string $rand

unique element id used to identify/update an element

displayDropdownType()

displayDropdownType(array  $config, string  $rand, string  $mode) 

Display the dropdown to select type of element

Parameters

array $config

order item configuration

string $rand

unique element id used to identify/update an element

string $mode

mode in use (create, edit...)

getValues()

getValues(string  $type, array  $data, string  $mode) : string|false

Get fields for the check type requested

Parameters

string $type

the type of check

array $data

fields yet defined in edit mode

string $mode

mode in use (create, edit...)

Returns

string|false

displayAjaxValues()

displayAjaxValues(array  $config, array  $request_data, string  $rand, string  $mode) : boolean

Display different fields relative the check selected

Parameters

array $config
array $request_data
string $rand

unique element id used to identify/update an element

string $mode

mode in use (create, edit...)

Returns

boolean

add_item()

add_item(array  $params) 

Add a new item in checks of the package

Parameters

array $params

list of fields with value of the check

save_item()

save_item(array  $params) 

Save the item in checks

Parameters

array $params

list of fields with value of the check

remove_item()

remove_item(array  $params) : boolean

Remove an item

Parameters

array $params

Returns

boolean

move_item()

move_item(array  $params) 

Move an item

Parameters

array $params