Cheetah
ChPollResponse.php
Go to the documentation of this file.
1 <?php
2 
9 {
10  function response($o)
11  {
12  if($o->sUnit == 'profile') {
13  switch($o->sAction) {
14  case 'delete':
15  $oPoll = ChWsbModule::getInstance('ChPollModule');
16 
17  $aPolls = $oPoll->_oDb->getAllPolls(null, $o->iObject);
18  foreach($aPolls as $aPoll)
19  $oPoll->deletePoll($aPoll['id_poll']);
20  break;
21  }
22  }
23  }
24 }
ChWsbAlertsResponse
Definition: ChWsbAlerts.php:127
ChPollResponse
Definition: ChPollResponse.php:9
ChWsbModule\getInstance
static getInstance($sClassName)
Definition: ChWsbModule.php:89
php
ChPollResponse\response
response($o)
Definition: ChPollResponse.php:10
$oPoll
$oPoll
Definition: index.php:71
$o
$o
Definition: cmd.php:193
as
as
Definition: Filter.ExtractStyleBlocks.Escaping.txt:10