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