Class

AdministratorAlert

Package: PHPBoost\Event Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Benoit SAUTEL ben.popeye@phpboost.com Version: PHPBoost 5.2 - last update: 2018 11 07 Since: PHPBoost 2.0 - 2008 08 27 Contributor: Julien BRISWALTER j1.seth@phpboost.com Contributor: Arnaud GENET elenwii@phpboost.com Located at: phpboost/event/AdministratorAlert.class.php

This class represents an alert which must be sent to the administrator. It allows to the module developers to handle the administrator alerts. The administrator alerts can be in the administration panel and can be used when you want to signal an important event to the administrator(s).

Event
Extended by AdministratorAlert
Methods summary
public
# __construct( )

Builds an AdministratorAlert object.

public
# build( integer $id, string $entitled, string $properties, string $fixing_url, integer $current_status, Date $creation_date, integer $id_in_module, string $identifier, string $type, integer $priority )

Builds an alert from its whole parameters.

public integer
# get_priority( )

Gets the priority of the alert.

public string
# get_properties( )

Gets the alert properties.

public
# set_priority( integer $priority )

Sets the priority of the alert.

public
# set_properties( string $properties )

Sets the properties of the alert.

public string
# get_priority_name( )

Gets the priority name. It's automatically translater to the user language, ready to be displayed.

Constants summary
integer ADMIN_ALERT_VERY_LOW_PRIORITY
# 1
integer ADMIN_ALERT_LOW_PRIORITY
# 2
integer ADMIN_ALERT_MEDIUM_PRIORITY
# 3
integer ADMIN_ALERT_HIGH_PRIORITY
# 4
integer ADMIN_ALERT_VERY_HIGH_PRIORITY
# 5
integer ADMIN_ALERT_STATUS_UNREAD
# Event::EVENT_STATUS_UNREAD
integer ADMIN_ALERT_STATUS_PROCESSED
# Event::EVENT_STATUS_PROCESSED
Annonces