Cheetah
ChArlExport.php
Go to the documentation of this file.
1 <?php
2 
8 ch_import('ChWsbExport');
9 
10 class ChArlExport extends ChWsbExport
11 {
12  protected function __construct($aSystem)
13  {
14  parent::__construct($aSystem);
15  $this->_aTables = array(
16  'ch_arl_comments' => '`cmt_author_id` = {profile_id}',
17  'ch_arl_comments_track' => '`cmt_rate_author_id` = {profile_id}',
18  'ch_arl_entries' => '`author_id` = {profile_id}',
19  'ch_arl_views_track' => array(
20  'query' => "SELECT `t`.`id`, IF(`t`.`viewer` = {profile_id}, `t`.`viewer`, 0), IF(`t`.`viewer` = {profile_id}, `t`.`ip`, 0), `t`.`ts` FROM `ch_arl_views_track` AS `t` INNER JOIN `ch_arl_entries` AS `m` ON (`m`.`id` = `t`.`id`) WHERE `m`.`author_id` = {profile_id} OR `t`.`viewer` = {profile_id}"), // anonymize some data
21  'ch_arl_voting' => array(
22  'query' => "SELECT `v`.* FROM `ch_arl_voting` AS `v` INNER JOIN `ch_arl_entries` AS `m` ON (`m`.`id` = `v`.`arl_id`) WHERE `m`.`author_id` = {profile_id}"),
23  'ch_arl_voting_track' => array(
24  'query' => "SELECT `t`.`arl_id`, 0, `t`.`arl_date` FROM `ch_arl_voting_track` AS `t` INNER JOIN `ch_arl_entries` AS `m` ON (`m`.`id` = `t`.`arl_id`) WHERE `m`.`author_id` = {profile_id}"), // anonymize some data
25  );
26  }
27 }
ChArlExport\__construct
__construct($aSystem)
Definition: ChArlExport.php:12
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
ChWsbExport
Definition: ChWsbExport.php:29
php
ChArlExport
Definition: ChArlExport.php:11