|
Cheetah
|
Public Member Functions | |
| __construct ($sUnit, $sAction, $iObjectId, $iSender=0, $aExtras=array()) | |
| alert () | |
Static Public Member Functions | |
| static | cache () |
Public Attributes | |
| $sUnit | |
| $sAction | |
| $iObject | |
| $iSender | |
| $aExtras | |
| $_aAlerts | |
| $_aHandlers | |
This work, "Cheetah - https://www.cheetahwsb.com", is a derivative of "Dolphin Pro V7.4.2" by BoonEx Pty Limited - https://www.boonex.com/, used under CC-BY. "Cheetah" is licensed under CC-BY by Dean J. Bassett Jr. CC-BY License - http://creativecommons.org/licenses/by/3.0/ Alert/Handler engine.
Is needed to fire some alert(event) in one place and caught it with a handler somewhere else.
Related classes: ChWsbAlertsResponse - abstract class for all response classes. ChWsbAlertsResponseUser - response class to process standard profile related alerts.
Example of usage:
ch_import('ChWsbAlerts'); $oZ = new ChWsbAlerts('unit_name', 'action', 'object_id', 'sender_id', 'extra_params'); $oZ->alert();
sys_alerts_handlers table. c. Associate necessary alerts with the handler by adding them in the sys_alerts table.Alerts: no alerts available
Definition at line 38 of file ChWsbAlerts.php.
| ChWsbAlerts::__construct | ( | $sUnit, | |
| $sAction, | |||
| $iObjectId, | |||
$iSender = 0, |
|||
$aExtras = array() |
|||
| ) |
Constructor
| string | $sType | - system type |
| string | $sAction | - system action |
| int | $iObjectId | - object id |
| int | $iSenderId | - sender (action's author) id |
Definition at line 56 of file ChWsbAlerts.php.
| ChWsbAlerts::alert | ( | ) |
Notifies the necessary handlers about the alert.
Definition at line 79 of file ChWsbAlerts.php.
|
static |
Cache alerts and handlers.
Definition at line 106 of file ChWsbAlerts.php.
| ChWsbAlerts::$_aAlerts |
Definition at line 46 of file ChWsbAlerts.php.
| ChWsbAlerts::$_aHandlers |
Definition at line 47 of file ChWsbAlerts.php.
| ChWsbAlerts::$aExtras |
Definition at line 44 of file ChWsbAlerts.php.
| ChWsbAlerts::$iObject |
Definition at line 42 of file ChWsbAlerts.php.
| ChWsbAlerts::$iSender |
Definition at line 43 of file ChWsbAlerts.php.
| ChWsbAlerts::$sAction |
Definition at line 41 of file ChWsbAlerts.php.
| ChWsbAlerts::$sUnit |
Definition at line 40 of file ChWsbAlerts.php.