Constants

STATIC_GROUP

STATIC_GROUP

Define constant name of static group

DYNAMIC_GROUP

DYNAMIC_GROUP

Define constant name of dynamic group

Properties

$rightname

$rightname : string

The right name for this class

Type

string

$dohistory

$dohistory : boolean

We activate the history.

Type

boolean

$static_group_types

$static_group_types : \type

Define the array of itemtype allowed in static groups

Type

\type

Methods

__construct()

__construct() 

__contruct function used to define the 2 types of groups

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

defineTabs()

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

Define tabs to display on form page

Parameters

array $options

Returns

array —

containing the tabs name

getSpecificMassiveActions()

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

Get the massive actions for this object

Parameters

object|null $checkitem

Returns

array —

list of actions

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

title()

title() 

Display title of the page

showForm()

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

Display form

Parameters

integer $ID
array $options

Returns

true

getSearchOptions()

getSearchOptions() : array

Get search function for the class

Returns

array

isDynamicGroup()

isDynamicGroup() : boolean

Check if this group is a dynamic group or not

Returns

boolean

isStaticGroup()

isStaticGroup() : boolean

Check if this group is a static group or not

Returns

boolean

getSpecificValueToDisplay()

getSpecificValueToDisplay(string  $field, array  $values, array  $options = array()) : string

Get a specific value to display

Parameters

string $field
array $values
array $options

Returns

string

dropdownGroupType()

dropdownGroupType(string  $name = 'type', string  $value = 'STATIC') : string

Display dropdown to select dynamic of static group

Parameters

string $name
string $value

Returns

string

getSpecificValueToSelect()

getSpecificValueToSelect(string  $field, string  $name = '', string|array  $values = '', array  $options = array()) : string

Get specific value to select

Parameters

string $field
string $name
string|array $values
array $options

Returns

string

showCriteria()

showCriteria(object  $item, array  $p) 

Show criteria to search computers

Parameters

object $item

PluginFusioninventoryDeployGroup instance

array $p

getTargetsForGroup()

getTargetsForGroup(integer  $groups_id) : array

Get targets for the group

Parameters

integer $groups_id

id of the group

Returns

array —

list of computers

getSearchParamsAsAnArray()

getSearchParamsAsAnArray(object  $group, boolean  $check_post_values = FALSE, boolean  $getAll = FALSE) : array

Get search parameters as an array

Parameters

object $group

PluginFusioninventoryDeployGroup instance

boolean $check_post_values
boolean $getAll

Returns

array

cleanDBOnPurge()

cleanDBOnPurge() 

Clean when purge a deploy group