\PluginFusioninventoryInventoryRuleEntity

Manage entity rules for computer.

Summary

Methods
Properties
Constants
getTitle()
preProcessPreviewResults()
maxActionsCount()
executeActions()
getCriterias()
getActions()
displayAdditionalRuleCondition()
addMoreCriteria()
checkCriteria()
process()
$can_sort
$specific_parameters
$rightname
PATTERN_CIDR
PATTERN_NOT_CIDR
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

PATTERN_CIDR

PATTERN_CIDR

PATTERN_NOT_CIDR

PATTERN_NOT_CIDR

Properties

$can_sort

$can_sort : boolean

Set these rules can be sorted

Type

boolean

$specific_parameters

$specific_parameters : boolean

Set these rules don't have specific parameters

Type

boolean

$rightname

$rightname : string

The right name for this class

Type

string

Methods

getTitle()

getTitle() : string

Get name of this type by language of the user connected

Returns

string —

name of this type

preProcessPreviewResults()

preProcessPreviewResults(array  $output) : array

Make some changes before process review result

Parameters

array $output

Returns

array

maxActionsCount()

maxActionsCount() : integer

Define maximum number of actions possible in a rule

Returns

integer

executeActions()

executeActions(array  $output, array  $params) : array

Code execution of actions of the rule

Parameters

array $output
array $params

Returns

array

getCriterias()

getCriterias() : array

Get the criteria available for the rule

Returns

array

getActions()

getActions() : array

Get the actions available for the rule

Returns

array

displayAdditionalRuleCondition()

displayAdditionalRuleCondition(integer  $condition, string  $criteria, string  $name, string  $value, boolean  $test = FALSE) : boolean

Add additional rule conditions for criteria

Parameters

integer $condition
string $criteria
string $name
string $value
boolean $test

Returns

boolean

addMoreCriteria()

addMoreCriteria(string  $criterion = '') : array

Add more criteria

Parameters

string $criterion

Returns

array

checkCriteria()

checkCriteria(object  $criteria, array  $input) : boolean

Check the criteria

Parameters

object $criteria
array $input

Returns

boolean

process()

process(  $input,   $output,   $params,   $options = array()) : array

Process the rule

Parameters

$input
$output
$params
$options

Returns

array —

the output updated by actions. If rule matched add field _rule_process to return value