Class RuleCollection
Common DataBase Table Manager Class - Persistent Object
- CommonGLPI
-
CommonDBTM
-
RuleCollection
Direct known subclasses
RuleAssetCollection, RuleDictionnaryDropdownCollection, RuleDictionnaryPrinterCollection, RuleDictionnarySoftwareCollection, RuleImportComputerCollection, RuleImportEntityCollection, RuleMailCollectorCollection, RuleRightCollection, RuleSoftwareCategoryCollection, RuleTicketCollectionIndirect known subclasses
RuleDictionnaryComputerModelCollection, RuleDictionnaryComputerTypeCollection, RuleDictionnaryOperatingSystemVersionCollection, RuleDictionnaryPeripheralModelCollection, RuleDictionnaryPeripheralTypeCollection, RuleDictionnaryPhoneModelCollection, RuleDictionnaryPhoneTypeCollection, RuleDictionnaryPrinterModelCollection, RuleDictionnaryPrinterTypeCollection, RuleDictionnaryManufacturerCollection, RuleDictionnaryMonitorModelCollection, RuleDictionnaryMonitorTypeCollection, RuleDictionnaryNetworkEquipmentModelCollection, RuleDictionnaryNetworkEquipmentTypeCollection, RuleDictionnaryOperatingSystemArchitectureCollection, RuleDictionnaryOperatingSystemCollection, RuleDictionnaryOperatingSystemServicePackCollection
public static
string
|
|
public
|
|
public
|
|
public
boolean
|
|
public
:
|
#
getCollectionSize( $recursive = true, $condition = 0 )
Get Collection Size : retrieve the number of rules |
public
|
|
public
array
|
|
public
|
#
getCollectionPart( $options = [] )
Get Collection Part : retrieve descriptions of a range of rules |
public
|
#
getCollectionDatas( $retrieve_criteria = 0, $retrieve_action = 0, $condition = 0 )
Get Collection Datas : retrieve descriptions and rules |
public
|
|
public
|
|
public
true
|
#
warningBeforeReplayRulesOnExistingDB( $target )
Is a confirmation needed before replay on DB ? If needed need to send 'replay_confirm' in POST |
public
-1
|
#
replayRulesOnExistingDB( $offset = 0, $maxtime = 0, $items = [], $params = [] )
Replay Collection on DB |
public
Title
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
nothing
|
|
public
nothing
|
|
public
|
#
changeRuleOrder( $ID, $action, $condition = 0 )
Modify rule's ranking and automatically reorder all rules |
public
true
|
|
public
true
|
|
public static
nothing
|
|
public
true
|
|
public static
nothing,
|
|
public static
nothing
|
|
public static
true
|
|
public static
true
|
#
previewImportRules( )
Print a form to inform user when conflicts appear during the import of rules from a xml file |
public static
true
|
|
public
the
|
#
processAllRules( input $input = [], output $output = [], params $params = [], options $options = [] )
Process all the rules collection |
public
|
#
showRulesEnginePreviewCriteriasForm( $target, array $values, $condition = 0 )
Show form displaying results for rule collection preview |
public
the
|
#
testAllRules( input $input = [], output $output = [], params $params = [], $condition = 0 )
Test all the rules collection |
public
the
|
|
public
the
|
#
prepareInputDataForProcessWithPlugins( $input, $params )
Prepare input datas for the rules collection, also using plugins values |
public
the
|
|
public
|
#
showRulesEnginePreviewResultsForm( $target, array $input, $condition = 0 )
Show form displaying results for rule engine preview |
public
cleaned
|
#
cleanTestOutputCriterias( array $output )
Unset criterias from the rule's ouput results (begins by _) |
public
cleaned
|
|
public
|
|
public
nothing
|
|
public static
the
|
#
getClassByType( $itemtype, $check_dictionnary_type = false )
Get rulecollection classname by giving his itemtype |
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
array
|
|
public
string
|
|
public static
boolean
|
#
displayTabContentForItem(
show Tab content |
public static
array
|
public
|
$sub_type
|
|
public
boolean
|
$stop_on_first_match
|
#
false
|
public
string
|
$orderby
|
#
"ranking"
|
public
boolean
|
$use_output_rule_process_as_next_input
|
#
false
|
public
boolean
|
$can_replay_rules
|
#
false
|
public
|
$RuleList
|
#
null
|
public
string
|
$menu_type
|
#
"rule"
|
public
string
|
$menu_option
|
#
""
|
public
integer
|
$entity
|
#
0
|
public static
string
|
$rightname
Rightname used to check rights to do actions on item. |
#
'config'
|
public
string
|
$taborientation
Tab orientation : horizontal or vertical. |
#
'horizontal'
|
$displaylist,
$othertabs,
$showdebug,
$type
|