Cheetah
ChWsbAlertsResponseSystem.php
Go to the documentation of this file.
1 <?php
2 
8 ch_import('ChWsbAlerts');
9 
11 {
12  function __construct()
13  {
14  parent::__construct();
15  }
16 
17  function response($oAlert)
18  {
19  $sMethodName = '_process' . ucfirst($oAlert->sUnit) . str_replace(' ', '', ucwords(str_replace('_', ' ', $oAlert->sAction)));
20  if(method_exists($this, $sMethodName))
21  $this->$sMethodName($oAlert);
22  }
23 
25 }
ChWsbAlertsResponse
Definition: ChWsbAlerts.php:127
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
$oAlert
$oAlert
Definition: embed.php:15
php
ChWsbAlertsResponseSystem\response
response($oAlert)
Definition: ChWsbAlertsResponseSystem.php:17
ChWsbAlertsResponseSystem\__construct
__construct()
Definition: ChWsbAlertsResponseSystem.php:12
ChWsbAlertsResponseSystem\_processSystemBegin
_processSystemBegin($oAlert)
Definition: ChWsbAlertsResponseSystem.php:24
ChWsbAlertsResponseSystem
Definition: ChWsbAlertsResponseSystem.php:11