Cheetah
ChWsbConnectAlerts.php
Go to the documentation of this file.
1 <?php
2 
9 {
10  var $oModule;
11 
12  function response($oAlert)
13  {
14  if($o->sUnit == 'system') {
15  switch($o->sAction) {
16  case 'join_after_payment';
17  $this->oModule->processJoinAfterPayment($o);
18  break;
19  }
20  }
21 
22  if ( $o -> sUnit == 'profile' ) {
23  switch ( $o -> sAction ) {
24  case 'join':
25  ch_import('ChWsbSession');
26  $oSession = ChWsbSession::getInstance();
27 
28  $iRemoteProfileId = $oSession -> getValue($this -> oModule -> _oConfig -> sSessionUid);
29 
30  if($iRemoteProfileId) {
31  $oSession -> unsetValue($this -> oModule -> _oConfig -> sSessionUid);
32 
33  // save remote profile id
34  $this -> oModule -> _oDb -> saveRemoteId($o -> iObject, $iRemoteProfileId);
35  }
36  break;
37 
38  case 'delete':
39  // remove remote account
40  $this -> oModule -> _oDb -> deleteRemoteAccount($o -> iObject);
41  break;
42  }
43  }
44  }
45 }
ChWsbAlertsResponse
Definition: ChWsbAlerts.php:127
ChWsbConnectAlerts\$oModule
$oModule
Definition: ChWsbConnectAlerts.php:10
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
$oAlert
$oAlert
Definition: embed.php:15
php
getValue
getValue($sQuery)
Definition: db.inc.php:59
ChWsbConnectAlerts
Definition: ChWsbConnectAlerts.php:9
ChWsbSession\getInstance
static getInstance()
Definition: ChWsbSession.php:28
ChWsbConnectAlerts\response
response($oAlert)
Definition: ChWsbConnectAlerts.php:12
$o
$o
Definition: cmd.php:193