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['CampaignLog'] = array ('audited'=>false,
39 'comment' => 'Tracks items of interest that occurred after you send an email campaign',
40 'table' => 'campaign_log',
49 'comment' => 'Unique identifier'
51 'campaign_id' => array (
52 'name' => 'campaign_id',
53 'vname' => 'LBL_CAMPAIGN_ID',
55 'comment' => 'Campaign identifier'
57 'target_tracker_key' => array (
58 'name' => 'target_tracker_key',
59 'vname' => 'LBL_TARGET_TRACKER_KEY',
62 'comment' => 'Identifier of Tracker URL'
64 'target_id' => array (
65 'name' => 'target_id',
66 'vname' => 'LBL_TARGET_ID',
69 'comment' => 'Identifier of target record'
71 'target_type' => array (
72 'name' => 'target_type',
73 'vname' => 'LBL_TARGET_TYPE',
76 'comment' => 'Descriptor of the target record type (e.g., Contact, Lead)'
78 'activity_type' => array (
79 'name' => 'activity_type',
80 'vname' => 'LBL_ACTIVITY_TYPE',
82 'options'=>'campainglog_activity_type_dom',
84 'comment' => 'The activity that occurred (e.g., Viewed Message, Bounced, Opted out)'
86 'activity_date' => array (
87 'name' => 'activity_date',
88 'vname' => 'LBL_ACTIVITY_DATE',
90 'comment' => 'The date the activity occurred'
92 'related_id' => array (
93 'name' => 'related_id',
94 'vname' => 'LBL_RELATED_ID',
98 'related_type' => array (
99 'name' => 'related_type',
100 'vname' => 'LBL_RELATED_TYPE',
104 'archived' => array (
105 'name' => 'archived',
106 'vname' => 'LBL_ARCHIVED',
110 'comment' => 'Indicates if item has been archived'
114 'vname' => 'LBL_HITS',
118 'comment' => 'Number of times the item has been invoked (e.g., multiple click-thrus)'
122 'vname' => 'LBL_LIST_ID',
124 'reportable' =>false,
126 'comment' => 'The target list from which item originated'
130 'vname' => 'LBL_DELETED',
133 'comment' => 'Record deletion indicator'
135 'recipient_name' => array(
136 'name' => 'recipient_name',
141 'recipient_email' => array(
142 'name' => 'recipient_email',
147 'marketing_name' => array(
148 'name' => 'marketing_name',
153 'campaign_name1' => array (
154 'name' => 'campaign_name1',
156 'id_name' => 'campaign_id',
157 'vname' => 'LBL_CAMPAIGN_NAME',
159 'table' => 'campaigns',
161 'module' => 'Campaigns',
162 'dbType' => 'varchar',
167 'campaign_name' => array(
168 'name' => 'campaign_name',
173 'campaign_objective' => array(
174 'name' => 'campaign_objective',
179 'campaign_content' => array(
180 'name' => 'campaign_content',
186 'name' => 'campaign',
188 'relationship' => 'campaign_campaignlog',
190 'vname'=> 'LBL_CAMPAIGNS',
192 'related_name'=>array (
193 'source'=>'function',
194 'function_name'=>'get_related_name',
195 'function_class'=>'CampaignLog',
196 'function_params'=> array('related_id', 'related_type'),
197 'function_params_source'=>'this', //valid values are 'parent' or 'this' default is parent.
199 'name'=>'related_name',
202 'date_modified' => array (
203 'name' => 'date_modified',
204 'vname' => 'LBL_DATE_MODIFIED',
205 'type' => 'datetime',
207 'more_information'=> array(
208 'name'=>'more_information',
209 'vname'=>'LBL_MORE_INFO',
213 'marketing_id' => array(
214 'name' => 'marketing_id',
215 'vname' => 'LBL_MARKETING_ID',
217 'reportable' =>false,
218 'comment' => 'ID of marketing email this entry is associated with',
220 'created_contact'=> array (
221 'name' => 'created_contact',
222 'vname' => 'LBL_CREATED_CONTACT',
224 'relationship' => 'campaignlog_contact',
227 'created_lead'=> array (
228 'name' => 'created_lead',
229 'vname' => 'LBL_CREATED_LEAD',
231 'relationship' => 'campaignlog_lead',
237 'name' =>'campaign_log_pk',
240 'fields'=>array('id')
243 'name' =>'idx_camp_tracker',
246 'fields'=>array('target_tracker_key')
250 'name' =>'idx_camp_campaign_id',
253 'fields'=>array('campaign_id')
257 'name' =>'idx_camp_more_info',
260 'fields'=>array('more_information')
263 'relationships' => array (
264 'campaignlog_contact' => array( 'lhs_module'=> 'CampaignLog',
265 'lhs_table'=> 'campaign_log',
266 'lhs_key' => 'related_id',
267 'rhs_module'=> 'Contacts',
268 'rhs_table'=> 'contacts',
270 'relationship_type'=>'one-to-many'),
271 'campaignlog_lead' => array('lhs_module'=> 'CampaignLog',
272 'lhs_table'=> 'campaign_log',
273 'lhs_key' => 'related_id',
274 'rhs_module'=> 'Leads',
275 'rhs_table'=> 'leads',
277 'relationship_type'=>'one-to-many'),