\PluginFusioninventoryIPRange

Manage the IP ranges for network discovery and network inventory.

Summary

Methods
Properties
Constants
canCreate()
getTypeName()
getComments()
getSearchOptions()
defineTabs()
displayTabContentForItem()
showForm()
checkip()
getIp2long()
post_purgeItem()
getSpecificMassiveActions()
$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

canCreate()

canCreate() : true

Check if can create an IP range

Returns

true

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

getComments()

getComments() : string

Get comments of the object

Returns

string —

comments in HTML format

getSearchOptions()

getSearchOptions() : array

Get search function for the class

Returns

array

defineTabs()

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

Define tabs to display on form page

Parameters

array $options

Returns

array —

containing the tabs name

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

showForm()

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

Display form

Parameters

integer $id
array $options

Returns

true

checkip()

checkip(array  $a_input) : boolean

Check if IP is valid

Parameters

array $a_input

array of IPs

Returns

boolean

getIp2long()

getIp2long(string  $ip) : integer

Get ip in long format

Parameters

string $ip

IP in format IPv4

Returns

integer —

$int

post_purgeItem()

post_purgeItem() 

After purge item, delete SNMP authentication linked to this ip range

getSpecificMassiveActions()

getSpecificMassiveActions(object|null  $checkitem = NULL) : array

Get the massive actions for this object

Parameters

object|null $checkitem

Returns

array —

list of actions