2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 /*********************************************************************************
4 * SugarCRM Community Edition is a customer relationship management program developed by
5 * SugarCRM, Inc. Copyright (C) 2004-2012 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',
56 'reportable' => false,
58 'target_tracker_key' => array (
59 'name' => 'target_tracker_key',
60 'vname' => 'LBL_TARGET_TRACKER_KEY',
63 'comment' => 'Identifier of Tracker URL',
64 'reportable' => false,
66 'target_id' => array (
67 'name' => 'target_id',
68 'vname' => 'LBL_TARGET_ID',
71 'comment' => 'Identifier of target record',
72 'reportable' => false,
74 'target_type' => array (
75 'name' => 'target_type',
76 'vname' => 'LBL_TARGET_TYPE',
79 'comment' => 'Descriptor of the target record type (e.g., Contact, Lead)'
81 'activity_type' => array (
82 'name' => 'activity_type',
83 'vname' => 'LBL_ACTIVITY_TYPE',
85 'options'=>'campainglog_activity_type_dom',
87 'comment' => 'The activity that occurred (e.g., Viewed Message, Bounced, Opted out)'
89 'activity_date' => array (
90 'name' => 'activity_date',
91 'vname' => 'LBL_ACTIVITY_DATE',
93 'comment' => 'The date the activity occurred'
95 'related_id' => array (
96 'name' => 'related_id',
97 'vname' => 'LBL_RELATED_ID',
100 'reportable' => false,
102 'related_type' => array (
103 'name' => 'related_type',
104 'vname' => 'LBL_RELATED_TYPE',
108 'archived' => array (
109 'name' => 'archived',
110 'vname' => 'LBL_ARCHIVED',
114 'comment' => 'Indicates if item has been archived'
118 'vname' => 'LBL_HITS',
122 'comment' => 'Number of times the item has been invoked (e.g., multiple click-thrus)'
126 'vname' => 'LBL_LIST_ID',
128 'reportable' =>false,
130 'comment' => 'The target list from which item originated'
134 'vname' => 'LBL_DELETED',
137 'comment' => 'Record deletion indicator'
139 'recipient_name' => array(
140 'name' => 'recipient_name',
145 'recipient_email' => array(
146 'name' => 'recipient_email',
151 'marketing_name' => array(
152 'name' => 'marketing_name',
157 'campaign_name1' => array (
158 'name' => 'campaign_name1',
160 'id_name' => 'campaign_id',
161 'vname' => 'LBL_CAMPAIGN_NAME',
163 'table' => 'campaigns',
165 'module' => 'Campaigns',
166 'dbType' => 'varchar',
171 'campaign_name' => array(
172 'name' => 'campaign_name',
177 'campaign_objective' => array(
178 'name' => 'campaign_objective',
183 'campaign_content' => array(
184 'name' => 'campaign_content',
190 'name' => 'campaign',
192 'relationship' => 'campaign_campaignlog',
194 'vname'=> 'LBL_CAMPAIGNS',
196 'related_name'=>array (
197 'source'=>'function',
198 'function_name'=>'get_related_name',
199 'function_class'=>'CampaignLog',
200 'function_params'=> array('related_id', 'related_type'),
201 'function_params_source'=>'this', //valid values are 'parent' or 'this' default is parent.
203 'name'=>'related_name',
206 'date_modified' => array (
207 'name' => 'date_modified',
208 'vname' => 'LBL_DATE_MODIFIED',
209 'type' => 'datetime',
211 'more_information'=> array(
212 'name'=>'more_information',
213 'vname'=>'LBL_MORE_INFO',
217 'marketing_id' => array(
218 'name' => 'marketing_id',
219 'vname' => 'LBL_MARKETING_ID',
221 'reportable' =>false,
222 'comment' => 'ID of marketing email this entry is associated with',
224 'created_contact'=> array (
225 'name' => 'created_contact',
226 'vname' => 'LBL_CREATED_CONTACT',
228 'relationship' => 'campaignlog_contact',
231 'created_lead'=> array (
232 'name' => 'created_lead',
233 'vname' => 'LBL_CREATED_LEAD',
235 'relationship' => 'campaignlog_lead',
238 'created_opportunities'=> array (
239 'name' => 'created_opportunities',
240 'vname' => 'LBL_CREATED_OPPORTUNITY',
242 'relationship' => 'campaignlog_created_opportunities',
243 'source' => 'non-db',
245 'targeted_user' => array(
246 'name' => 'targeted_user',
247 'vname' => 'LBL_TARGETED_USER',
249 'relationship' => 'campaignlog_targeted_users',
250 'source' => 'non-db',
252 'sent_email' => array(
253 'name' => 'sent_email',
254 'vname' => 'LBL_SENT_EMAIL',
256 'relationship' => 'campaignlog_sent_emails',
257 'source' => 'non-db',
262 'name' =>'campaign_log_pk',
265 'fields'=>array('id')
268 'name' =>'idx_camp_tracker',
271 'fields'=>array('target_tracker_key')
275 'name' =>'idx_camp_campaign_id',
278 'fields'=>array('campaign_id')
282 'name' =>'idx_camp_more_info',
285 'fields'=>array('more_information')
288 'name' =>'idx_target_id',
291 'fields'=>array('target_id')
294 'name' =>'idx_target_id_deleted',
297 'fields'=>array('target_id','deleted')
302 'relationships' => array (
303 'campaignlog_contact' => array( 'lhs_module'=> 'CampaignLog',
304 'lhs_table'=> 'campaign_log',
305 'lhs_key' => 'related_id',
306 'rhs_module'=> 'Contacts',
307 'rhs_table'=> 'contacts',
309 'relationship_type'=>'one-to-many'),
310 'campaignlog_lead' => array('lhs_module'=> 'CampaignLog',
311 'lhs_table'=> 'campaign_log',
312 'lhs_key' => 'related_id',
313 'rhs_module'=> 'Leads',
314 'rhs_table'=> 'leads',
316 'relationship_type'=>'one-to-many'),
317 'campaignlog_created_opportunities' => array(
318 'lhs_module'=> 'CampaignLog',
319 'lhs_table'=> 'campaign_log',
320 'lhs_key' => 'related_id',
321 'rhs_module'=> 'Opportunities',
322 'rhs_table'=> 'opportunities',
324 'relationship_type'=>'one-to-many'
326 'campaignlog_targeted_users' => array(
327 'lhs_module'=> 'CampaignLog',
328 'lhs_table'=> 'campaign_log',
329 'lhs_key' => 'target_id',
330 'rhs_module'=> 'Users',
331 'rhs_table'=> 'users',
333 'relationship_type'=>'one-to-many'
335 'campaignlog_sent_emails' => array(
336 'lhs_module'=> 'CampaignLog',
337 'lhs_table'=> 'campaign_log',
338 'lhs_key' => 'related_id',
339 'rhs_module'=> 'Emails',
340 'rhs_table'=> 'emails',
342 'relationship_type'=>'one-to-many'