Cheetah
ChFdbExport.php
Go to the documentation of this file.
1 <?php
2 
8 ch_import('ChWsbExport');
9 
10 class ChFdbExport extends ChWsbExport
11 {
12  protected function __construct($aSystem)
13  {
14  parent::__construct($aSystem);
15  $this->_aTables = array(
16  'ch_fdb_comments' => '`cmt_author_id` = {profile_id}',
17  'ch_fdb_comments_track' => '`cmt_rate_author_id` = {profile_id}',
18  'ch_fdb_entries' => '`author_id` = {profile_id}',
19  'ch_fdb_voting' => array(
20  'query' => "SELECT `v`.* FROM `ch_fdb_voting` AS `v` INNER JOIN `ch_fdb_entries` AS `m` ON (`m`.`id` = `v`.`fdb_id`) WHERE `m`.`author_id` = {profile_id}"),
21  'ch_fdb_voting_track' => array(
22  'query' => "SELECT `t`.`fdb_id`, 0, `t`.`fdb_date` FROM `ch_fdb_voting_track` AS `t` INNER JOIN `ch_fdb_entries` AS `m` ON (`m`.`id` = `t`.`fdb_id`) WHERE `m`.`author_id` = {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
ChFdbExport\__construct
__construct($aSystem)
Definition: ChFdbExport.php:12
ChFdbExport
Definition: ChFdbExport.php:11