PHP Class SlaLevel, glpi

Inheritance: extends RuleTicket
Mostrar archivo Open project: glpi-project/glpi Class Usage Examples

Public Properties

Property Type Description
$rightname

Protected Properties

Property Type Description
$ruleactionclass
$rulecriteriaclass No criteria
$rules_id_field

Public Methods

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

Method Details

__construct() public method

Constructor
public __construct ( )

cleanDBonPurge() public method

public cleanDBonPurge ( )

displayTabContentForItem() static public method

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

dropdownExecutionTime() static public method

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
return nothing

getActions() public method

public getActions ( )

getAlreadyUsedExecutionTime() static public method

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

getConditionsArray() static public method

static public getConditionsArray ( )

getCriterias() public method

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

getFirstSltLevel() static public method

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

getForbiddenStandardMassiveAction() public method

getNextSltLevel() static public method

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
return id of the sla level : 0 if not exists

getTabNameForItem() public method

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

getTable() static public method

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

getTypeName() static public method

static public getTypeName ( $nb )

showForSLT() public method

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

showForm() public method

Show the rule
public showForm ( $ID, $options = [] ) : nothing
$ID ID of the rule
$options array of possible options
return 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