Alert/Handler/Hooks engine.
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.
Example of usage:
First Fire an alert
$oZ =
new BxDolAlerts(
'unit_name',
'action',
'object_id',
'sender_id', array(
'of_extra_params'));
$oZ->alert();
Definition BxDolAlerts.php:39
or
bx_alert(
'unit_name',
'action',
'object_id',
'sender_id', [
'extra',
'params']);
bx_alert($sUnit, $sAction, $iObjectId, $iSender=false, $aExtras=array())
Definition utils.inc.php:1872
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.