Cheetah
ChWsbExportProfile.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  'Profiles' => '`ID` = {profile_id}',
17  'sys_acl_actions_track' => '`IDMember` = {profile_id}',
18  'sys_acl_levels_members' => '`IDMember` = {profile_id}',
19  'sys_admin_ban_list' => '`ProfID` = {profile_id}',
20  'sys_albums' => '`Owner` = {profile_id}',
21  'sys_albums_objects' => array(
22  'query' => "SELECT `o`.* FROM `sys_albums_objects` AS `o` INNER JOIN `sys_albums` AS `a` ON (`o`.`id_album` = `a`.`ID`) WHERE `a`.`Owner` = {profile_id}"),
23  'sys_antispam_block_log' => '`member_id` = {profile_id}',
24  'sys_block_list' => '`Profile` = {profile_id}',
25  'sys_categories' => '`Owner` = {profile_id}',
26  'sys_cmts_profile' => '`cmt_author_id` = {profile_id}',
27  'sys_cmts_track' => '`cmt_rate_author_id` = {profile_id}',
28  'sys_fave_list' => '`Profile` = {profile_id} OR `ID` = {profile_id}',
29  'sys_friend_list' => '`Profile` = {profile_id} OR `ID` = {profile_id}',
30  'sys_greetings' => '`Profile` = {profile_id} OR `ID` = {profile_id}',
31  'sys_ip_members_visits' => '`MemberID` = {profile_id}',
32  'sys_messages' => '`Recipient` = {profile_id} OR `Sender` = {profile_id}',
33  'sys_privacy_defaults' => '`owner_id` = {profile_id}',
34  'sys_privacy_groups' => '`owner_id` = {profile_id}',
35  'sys_privacy_members' => array(
36  'query' => "SELECT `m`.* FROM `sys_privacy_members` AS `m` INNER JOIN `sys_privacy_groups` AS `g` ON (`g`.`id` = `m`.`group_id`) WHERE `g`.`owner_id` = {profile_id}"),
37  'sys_profiles_match' => '`profile_id` = {profile_id}',
38  'sys_profiles_match_mails' => '`profile_id` = {profile_id}',
39  'sys_profile_rating' => '`pr_id` = {profile_id}',
40  'sys_profile_views_track' => array(
41  'query' => "SELECT `t`.`id`, IF(`t`.`viewer` = {profile_id}, `t`.`viewer`, 0), IF(`t`.`viewer` = {profile_id}, `t`.`ip`, 0), `t`.`ts` FROM `sys_profile_views_track` AS `t` WHERE `t`.`id` = {profile_id} OR `t`.`viewer` = {profile_id}"), // anonymize some data
42  'sys_profile_voting_track' => array(
43  'query' => "SELECT `pr_id`, 0, `pr_date` FROM `sys_profile_voting_track` WHERE `pr_id` = {profile_id}"), // anonymize some data
44  'sys_sbs_entries' => '`subscriber_id` = {profile_id}',
45  'sys_tags' => "`Type` = 'profile' AND `ObjID` = {profile_id}",
46  );
47  }
48 }
ChWsbExportProfile\__construct
__construct($aSystem)
Definition: ChWsbExportProfile.php:12
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
ChWsbExport
Definition: ChWsbExport.php:29
php
ChWsbExportProfile
Definition: ChWsbExportProfile.php:11