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['ProspectList'] = array (
39 'table' => 'prospect_lists',
40 'unified_search' => true,
41 'full_text_search' => true,
52 'vname' => 'LBL_NAME',
55 'importable' => 'required',
56 'unified_search' => true,
57 'full_text_search' => array('boost' => 3),
59 'list_type' => array (
60 'name' => 'list_type',
61 'vname' => 'LBL_TYPE',
63 'options' => 'prospect_list_type_dom',
65 'importable' => 'required',
67 'date_entered' => array (
68 'name' => 'date_entered',
69 'vname' => 'LBL_DATE_ENTERED',
72 'date_modified' => array (
73 'name' => 'date_modified',
74 'vname' => 'LBL_DATE_MODIFIED',
77 'modified_user_id' => array (
78 'name' => 'modified_user_id',
79 'rname' => 'user_name',
80 'id_name' => 'modified_user_id',
81 'vname' => 'LBL_MODIFIED',
82 'type' => 'assigned_user_name',
83 'table' => 'modified_user_id_users',
88 'modified_by_name' => array (
89 'name' => 'modified_by_name',
90 'vname' => 'LBL_MODIFIED',
92 'reportable' => false,
95 'id_name' => 'modified_user_id',
97 'duplicate_merge' => 'disabled',
99 'created_by' => array (
100 'name' => 'created_by',
101 'rname' => 'user_name',
102 'id_name' => 'created_by',
103 'vname' => 'LBL_CREATED',
104 'type' => 'assigned_user_name',
105 'table' => 'created_by_users',
109 'created_by_name' => array (
110 'name' => 'created_by_name',
111 'vname' => 'LBL_CREATED',
113 'reportable' => false,
114 'source' => 'non-db',
116 'id_name' => 'created_by',
118 'duplicate_merge' => 'disabled',
122 'vname' => 'LBL_CREATED_BY',
127 'description' => array (
128 'name' => 'description',
129 'vname' => 'LBL_DESCRIPTION',
132 'domain_name' => array (
133 'name' => 'domain_name',
134 'vname' => 'LBL_DOMAIN_NAME',
140 'name' => 'entry_count',
143 'vname'=>'LBL_LIST_ENTRIES',
147 'name' => 'prospects',
149 'relationship' => 'prospect_list_prospects',
154 'name' => 'contacts',
156 'relationship' => 'prospect_list_contacts',
163 'relationship' => 'prospect_list_leads',
168 'name' => 'accounts',
170 'relationship' => 'prospect_list_accounts',
173 'campaigns'=> array (
174 'name' => 'campaigns',
176 'relationship' => 'prospect_list_campaigns',
183 'relationship' => 'prospect_list_users',
186 'email_marketing'=> array (
187 'name' => 'email_marketing',
189 'relationship' => 'email_marketing_prospect_lists',
192 'marketing_id' => array (
193 'name' => 'marketing_id',
194 'vname' => 'LBL_MARKETING_ID',
199 'marketing_name' => array (
200 'name' => 'marketing_name',
201 'vname' => 'LBL_MARKETING_NAME',
210 'name' =>'prospectlistsspk',
212 'fields'=>array('id')
215 'name' =>'idx_prospect_list_name',
217 'fields'=>array('name')
220 'relationships'=>array(
221 'prospectlists_assigned_user' =>
222 array('lhs_module'=> 'Users', 'lhs_table'=> 'users', 'lhs_key' => 'id',
223 'rhs_module'=> 'prospectlists' , 'rhs_table'=> 'prospect_lists', 'rhs_key' => 'assigned_user_id',
224 'relationship_type'=>'one-to-many')
228 VardefManager::createVardef('ProspectLists','ProspectList', array(