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['ProspectList'] = array (
39 'table' => 'prospect_lists',
40 'unified_search' => true,
51 'vname' => 'LBL_NAME',
54 'importable' => 'required',
55 'unified_search' => true,
57 'list_type' => array (
58 'name' => 'list_type',
59 'vname' => 'LBL_TYPE',
61 'options' => 'prospect_list_type_dom',
63 'importable' => 'required',
65 'date_entered' => array (
66 'name' => 'date_entered',
67 'vname' => 'LBL_DATE_ENTERED',
70 'date_modified' => array (
71 'name' => 'date_modified',
72 'vname' => 'LBL_DATE_MODIFIED',
75 'modified_user_id' => array (
76 'name' => 'modified_user_id',
77 'rname' => 'user_name',
78 'id_name' => 'modified_user_id',
79 'vname' => 'LBL_MODIFIED',
80 'type' => 'assigned_user_name',
81 'table' => 'modified_user_id_users',
86 'modified_by_name' => array (
87 'name' => 'modified_by_name',
88 'vname' => 'LBL_MODIFIED',
90 'reportable' => false,
93 'id_name' => 'modified_user_id',
95 'duplicate_merge' => 'disabled',
97 'created_by' => array (
98 'name' => 'created_by',
99 'rname' => 'user_name',
100 'id_name' => 'created_by',
101 'vname' => 'LBL_CREATED',
102 'type' => 'assigned_user_name',
103 'table' => 'created_by_users',
107 'created_by_name' => array (
108 'name' => 'created_by_name',
109 'vname' => 'LBL_CREATED',
111 'reportable' => false,
112 'source' => 'non-db',
114 'id_name' => 'created_by',
116 'duplicate_merge' => 'disabled',
120 'vname' => 'LBL_CREATED_BY',
125 'description' => array (
126 'name' => 'description',
127 'vname' => 'LBL_DESCRIPTION',
130 'domain_name' => array (
131 'name' => 'domain_name',
132 'vname' => 'LBL_DOMAIN_NAME',
138 'name' => 'entry_count',
141 'vname'=>'LBL_LIST_ENTRIES',
145 'name' => 'prospects',
147 'relationship' => 'prospect_list_prospects',
152 'name' => 'contacts',
154 'relationship' => 'prospect_list_contacts',
161 'relationship' => 'prospect_list_leads',
166 'name' => 'accounts',
168 'relationship' => 'prospect_list_accounts',
171 'campaigns'=> array (
172 'name' => 'campaigns',
174 'relationship' => 'prospect_list_campaigns',
181 'relationship' => 'prospect_list_users',
184 'marketing_id' => array (
185 'name' => 'marketing_id',
186 'vname' => 'LBL_MARKETING_ID',
191 'marketing_name' => array (
192 'name' => 'marketing_name',
193 'vname' => 'LBL_MARKETING_NAME',
202 'name' =>'prospectlistsspk',
204 'fields'=>array('id')
207 'name' =>'idx_prospect_list_name',
209 'fields'=>array('name')
212 'relationships'=>array(
213 'prospectlists_assigned_user' =>
214 array('lhs_module'=> 'Users', 'lhs_table'=> 'users', 'lhs_key' => 'id',
215 'rhs_module'=> 'prospectlists' , 'rhs_table'=> 'prospect_lists', 'rhs_key' => 'assigned_user_id',
216 'relationship_type'=>'one-to-many')
220 VardefManager::createVardef('ProspectLists','ProspectList', array(