Cheetah
ChSoundsExport.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_sounds_cmts' => '`cmt_author_id` = {profile_id}',
17  'ch_sounds_cmts_albums' => '`cmt_author_id` = {profile_id}',
18  'ch_sounds_favorites' => '`Profile` = {profile_id}',
19  'ch_sounds_rating' => array(
20  'query' => "SELECT `r`.* FROM `ch_sounds_rating` AS `r` INNER JOIN `RayMp3Files` AS `m` ON (`m`.`ID` = `r`.`gal_id`) WHERE `m`.`Owner` = {profile_id}"),
21  'ch_sounds_views_track' => array(
22  'query' => "SELECT `t`.`id`, IF(`t`.`viewer` = {profile_id}, `t`.`viewer`, 0), IF(`t`.`viewer` = {profile_id}, `t`.`ip`, 0), `t`.`ts` FROM `ch_sounds_views_track` AS `t` INNER JOIN `RayMp3Files` AS `m` ON (`m`.`ID` = `t`.`id`) WHERE `m`.`Owner` = {profile_id} OR `t`.`viewer` = {profile_id}"), // anonymize some data
23  'ch_sounds_voting_track' => array(
24  'query' => "SELECT `t`.`gal_id`, 0, `t`.`gal_date` FROM `ch_sounds_voting_track` AS `t` INNER JOIN `RayMp3Files` AS `m` ON (`m`.`ID` = `t`.`gal_id`) WHERE `m`.`Owner` = {profile_id}"), // anonymize some data
25  );
26  }
27 }
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
ChSoundsExport
Definition: ChSoundsExport.php:11
ChWsbExport
Definition: ChWsbExport.php:29
php
ChSoundsExport\__construct
__construct($aSystem)
Definition: ChSoundsExport.php:12