\PluginFusioninventoryCollect

Manage the collect information by the agent.

Summary

Methods
Properties
Constants
getTypeName()
getTabNameForItem()
displayTabContentForItem()
getTypes()
getSearchOptionsToAdd()
showForm()
prepareRun()
run()
$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

getTypes()

getTypes() : array

Get all collect types

Returns

array —

[name] => description

getSearchOptionsToAdd()

getSearchOptionsToAdd() : array

Add search options

Returns

array

showForm()

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

Display form

Parameters

integer $ID
array $options

Returns

true

prepareRun()

prepareRun(integer  $taskjobs_id) 

Prepare run, so it prepare the taskjob with module 'collect'.

It prepare collect information and computer list for task run

Parameters

integer $taskjobs_id

id of taskjob

run()

run(object  $taskjobstate, array  $agent) : array

run function, so return data to send to the agent for collect information

Parameters

object $taskjobstate

PluginFusioninventoryTaskjobstate instance

array $agent

agent information from agent table in database

Returns

array