PHP Class Alert, glpi

Inheritance: extends MY_Controller
Show file Open project: glpi-project/glpi Class Usage Examples

Public Methods

Method 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 method

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

cleanDBonItemDelete() public method

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

clear() public method

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

displayLastAlert() static public method

static public displayLastAlert ( $itemtype, $items_id ) : nothing
$itemtype
$items_id
return nothing

dropdown() static public method

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

dropdownIntegerNever() static public method

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

dropdownYesNo() static public method

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

getAlertDate() static public method

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

prepareInputForAdd() public method

public prepareInputForAdd ( $input )