PHP Class SlaLevel, glpi

Inheritance: extends RuleTicket
Afficher le fichier Open project: glpi-project/glpi Class Usage Examples

Méthodes publiques

Свойство Type Description
$rightname

Protected Properties

Свойство Type Description
$ruleactionclass
$rulecriteriaclass No criteria
$rules_id_field

Méthodes publiques

Méthode 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

Method Details

__construct() public méthode

Constructor
public __construct ( )

cleanDBonPurge() public méthode

public cleanDBonPurge ( )

displayTabContentForItem() static public méthode

static public displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate )
$item CommonGLPI

dropdownExecutionTime() static public méthode

Dropdown execution time for SLT
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
Résultat nothing

getActions() public méthode

public getActions ( )

getAlreadyUsedExecutionTime() static public méthode

Get already used execution time for a SLT
static public getAlreadyUsedExecutionTime ( $slts_id ) : array
$slts_id integer id of the SLT
Résultat array of already used execution times

getConditionsArray() static public méthode

static public getConditionsArray ( )

getCriterias() public méthode

See also: RuleTicket::getCriterias()
public getCriterias ( )

getFirstSltLevel() static public méthode

Get first level for a SLT
static public getFirstSltLevel ( $slts_id ) : id
$slts_id integer id of the SLT
Résultat id of the sla level : 0 if not exists

getForbiddenStandardMassiveAction() public méthode

getNextSltLevel() static public méthode

Get next level for a SLT
static public getNextSltLevel ( $slts_id, $slalevels_id ) : id
$slts_id integer id of the SLT
$slalevels_id integer id of the current SLT level
Résultat id of the sla level : 0 if not exists

getTabNameForItem() public méthode

public getTabNameForItem ( CommonGLPI $item, $withtemplate )
$item CommonGLPI

getTable() static public méthode

Temporary hack for this class in 0.84
static public getTable ( )

getTypeName() static public méthode

static public getTypeName ( $nb )

showForSLT() public méthode

public showForSLT ( SLT $slt )
$slt SLT SLT object

showForm() public méthode

Show the rule
public showForm ( $ID, $options = [] ) : nothing
$ID ID of the rule
$options array of possible options
Résultat nothing

Property Details

$rightname static_oe public_oe property

static public $rightname

$ruleactionclass protected_oe property

protected $ruleactionclass

$rulecriteriaclass protected_oe property

No criteria
protected $rulecriteriaclass

$rules_id_field protected_oe property

protected $rules_id_field