Cheetah
ChPollExport.php
Go to the documentation of this file.
1 <?php
2 
8 ch_import('ChWsbExport');
9 
11 {
12  protected function __construct($aSystem)
13  {
14  parent::__construct($aSystem);
15  $this->_aTables = array(
16  'ch_poll_cmts' => '`cmt_author_id` = {profile_id}',
17  'ch_poll_cmts_track' => '`cmt_rate_author_id` = {profile_id}',
18  'ch_poll_data' => '`id_profile` = {profile_id}',
19  'ch_poll_rating' => array(
20  'query' => "SELECT `f`.* FROM `ch_poll_rating` AS `f` INNER JOIN `ch_poll_data` AS `m` ON (`m`.`id_poll` = `f`.`id`) WHERE `m`.`id_profile` = {profile_id}"),
21  'ch_poll_voting_track' => array(
22  'query' => "SELECT `t`.`id`, 0, `t`.`date` FROM `ch_poll_voting_track` AS `t` INNER JOIN `ch_poll_data` AS `m` ON (`m`.`id_poll` = `t`.`id`) WHERE `m`.`id_profile` = {profile_id}"), // anonymize some data
23  );
24  }
25 }
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
ChWsbExport
Definition: ChWsbExport.php:29
php
ChPollExport\__construct
__construct($aSystem)
Definition: ChPollExport.php:12
ChPollExport
Definition: ChPollExport.php:11