PHP Class Alert, glpi

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

Méthodes publiques

Méthode Description
alertExists ( $itemtype = '', $items_id = '', $type = '' ) : integer
cleanDBonItemDelete ( $itemtype, $ID ) : boolean Clear all alerts for an item
clear ( $itemtype, $ID, $alert_type ) : nothing Clear all alerts of an alert type for an item
displayLastAlert ( $itemtype, $items_id ) : nothing
dropdown ( $options = [] )
dropdownIntegerNever ( $name, $value, $options = [] )
dropdownYesNo ( $options = [] )
getAlertDate ( $itemtype = '', $items_id = '', $type = '' )
prepareInputForAdd ( $input )

Method Details

alertExists() static public méthode

static public alertExists ( $itemtype = '', $items_id = '', $type = '' ) : integer
$itemtype (default '')
$items_id (default '')
$type (default '')
Résultat integer of false

cleanDBonItemDelete() public méthode

Clear all alerts for an item
public cleanDBonItemDelete ( $itemtype, $ID ) : boolean
$itemtype ID of the type to clear
$ID ID of the item to clear
Résultat boolean

clear() public méthode

Clear all alerts of an alert type for an item
public clear ( $itemtype, $ID, $alert_type ) : nothing
$itemtype ID of the type to clear
$ID ID of the item to clear
$alert_type ID of the alert type to clear
Résultat nothing

displayLastAlert() static public méthode

static public displayLastAlert ( $itemtype, $items_id ) : nothing
$itemtype
$items_id
Résultat nothing

dropdown() static public méthode

static public dropdown ( $options = [] )
$options array

dropdownIntegerNever() static public méthode

static public dropdownIntegerNever ( $name, $value, $options = [] )
$name
$value
$options array

dropdownYesNo() static public méthode

static public dropdownYesNo ( $options = [] )
$options array

getAlertDate() static public méthode

static public getAlertDate ( $itemtype = '', $items_id = '', $type = '' )
$itemtype (default '')
$items_id (default '')
$type (default '')

prepareInputForAdd() public méthode

public prepareInputForAdd ( $input )