PHP Класс SlaLevel, glpi

Наследование: extends RuleTicket
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$rightname

Защищенные свойства (Protected)

Свойство Тип Описание
$ruleactionclass
$rulecriteriaclass No criteria
$rules_id_field

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

Constructor
public __construct ( )

cleanDBonPurge() публичный Метод

public cleanDBonPurge ( )

displayTabContentForItem() статический публичный Метод

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

dropdownExecutionTime() статический публичный Метод

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
Результат nothing

getActions() публичный Метод

public getActions ( )

getAlreadyUsedExecutionTime() статический публичный Метод

Get already used execution time for a SLT
static public getAlreadyUsedExecutionTime ( $slts_id ) : array
$slts_id integer id of the SLT
Результат array of already used execution times

getConditionsArray() статический публичный Метод

static public getConditionsArray ( )

getCriterias() публичный Метод

См. также: RuleTicket::getCriterias()
public getCriterias ( )

getFirstSltLevel() статический публичный Метод

Get first level for a SLT
static public getFirstSltLevel ( $slts_id ) : id
$slts_id integer id of the SLT
Результат id of the sla level : 0 if not exists

getForbiddenStandardMassiveAction() публичный Метод

getNextSltLevel() статический публичный Метод

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
Результат id of the sla level : 0 if not exists

getTabNameForItem() публичный Метод

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

getTable() статический публичный Метод

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

getTypeName() статический публичный Метод

static public getTypeName ( $nb )

showForSLT() публичный Метод

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

showForm() публичный Метод

Show the rule
public showForm ( $ID, $options = [] ) : nothing
$ID ID of the rule
$options array of possible options
Результат nothing

Описание свойств

$rightname статическое публичное свойство

static public $rightname

$ruleactionclass защищенное свойство

protected $ruleactionclass

$rulecriteriaclass защищенное свойство

No criteria
protected $rulecriteriaclass

$rules_id_field защищенное свойство

protected $rules_id_field