\PluginFusioninventoryCollect_File_Content

Manage the files found by the collect module of agent.

Summary

Methods
Properties
Constants
getTypeName()
getTabNameForItem()
displayTabContentForItem()
updateComputer()
showForCollect()
showForComputer()
showForCollectFile()
storeTempFilesFound()
$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

updateComputer()

updateComputer(integer  $computers_id, integer  $collects_files_id, integer  $taskjobstates_id) 

Update computer files (add and update files) related to this collect file id

Parameters

integer $computers_id

id of the computer

integer $collects_files_id

id of collect_file

integer $taskjobstates_id

id of taskjobstate

showForCollect()

showForCollect(integer  $collects_id) 

Show all files defined

Parameters

integer $collects_id

id of collect

showForComputer()

showForComputer(integer  $computers_id) 

Display files found on the computer

Parameters

integer $computers_id

id of the computer

showForCollectFile()

showForCollectFile(integer  $collects_files_id) 

Display all files found on all computers related to the collect file

Parameters

integer $collects_files_id

id of collect_file

storeTempFilesFound()

storeTempFilesFound(integer  $taskjobstates_id, array  $a_values) 

Store files found by agent in temp storage (field 'specificity' of taskjobstate because files received in many parts)

Parameters

integer $taskjobstates_id

id of taskjobstate

array $a_values

data received from agent