2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 /*********************************************************************************
4 * SugarCRM is a customer relationship management program developed by
5 * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
7 * This program is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU Affero General Public License version 3 as published by the
9 * Free Software Foundation with the addition of the following permission added
10 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
11 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
12 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
14 * This program is distributed in the hope that it will be useful, but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
19 * You should have received a copy of the GNU Affero General Public License along with
20 * this program; if not, see http://www.gnu.org/licenses or write to the Free
21 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
25 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
27 * The interactive user interfaces in modified source and object code versions
28 * of this program must display Appropriate Legal Notices, as required under
29 * Section 5 of the GNU Affero General Public License version 3.
31 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
32 * these Appropriate Legal Notices must retain the display of the "Powered by
33 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
34 * technical reasons, the Appropriate Legal Notices must display the words
35 * "Powered by SugarCRM".
36 ********************************************************************************/
38 $dictionary['CampaignTracker'] = array('table' => 'campaign_trkrs',
39 'comment' => 'Maintains the Tracker URLs used in campaign emails',
48 'comment' => 'Unique identifier'
50 'tracker_name' => array (
51 'name' => 'tracker_name',
52 'vname' => 'LBL_TRACKER_NAME',
55 'comment' => 'The name of the campaign tracker'
57 'tracker_url' => array (
58 'name' => 'tracker_url',
59 'vname' => 'LBL_TRACKER_URL',
62 'default' => 'http://',
63 'comment' => 'The URL that represents the landing page when the tracker URL in the campaign email is clicked'
65 'tracker_key' => array (
66 'name' => 'tracker_key',
67 'vname' => 'LBL_TRACKER_KEY',
70 'auto_increment' => true,
72 'studio' => array('editview' => false),
73 'comment' => 'Internal key to uniquely identifier the tracker URL'
75 'campaign_id'=> array(
76 'name'=>'campaign_id',
77 'vname'=>'LBL_CAMPAIGN_ID',
81 'comment' => 'The ID of the campaign'
83 'date_entered' => array (
84 'name' => 'date_entered',
85 'vname' => 'LBL_DATE_ENTERED',
88 'comment' => 'Date record created'
90 'date_modified' => array (
91 'name' => 'date_modified',
92 'vname' => 'LBL_DATE_MODIFIED',
95 'comment' => 'Date record last modified'
97 'modified_user_id' => array (
98 'name' => 'modified_user_id',
99 'vname' => 'LBL_MODIFIED_USER_ID',
102 'comment' => 'User who last modified record'
104 'created_by' => array (
105 'name' => 'created_by',
106 'vname' => 'LBL_CREATED_BY',
107 'type' => 'assigned_user_name',
111 'comment' => 'User ID who created record'
113 'is_optout' => array (
114 'name' => 'is_optout',
115 'vname' => 'LBL_OPTOUT',
120 'comment' => 'Indicator whether tracker URL represents an opt-out link'
124 'vname' => 'LBL_DELETED',
129 'comment' => 'Record deletion indicator'
131 'campaign' => array (
132 'name' => 'campaign',
134 'relationship' => 'campaign_campaigntrakers',
136 'vname'=>'LBL_CAMPAIGN',
140 'relationships'=>array(
142 'campaign_campaigntrakers' => array(
143 'lhs_module'=> 'Campaigns',
144 'lhs_table'=> 'campaigns',
146 'rhs_module'=> 'CampaignTrackers',
147 'rhs_table'=> 'campaign_trkrs',
148 'rhs_key' => 'campaign_id',
149 'relationship_type'=>'one-to-many'
152 ,'indices' => array (
153 array('name' =>'campaign_trackepk', 'type' =>'primary', 'fields'=>array('id')),
154 array('name' => 'campaign_tracker_key_idx', 'type'=>'index', 'fields'=>array('tracker_key')),