\PluginFusioninventoryAgentmodule

Manage (enable or not) the modules in the agent.

Summary

Methods
Properties
Constants
getTabNameForItem()
displayTabContentForItem()
showForm()
showFormAgentException()
getActivationExceptions()
getAgentsCanDo()
isAgentCanDo()
getUrlForModule()
getModules()
$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

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() : boolean

Display form to configure modules in agents

Returns

boolean —

true if no problem

showFormAgentException()

showFormAgentException(integer  $agents_id) 

Display form to configure activation of modules in agent form (in tab)

Parameters

integer $agents_id

id of the agent

getActivationExceptions()

getActivationExceptions(string  $module_name) : array

Get global activation status of a module

Parameters

string $module_name

name of module

Returns

array —

information of module activation

getAgentsCanDo()

getAgentsCanDo(string  $module_name) : array

Get list of agents have this module activated

Parameters

string $module_name

name of the module

Returns

array —

id list of agents

isAgentCanDo()

isAgentCanDo(string  $module_name, integer  $agents_id) : boolean

Get if agent has this module enabled

Parameters

string $module_name

module name

integer $agents_id

id of the agent

Returns

boolean —

true if enabled, otherwise false

getUrlForModule()

getUrlForModule(string  $modulename, integer  $entities_id = -1) : string

Generate the server module URL to send to agent

Parameters

string $modulename

name of the module

integer $entities_id

id of the entity

Returns

string —

the URL generated

getModules()

getModules() : array

Get list of all modules

Returns

array —

list of name of modules