]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - include/VarDefHandler/vardef_meta_arrays.php
Release 6.5.15
[Github/sugarcrm.git] / include / VarDefHandler / vardef_meta_arrays.php
1 <?php
2 /*********************************************************************************
3  * SugarCRM Community Edition is a customer relationship management program developed by
4  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
5  * 
6  * This program is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Affero General Public License version 3 as published by the
8  * Free Software Foundation with the addition of the following permission added
9  * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
10  * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
11  * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
12  * 
13  * This program is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15  * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
16  * details.
17  * 
18  * You should have received a copy of the GNU Affero General Public License along with
19  * this program; if not, see http://www.gnu.org/licenses or write to the Free
20  * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21  * 02110-1301 USA.
22  * 
23  * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
24  * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
25  * 
26  * The interactive user interfaces in modified source and object code versions
27  * of this program must display Appropriate Legal Notices, as required under
28  * Section 5 of the GNU Affero General Public License version 3.
29  * 
30  * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
31  * these Appropriate Legal Notices must retain the display of the "Powered by
32  * SugarCRM" logo. If the display of the logo is not reasonably feasible for
33  * technical reasons, the Appropriate Legal Notices must display the words
34  * "Powered by SugarCRM".
35  ********************************************************************************/
36
37
38
39 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
40
41 //holds various filter arrays for displaying vardef dropdowns
42 //You can add your own if you would like
43
44 $vardef_meta_array = array (
45
46         'standard_display' => array(
47                 'inclusion' =>  array(
48                 //end inclusion
49                 ),
50                 'exclusion' =>  array(
51                         'type' => array('id'),
52                         'name' => array('parent_type', 'deleted'),
53                 //end exclusion
54                 ),
55                 'inc_override' => array(
56                         'type' => array('team_list'),
57                 //end inc_override
58                 ),
59                 'ex_override' => array(
60                 //end ex_override
61                 )
62         //end standard_display
63         ),
64 //////////////////////////////////////////////////////////////////
65         'normal_trigger' => array(
66                 'inclusion' =>  array(
67                 //end inclusion
68                 ),
69                 'exclusion' =>  array(
70                         'type' => array('id', 'link', 'datetime', 'date','datetimecombo'),
71                         'custom_type' => array('id', 'link', 'datetime', 'date','datetimecombo'),
72                         'name' => array('assigned_user_name', 'parent_type', 'deleted','filename', 'file_mime_type', 'file_url'),
73                         'source' => array('non-db'),
74                 //end exclusion
75                 ),
76
77                 'inc_override' => array(
78                         'type' => array('team_list', 'assigned_user_name'),
79                         'name' => array('email1', 'email2', 'assigned_user_id'),
80                 //end inc_override
81                 ),
82                 'ex_override' => array(
83                         'name' => array('team_name'),
84                 //end ex_override
85                 )
86
87         //end normal_trigger
88         ),
89         //////////////////////////////////////////////////////////////////
90         'normal_date_trigger' => array(
91                 'inclusion' =>  array(
92                 //end inclusion
93                 ),
94                 'exclusion' =>  array(
95                         'type' => array('id', 'link'),
96                         'custom_type' => array('id', 'link'),
97                         'name' => array('assigned_user_name', 'parent_type', 'deleted','filename', 'file_mime_type', 'file_url'),
98                         'source' => array('non-db'),
99                 //end exclusion
100                 ),
101
102                 'inc_override' => array(
103                         'type' => array('team_list', 'assigned_user_name'),
104                         'name' => array('email1', 'email2', 'assigned_user_id'),
105                 //end inc_override
106                 ),
107                 'ex_override' => array(
108                         'name' => array('team_name', 'account_name'),
109                 //end ex_override
110                 )
111
112         //end normal_trigger
113         ),
114 //////////////////////////////////////////////////////////////////
115         'time_trigger' => array(
116                 'inclusion' =>  array(
117                 //end inclusion
118                 ),
119                 'exclusion' =>  array(
120                         'type' => array('id', 'link', 'team_list', 'time'),
121                         'custom_type' => array('id', 'link', 'team_list', 'time'),
122                         'name' => array('parent_type', 'team_name', 'assigned_user_name', 'parent_type', 'deleted' ,'filename', 'file_mime_type', 'file_url'),
123                         'source' => array('non-db'),
124                 //end exclusion
125                 ),
126
127                 'inc_override' => array(
128                 //end inc_override
129                 ),
130                 'ex_override' => array(
131                         'name' => array('date_entered'),
132                 //end ex_override
133                 )
134
135         //end time_trigger
136         ),
137 //////////////////////////////////////////////////////////////////
138         'action_filter' => array(
139                 'inclusion' =>  array(
140                 //end inclusion
141                 ),
142                 'exclusion' =>  array(
143                         'type' => array('id', 'link', 'datetime', 'time'),
144                         'custom_type' => array('id', 'link', 'datetime', 'time'),
145                         'source' => array('non-db'),
146                         'name' => array('created_by', 'parent_type', 'deleted', 'assigned_user_name', 'deleted' ,'filename', 'file_mime_type', 'file_url', 'resource_id'),
147                         'auto_increment' => array(true),
148                 //end exclusion
149                 ),
150
151                 'inc_override' => array(
152                         'type' => array('team_list'),
153                         'name' => array('assigned_user_id', 'time_start', 'date_start', 'email1', 'email2', 'date_due', 'is_optout'),
154                 //end inc_override
155                 ),
156                 'ex_override' => array(
157                         'name' => array('team_name', 'account_name'),
158                 //end ex_override
159                 )
160
161         //end action_filter
162         ),
163 //////////////////////////////////////////////////////////////////
164         'rel_filter' => array(
165                 'inclusion' =>  array(
166                         'type' => array('link'),
167                 //end inclusion
168                 ),
169                 'exclusion' =>  array(
170                 'name' => array('direct_reports', 'accept_status'),
171                 //end exclusion
172                 ),
173
174                 'inc_override' => array(
175                         'name' => array('accounts', 'account', 'member_of'),
176                 //end inc_override
177                 ),
178                 'ex_override' => array(
179                         //'link_type' => array('one'),
180                         'name' => array('users'),
181                     'module' => array('Users'),
182                 //end ex_override
183                 )
184
185         //end rel_filter
186         ),
187 ///////////////////////////////////////////////////////////
188         'trigger_rel_filter' => array(
189                 'inclusion' =>  array(
190                         'type' => array('link'),
191                 //end inclusion
192                 ),
193                 'exclusion' =>  array(
194                 'name' => array('direct_reports', 'accept_status'),
195                 //end exclusion
196                 ),
197
198                 'inc_override' => array(
199                         'name' => array(),
200                 //end inc_override
201                 ),
202                 'ex_override' => array(
203                         'name' => array('users', 'emails', 'product_bundles', 'email_addresses', 'email_addresses_primary', 'emailmarketing', 'tracked_urls', 'queueitems', 'log_entries', 'contract_types'),
204                         'module' => array('Users', 'Teams',
205                             'CampaignLog'
206                             ),
207                 //end ex_override
208                 )
209
210         //end trigger_rel_filter
211         ),
212 ///////////////////////////////////////////////////////////
213         'alert_rel_filter' => array(
214                 'inclusion' =>  array(
215                         'type' => array('link'),
216                 //end inclusion
217                 ),
218                 'exclusion' =>  array(
219                 'name' => array('direct_reports', 'accept_status'),
220                 //end exclusion
221                 ),
222
223                 'inc_override' => array(
224                         'name' => array(),
225                 //end inc_override
226                 ),
227                 'ex_override' => array(
228                         'name' => array('users', 'emails', 'product_bundles', 'email_addresses', 'email_addresses_primary', 'emailmarketing', 'tracked_urls', 'queueitems', 'log_entries', 'contract_types', 'reports_to_link'),
229                         'module' => array('Users', 'Teams',
230                             'CampaignLog',
231                             'Releases'),
232                 //end ex_override
233                 )
234
235         //end alert_rel_filter
236         ),
237 ///////////////////////////////////////////////////////////
238         'template_filter' => array(
239                 'inclusion' =>  array(
240                 //end inclusion
241                 ),
242                 'exclusion' =>  array(
243                         'type' => array('id', 'link'),
244                         'custom_type' => array('id', 'link'),
245                         'source' => array('non-db'),
246                         'name' => array('created_by', 'parent_type', 'deleted', 'assigned_user_name', 'filename', 'file_mime_type', 'file_url'),
247                 //end exclusion
248                 ),
249
250                 'inc_override' => array(
251                         'name' => array('assigned_user_id', 'assigned_user_name', 'modified_user_id', 'modified_by_name', 'created_by', 'created_by_name', 'full_name', 'email1', 'email2', 'team_name', 'shipper_name'),
252             'type' => array('relate'),
253                 //end inc_override
254                 ),
255                 'ex_override' => array(
256                         'name' => array('team_id'),
257                 //end ex_override
258                 )
259
260         //end template_filter
261         ),
262 //////////////////////////////////////////////////////////////
263         'alert_trigger' => array(
264                 'inclusion' =>  array(
265                 //end inclusion
266                 ),
267                 'exclusion' =>  array(
268                         'type' => array('id', 'link', 'datetime', 'date'),
269                         'custom_type' => array('id', 'link', 'datetime', 'date'),
270                         'name' => array('assigned_user_name', 'parent_type', 'deleted', 'filename', 'file_mime_type', 'file_url'),
271                         'source' => array('non-db'),
272                 //end exclusion
273                 ),
274
275                 'inc_override' => array(
276                         'type' => array('team_list', 'assigned_user_name'),
277                         'name' => array('full_name'),
278                 //end inc_override
279                 ),
280                 'ex_override' => array(
281                         'name' => array('team_name', 'account_name'),
282                 //end ex_override
283                 )
284
285         //end alert_trigger
286         ),
287 //////////////////////////////////////////////////////////////////
288         'template_rel_filter' => array(
289                 'inclusion' =>  array(
290                         'type' => array('link'),
291                 //end inclusion
292                 ),
293                 'exclusion' =>  array(
294                 'name' => array('direct_reports', 'accept_status'),
295                 //end exclusion
296                 ),
297
298                 'inc_override' => array(
299                         'name' => array(),
300                 //end inc_override
301                 ),
302                 'ex_override' => array(
303                         'name' => array('users', 'email_addresses', 'email_addresses_primary', 'emailmarketing', 'tracked_urls', 'queueitems', 'log_entries', 'reports_to_link'),
304                         'module' => array('Users', 'Teams',
305                             'CampaignLog'
306                             ),
307                 //end ex_override
308                 )
309
310         //end template_rel_filter
311         ),
312 );
313
314 ?>