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