\PluginFusioninventoryDeployAction

Manage the actions in package for deploy system.

Summary

Methods
Properties
Constants
getReturnActionNames()
getTypes()
getType()
displayForm()
displayList()
displayDropdownType()
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

getReturnActionNames()

getReturnActionNames() : array

Get list of return actions available

Returns

array

getTypes()

getTypes() : array

Get types of actions with name => description

Returns

array

getType()

getType(string  $type) : string

Get description of the type name

Parameters

string $type

name of the type

Returns

string —

mapped with the type

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 actions

Parameters

object $package

PluginFusioninventoryDeployPackage instance

array $datas

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

string $rand

unique element id used to identify/update an element

displayDropdownType()

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

Display dropdown type

Parameters

array $config

order item configuration

string $rand

unique element id used to identify/update an element

string $mode

mode in use (create, edit...)

displayAjaxValues()

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

Display different fields relative the action selected (cmd, move.

..)

Parameters

array $config
array $request_data
string $mode

mode in use (create, edit...)

Returns

boolean

add_item()

add_item(array  $params) 

Add a new item in actions of the package

Parameters

array $params

list of fields with value of the action

save_item()

save_item(array  $params) 

Save the item in actions

Parameters

array $params

list of fields with value of the action

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