Property | Type | Description | |
---|---|---|---|
$rightname |
Property | Type | Description | |
---|---|---|---|
$ruleactionclass | |||
$rulecriteriaclass | No criteria | ||
$rules_id_field |
Method | Description | |
---|---|---|
__construct ( ) | Constructor | |
cleanDBonPurge ( ) | ||
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
dropdownExecutionTime ( $name, $options = [] ) : nothing | Dropdown execution time for SLT | |
getActions ( ) | ||
getAlreadyUsedExecutionTime ( $slts_id ) : array | Get already used execution time for a SLT | |
getConditionsArray ( ) | ||
getCriterias ( ) | ||
getFirstSltLevel ( $slts_id ) : id | Get first level for a SLT | |
getForbiddenStandardMassiveAction ( ) | ||
getNextSltLevel ( $slts_id, $slalevels_id ) : id | Get next level for a SLT | |
getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
getTable ( ) | Temporary hack for this class in 0.84 | |
getTypeName ( $nb ) | ||
showForSLT ( SLT $slt ) | ||
showForm ( $ID, $options = [] ) : nothing | Show the rule |
static public displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
$item | CommonGLPI |
static public dropdownExecutionTime ( $name, $options = [] ) : nothing | ||
$name | string name of the select | |
$options | array of possible options: - value : default value - max_time : max time to use - used : already used values | |
return | nothing |
static public getAlreadyUsedExecutionTime ( $slts_id ) : array | ||
$slts_id | integer id of the SLT | |
return | array | of already used execution times |
static public getFirstSltLevel ( $slts_id ) : id | ||
$slts_id | integer id of the SLT | |
return | id | of the sla level : 0 if not exists |
static public getNextSltLevel ( $slts_id, $slalevels_id ) : id | ||
$slts_id | integer id of the SLT | |
$slalevels_id | integer id of the current SLT level | |
return | id | of the sla level : 0 if not exists |
public getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
$item | CommonGLPI |
public showForm ( $ID, $options = [] ) : nothing | ||
$ID | ID of the rule | |
$options | array of possible options | |
return | nothing |