\PluginFusioninventoryCommunicationNetworkInventory

Manage the communication of network inventory feature with the agents.

Summary

Methods
Properties
Constants
__construct()
import()
importContent()
importDevice()
sendCriteria()
rulepassed()
addtaskjoblog()
getMethod()
$rightname
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$logFile
$agent
$arrayinventory
N/A

Properties

$rightname

$rightname : string

The right name for this class

Type

string

$logFile

$logFile : null

Define protected variables

Type

null

$agent

$agent : null

Define protected variables

Type

null

$arrayinventory

$arrayinventory : null

Define protected variables

Type

null

Methods

__construct()

__construct() 

__contruct function where fill logFile if extradebug enabled

import()

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

Import data, so get data from agent to put in GLPI

Parameters

string $p_DEVICEID

device_id of the agent

array $a_CONTENT
array $arrayinventory

importContent()

importContent(array  $arrayinventory) : string

Import the content (where have all devices)

Parameters

array $arrayinventory

Returns

string —

errors or empty string

importDevice()

importDevice(string  $itemtype, integer  $items_id, array  $a_inventory) : string

import process of one device

Parameters

string $itemtype
integer $items_id
array $a_inventory

Returns

string —

errors or empty string

sendCriteria()

sendCriteria(array  $a_inventory) : string

Send inventory information to import rules

Parameters

array $a_inventory

Returns

string —

errors or empty string

rulepassed()

rulepassed(integer  $items_id, string  $itemtype) : string

After rules import device

Parameters

integer $items_id

id of the device in GLPI DB (0 = created, other = merge)

string $itemtype

itemtype of the device

Returns

string —

errors or empty string

addtaskjoblog()

addtaskjoblog() 

Add log in the taskjob

getMethod()

getMethod() : string

Get method name linked to this class

Returns

string