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-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 ********************************************************************************/
39 $dictionary['EmailMarketing'] = array('table' => 'email_marketing'
44 'vname' => 'LBL_NAME',
50 'vname' => 'LBL_CREATED_BY',
57 'name' => 'date_entered',
58 'vname' => 'LBL_DATE_ENTERED',
64 'name' => 'date_modified',
65 'vname' => 'LBL_DATE_MODIFIED',
71 'name' => 'modified_user_id',
72 'rname' => 'user_name',
73 'id_name' => 'modified_user_id',
74 'vname' => 'LBL_MODIFIED_BY',
75 'type' => 'assigned_user_name',
82 'name' => 'created_by',
83 'rname' => 'user_name',
84 'id_name' => 'modified_user_id',
85 'vname' => 'LBL_CREATED_BY',
86 'type' => 'assigned_user_name',
94 'vname' => 'LBL_NAME',
97 'importable' => 'required',
99 'from_name' => //starting from 4.0 from_name is obsolete..replaced with inbound_email_id
101 'name' => 'from_name',
102 'vname' => 'LBL_FROM_NAME',
105 'importable' => 'required',
109 'name' => 'from_addr',
110 'vname' => 'LBL_FROM_ADDR',
113 'importable' => 'required',
117 'name' => 'reply_to_name',
118 'vname' => 'LBL_REPLY_NAME',
124 'name' => 'reply_to_addr',
125 'vname' => 'LBL_REPLY_ADDR',
129 'inbound_email_id' =>
131 'name' => 'inbound_email_id',
132 'vname' => 'LBL_FROM_MAILBOX',
138 'name' => 'date_start',
139 'vname' => 'LBL_DATE_START',
140 'type' => 'datetime',
141 'importable' => 'required',
146 'name' => 'template_id',
147 'vname' => 'LBL_TEMPLATE',
150 'importable' => 'required',
155 'vname' => 'LBL_STATUS',
159 'options' => 'email_marketing_status_dom',
160 'importable' => 'required',
164 'name' => 'campaign_id',
165 'vname' => 'LBL_CAMPAIGN_ID',
170 'all_prospect_lists' => array (
171 'name' => 'all_prospect_lists',
172 'vname' => 'LBL_ALL_PROSPECT_LISTS',
179 'name' => 'template_name',
181 'id_name' => 'template_id',
182 'vname' => 'LBL_TEMPLATE_NAME',
184 'table' => 'email_templates',
186 'module' => 'EmailTemplates',
187 'dbType' => 'varchar',
188 'link'=>'emailtemplate',
192 'prospect_list_name' =>
194 'name' => 'prospect_list_name',
195 'vname' => 'LBL_PROSPECT_LIST_NAME',
202 'prospectlists'=> array (
203 'name' => 'prospectlists',
205 'relationship' => 'email_marketing_prospect_lists',
208 'emailtemplate'=> array (
209 'name' => 'emailtemplate',
211 'relationship' => 'email_template_email_marketings',
216 array('name' =>'emmkpk', 'type' =>'primary', 'fields'=>array('id')),
217 array('name' =>'idx_emmkt_name', 'type'=>'index', 'fields'=>array('name')),
218 array('name' =>'idx_emmkit_del', 'type'=>'index', 'fields'=>array('deleted')),
220 'relationships' => array (
221 'email_template_email_marketings' => array('lhs_module'=> 'EmailTemplates', 'lhs_table'=> 'email_templates', 'lhs_key' => 'id',
222 'rhs_module'=> 'EmailMarketing', 'rhs_table'=> 'email_marketing', 'rhs_key' => 'template_id',
223 'relationship_type'=>'one-to-many'),