Cheetah
ChMbpResponse.php
Go to the documentation of this file.
1 <?php
2 
9 {
10  var $_oModule;
11 
12  function response($oAlert)
13  {
14  $sMethod = 'processAlert' . str_replace(' ', '', ucwords(str_replace(array('_', '-'), array(' ', ' '), $oAlert->sUnit . '_' . $oAlert->sAction)));
15  if(!method_exists($this, $sMethod))
16  return;
17 
18  $this->_oModule = ChWsbModule::getInstance('ChMbpModule');
19 
20  $this->$sMethod($oAlert);
21  }
22 
24  {
25  if($oAlert->aExtras['page_name'] != 'join')
26  return;
27 
28  if(!$this->_oModule->_oConfig->isDisableFreeJoin())
29  return;
30 
31  ch_import('PageJoin', $this->_oModule->_aModule);
32  $oPage = new ChMbpPageJoin($this->_oModule);
33 
34  $oAlert->aExtras['page_code'] = $oPage->getCode();
35  }
36 
38  {
39  if(!$this->_oModule->_oConfig->isDisableFreeJoin())
40  return;
41 
42  list($oAlert->aExtras['sCode']) = $this->_oModule->getSelectLevelBlock(true);
43  }
44 }
ChWsbAlertsResponse
Definition: ChWsbAlerts.php:127
ChWsbModule\getInstance
static getInstance($sClassName)
Definition: ChWsbModule.php:89
ChMbpPageJoin
Definition: ChMbpPageJoin.php:11
ChMbpResponse\processAlertSystemPageOutput
processAlertSystemPageOutput($oAlert)
Definition: ChMbpResponse.php:23
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
$oAlert
$oAlert
Definition: embed.php:15
php
$oPage
$oPage
Definition: search_home.php:83
ChMbpResponse
Definition: ChMbpResponse.php:9
ChMbpResponse\response
response($oAlert)
Definition: ChMbpResponse.php:12
ChMbpResponse\$_oModule
$_oModule
Definition: ChMbpResponse.php:10
ChMbpResponse\processAlertProfileShowJoinForm
processAlertProfileShowJoinForm($oAlert)
Definition: ChMbpResponse.php:37