UNA
|
Public Member Functions | |
__construct ($sUnit, $sAction, $iObjectId, $iSender=false, $aExtras=array()) | |
alert () | |
getAlertsData () | |
Is needed to fire some alert(event) in one place and caught it with a handler somewhere else.
Related classes: BxDolAlertsResponse - abstract class for all response classes.
First Fire an alert
or
Second Add handler and caught alert(s) a. Create Response class by extending BxDolAlertsResponse class. It should process all necessary alerts which are passed to it. b. Register your handler in the database by adding it in sys_alerts_handlers
table. c. Associate necessary alerts with the handler by adding them in the sys_alerts
table.
BxDolAlerts::__construct | ( | $sUnit, | |
$sAction, | |||
$iObjectId, | |||
$iSender = false , |
|||
$aExtras = array() |
|||
) |
Constructor
string | $sType | - system type |
string | $sAction | - system action |
int | $iObjectId | - object id |
int | $iSenderId | - sender (action's author) profile id, if it is false - then currectly logged in profile id is used |
BxDolAlerts::alert | ( | ) |
Notifies the necessary handlers about the alert.
BxDolAlerts::getAlertsData | ( | ) |
Cache alerts and handlers.