\PluginFusioninventoryConfigSecurity

Manage the SNMP authentication: v1, v2c and v3 support.

Summary

Methods
Properties
Constants
defineTabs()
showForm()
showDropdownSNMPVersion()
getSNMPVersion()
showDropdownSNMPAuth()
getSNMPAuthProtocol()
showDropdownSNMPEncryption()
getSNMPEncryption()
authDropdown()
showMassiveActionsSubForm()
processMassiveActionsForOneItemtype()
$dohistory
$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

$dohistory

$dohistory : boolean

We activate the history.

Type

boolean

$rightname

$rightname : string

The right name for this class

Type

string

Methods

defineTabs()

defineTabs(array  $options = array()) : array

Define tabs to display on form page

Parameters

array $options

Returns

array —

containing the tabs name

showForm()

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

Display form

Parameters

integer $id
array $options

Returns

true

showDropdownSNMPVersion()

showDropdownSNMPVersion(null|string  $p_value = NULL) 

Display SNMP version (dropdown)

Parameters

null|string $p_value

getSNMPVersion()

getSNMPVersion(integer  $id) : string

Get real version of SNMP

Parameters

integer $id

Returns

string

showDropdownSNMPAuth()

showDropdownSNMPAuth(null|string  $p_value = NULL) 

Display SNMP authentication encryption (dropdown)

Parameters

null|string $p_value

getSNMPAuthProtocol()

getSNMPAuthProtocol(integer  $id) : string

Get SNMP authentication protocol

Parameters

integer $id

Returns

string

showDropdownSNMPEncryption()

showDropdownSNMPEncryption(string  $p_value = NULL) 

Show dropdown of SNMP encryption protocol

Parameters

string $p_value

getSNMPEncryption()

getSNMPEncryption(integer  $id) : string

Get the SNMP encryption

Parameters

integer $id

Returns

string

authDropdown()

authDropdown(string  $selected = "") 

Show dropdown of SNMP authentication

Parameters

string $selected

showMassiveActionsSubForm()

showMassiveActionsSubForm(object  $ma) : boolean

Display form related to the massive action selected

Parameters

object $ma

MassiveAction instance

Returns

boolean

processMassiveActionsForOneItemtype()

processMassiveActionsForOneItemtype(object  $ma, object  $item, array  $ids) 

Execution code for massive action

Parameters

object $ma

MassiveAction instance

object $item

item on which execute the code

array $ids

list of ID on which execute the code