\PluginFusioninventoryInventoryComputerInventory

Manage the import of computer inventory.

Summary

Methods
Properties
Constants
import()
sendCriteria()
rulepassed()
addDefaultStateIfNeeded()
getMethod()
fillArrayInventory()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$arrayinventory
$device_id
N/A

Properties

$arrayinventory

$arrayinventory : array

Initialize the array of inventory

Type

array

$device_id

$device_id : string

initialize the device_id of the agent

Type

string

Methods

import()

import(string  $p_DEVICEID, array  $a_CONTENT, array  $arrayinventory) : string

import data

Parameters

string $p_DEVICEID
array $a_CONTENT
array $arrayinventory

Returns

string —

errors

sendCriteria()

sendCriteria(string  $p_DEVICEID, array  $arrayinventory) 

Send Computer to inventoryruleimport

Parameters

string $p_DEVICEID
array $arrayinventory

rulepassed()

rulepassed(integer  $items_id, string  $itemtype) 

After rule engine passed, update task (log) and create item if required

Parameters

integer $items_id

id of the item (0 = not exist in database)

string $itemtype

addDefaultStateIfNeeded()

addDefaultStateIfNeeded(array  $input, boolean  $check_management = FALSE, integer  $management_value) : array

Get default value for state of devices (monitor, printer.

..)

Parameters

array $input
boolean $check_management
integer $management_value

Returns

array

getMethod()

getMethod() : string

Return method name of this class/plugin

Returns

string

fillArrayInventory()

fillArrayInventory(array  $data) 

Fill internal variable with the inventory array

Parameters

array $data