Cheetah
ChWallExport.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_wall_comments' => "`cmt_author_id` = {profile_id}",
17  'ch_wall_comments_track' => "`cmt_rate_author_id` = {profile_id}",
18  'ch_wall_events' => "`owner_id` = {profile_id} OR IF(SUBSTRING(`type`, 1, 11) = 'wall_common', `object_id` = {profile_id}, 0)",
19  'ch_wall_repost_track' => "`author_id` = {profile_id}",
20  'ch_wall_voting' => array(
21  'query' => "SELECT `v`.* FROM `ch_wall_voting` AS `v` INNER JOIN `ch_wall_events` AS `m` ON (`m`.`id` = `v`.`wall_id`) WHERE `owner_id` = {profile_id} OR IF(SUBSTRING(`type`, 1, 11) = 'wall_common', `object_id` = {profile_id}, 0)"),
22  'ch_wall_voting_track' => array(
23  'query' => "SELECT `t`.`wall_id`, 0, `t`.`wall_date` FROM `ch_wall_voting_track` AS `t` INNER JOIN `ch_wall_events` AS `m` ON (`m`.`id` = `t`.`wall_id`) WHERE `owner_id` = {profile_id} OR IF(SUBSTRING(`type`, 1, 11) = 'wall_common', `object_id` = {profile_id}, 0)"), // anonymize some data
24  );
25  }
26 }
ChWallExport
Definition: ChWallExport.php:11
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
ChWsbExport
Definition: ChWsbExport.php:29
php
ChWallExport\__construct
__construct($aSystem)
Definition: ChWallExport.php:12