]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/ProspectLists/vardefs.php
Release 6.1.4
[Github/sugarcrm.git] / modules / ProspectLists / vardefs.php
1 <?php
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.
6  * 
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.
13  * 
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
17  * details.
18  * 
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
22  * 02110-1301 USA.
23  * 
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.
26  * 
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.
30  * 
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  ********************************************************************************/
37
38 $dictionary['ProspectList'] = array (
39         'table' => 'prospect_lists',
40         'fields' => array (
41                 'id' => array (
42                         'name' => 'id',
43                         'vname' => 'LBL_ID',
44                         'type' => 'id',
45                         'required' => true,
46                         'reportable'=>false,
47                 ),
48                 'name' => array (
49                         'name' => 'name',
50                         'vname' => 'LBL_NAME',
51                         'type' => 'varchar',
52                         'len' => '50',
53                         'importable' => 'required',
54                 ),
55                 'list_type' => array (
56                     'name' => 'list_type',
57                         'vname' => 'LBL_TYPE',
58                         'type' => 'enum',
59                         'options' => 'prospect_list_type_dom',
60                         'len' => 100,
61                         'importable' => 'required',
62                 ),
63                 'date_entered' => array (
64                         'name' => 'date_entered',
65                         'vname' => 'LBL_DATE_ENTERED',
66                         'type' => 'datetime',
67                         ),
68                 'date_modified' => array (
69                         'name' => 'date_modified',
70                         'vname' => 'LBL_DATE_MODIFIED',
71                         'type' => 'datetime',
72                         ),
73                 'modified_user_id' => array (
74                         'name' => 'modified_user_id',
75                         'rname' => 'user_name',
76                         'id_name' => 'modified_user_id',
77                         'vname' => 'LBL_MODIFIED',
78                         'type' => 'assigned_user_name',
79                         'table' => 'modified_user_id_users',
80                         'isnull' => 'false',
81                         'dbType' => 'id',
82                         'reportable'=>true,
83                         ),
84             'modified_by_name' => array (
85                       'name' => 'modified_by_name',
86                       'vname' => 'LBL_MODIFIED',
87                       'type' => 'relate',
88                       'reportable' => false,
89                       'source' => 'non-db',
90                       'table' => 'users',
91                       'id_name' => 'modified_user_id',
92                       'module' => 'Users',
93                       'duplicate_merge' => 'disabled',
94             ),
95                 'assigned_user_id' => array (
96                         'name' => 'assigned_user_id',
97                         'rname' => 'user_name',
98                         'id_name' => 'assigned_user_id',
99                         'vname' => 'LBL_ASSIGNED_TO',
100                         'type' => 'assigned_user_name',
101                         'table' => 'users',
102                         'isnull' => 'false',
103                         'dbType' => 'id',
104                         'reportable'=>true,
105                         ),
106             'assigned_user_name' =>
107             array (
108               'name' => 'assigned_user_name',
109               'vname' => 'LBL_ASSIGNED_TO_USER',
110               'type' => 'relate',
111               'reportable' => false,
112               'source' => 'non-db',
113               'table' => 'users',
114               'id_name' => 'assigned_user_id',
115               'module' => 'Users',
116               'duplicate_merge' => 'disabled',
117             ),
118                 'created_by' => array (
119                         'name' => 'created_by',
120                         'rname' => 'user_name',
121                         'id_name' => 'created_by',
122                         'vname' => 'LBL_CREATED',
123                         'type' => 'assigned_user_name',
124                         'table' => 'created_by_users',
125                 'isnull' => 'false',
126                 'dbType' => 'id'
127                 ),
128             'created_by_name' => array (
129                       'name' => 'created_by_name',
130                       'vname' => 'LBL_CREATED',
131                       'type' => 'relate',
132                       'reportable' => false,
133                       'source' => 'non-db',
134                       'table' => 'users',
135                       'id_name' => 'created_by',
136                       'module' => 'Users',
137                       'duplicate_merge' => 'disabled',
138             ),
139                 'deleted' => array (
140                         'name' => 'deleted',
141                         'vname' => 'LBL_CREATED_BY',
142                         'type' => 'bool',
143                         'required' => false,
144                         'reportable'=>false,
145                 ),
146                 'description' => array (
147                         'name' => 'description',
148                         'vname' => 'LBL_DESCRIPTION',
149                         'type' => 'text',
150                 ),
151                 'domain_name' => array (
152                         'name' => 'domain_name',
153                         'vname' => 'LBL_DOMAIN_NAME',
154                         'type' => 'varchar',
155                         'len' => '255',
156                 ),
157                 'entry_count' =>
158                 array (
159                         'name' => 'entry_count',
160                         'type' => 'int',
161                 'source'=>'non-db',
162                         'vname'=>'LBL_LIST_ENTRIES',
163                 ),
164                 'prospects' =>
165                         array (
166                         'name' => 'prospects',
167                 'type' => 'link',
168                 'relationship' => 'prospect_list_prospects',
169                 'source'=>'non-db',
170                 ),
171                 'contacts' =>
172                         array (
173                         'name' => 'contacts',
174                 'type' => 'link',
175                 'relationship' => 'prospect_list_contacts',
176                 'source'=>'non-db',
177                 ),
178                 'leads' =>
179                         array (
180                         'name' => 'leads',
181                 'type' => 'link',
182                 'relationship' => 'prospect_list_leads',
183                 'source'=>'non-db',
184                 ),
185                 'accounts' =>
186                         array (
187                         'name' => 'accounts',
188                 'type' => 'link',
189                 'relationship' => 'prospect_list_accounts',
190                 'source'=>'non-db',
191                 ),              
192                 'campaigns'=> array (
193                         'name' => 'campaigns',
194                 'type' => 'link',
195                 'relationship' => 'prospect_list_campaigns',
196                 'source'=>'non-db',
197                 ),
198                 'users' =>
199                         array (
200                         'name' => 'users',
201                 'type' => 'link',
202                 'relationship' => 'prospect_list_users',
203                 'source'=>'non-db',
204                 ),
205                 'marketing_id' => array (
206                         'name' => 'marketing_id',
207                         'vname' => 'LBL_MARKETING_ID',
208                         'type' => 'varchar',
209                         'len'=>'36',
210                         'source'=>'non-db',
211                 ),
212                 'marketing_name' => array (
213                         'name' => 'marketing_name',
214                         'vname' => 'LBL_MARKETING_NAME',
215                         'type' => 'varchar',
216                         'len'=>'255',
217                         'source'=>'non-db',
218                 ),
219         ),
220
221         'indices' => array (
222                 array (
223                         'name' =>'prospectlistsspk',
224                         'type' =>'primary',
225                         'fields'=>array('id')
226                 ),
227                 array (
228                         'name' =>'idx_prospect_list_name',
229                         'type' =>'index',
230                         'fields'=>array('name')
231                 ),
232         ),
233 );
234
235 VardefManager::createVardef('ProspectLists','ProspectList', array(
236 ));
237 ?>