]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - include/VarDefHandler/vardef_meta_arrays.php
Release 6.5.10
[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                         'reportable' => array('false'),
54                 //end exclusion
55                 ),
56                 'inc_override' => array(
57                         'type' => array('team_list'),
58                 //end inc_override
59                 ),
60                 'ex_override' => array(
61                 //end ex_override
62                 )
63         //end standard_display
64         ),
65 //////////////////////////////////////////////////////////////////
66         'normal_trigger' => array(
67                 'inclusion' =>  array(
68                 //end inclusion
69                 ),
70                 'exclusion' =>  array(
71                         'type' => array('id', 'link', 'datetime', 'date','datetimecombo'),
72                         'custom_type' => array('id', 'link', 'datetime', 'date','datetimecombo'),
73                         'name' => array('assigned_user_name', 'parent_type', 'deleted','filename', 'file_mime_type', 'file_url'),
74                         'reportable' => array('false'),
75                         'source' => array('non-db'),
76                 //end exclusion
77                 ),
78
79                 'inc_override' => array(
80                         'type' => array('team_list', 'assigned_user_name'),
81                         'name' => array('email1', 'email2', 'assigned_user_id'),
82                 //end inc_override
83                 ),
84                 'ex_override' => array(
85                         'name' => array('team_name'),
86                 //end ex_override
87                 )
88
89         //end normal_trigger
90         ),
91         //////////////////////////////////////////////////////////////////
92         'normal_date_trigger' => array(
93                 'inclusion' =>  array(
94                 //end inclusion
95                 ),
96                 'exclusion' =>  array(
97                         'type' => array('id', 'link'),
98                         'custom_type' => array('id', 'link'),
99                         'name' => array('assigned_user_name', 'parent_type', 'deleted','filename', 'file_mime_type', 'file_url'),
100                         'reportable' => array('false'),
101                         'source' => array('non-db'),
102                 //end exclusion
103                 ),
104
105                 'inc_override' => array(
106                         'type' => array('team_list', 'assigned_user_name'),
107                         'name' => array('email1', 'email2', 'assigned_user_id'),
108                 //end inc_override
109                 ),
110                 'ex_override' => array(
111                         'name' => array('team_name', 'account_name'),
112                 //end ex_override
113                 )
114
115         //end normal_trigger
116         ),
117 //////////////////////////////////////////////////////////////////
118         'time_trigger' => array(
119                 'inclusion' =>  array(
120                 //end inclusion
121                 ),
122                 'exclusion' =>  array(
123                         'type' => array('id', 'link', 'team_list', 'time'),
124                         'custom_type' => array('id', 'link', 'team_list', 'time'),
125                         'name' => array('parent_type', 'team_name', 'assigned_user_name', 'parent_type', 'deleted' ,'filename', 'file_mime_type', 'file_url'),
126                         'source' => array('non-db'),
127                 //end exclusion
128                 ),
129
130                 'inc_override' => array(
131                 //end inc_override
132                 ),
133                 'ex_override' => array(
134                         'name' => array('date_entered'),
135                 //end ex_override
136                 )
137
138         //end time_trigger
139         ),
140 //////////////////////////////////////////////////////////////////
141         'action_filter' => array(
142                 'inclusion' =>  array(
143                 //end inclusion
144                 ),
145                 'exclusion' =>  array(
146                         'type' => array('id', 'link', 'datetime', 'time'),
147                         'custom_type' => array('id', 'link', 'datetime', 'time'),
148                         'reportable' => array('false'),
149                         'source' => array('non-db'),
150                         'name' => array('created_by', 'parent_type', 'deleted', 'assigned_user_name', 'deleted' ,'filename', 'file_mime_type', 'file_url', 'resource_id'),
151                         'auto_increment' => array(true),
152                 //end exclusion
153                 ),
154
155                 'inc_override' => array(
156                         'type' => array('team_list'),
157                         'name' => array('assigned_user_id', 'time_start', 'date_start', 'email1', 'email2', 'date_due', 'is_optout'),
158                 //end inc_override
159                 ),
160                 'ex_override' => array(
161                         'name' => array('team_name', 'account_name'),
162                 //end ex_override
163                 )
164
165         //end action_filter
166         ),
167 //////////////////////////////////////////////////////////////////
168         'rel_filter' => array(
169                 'inclusion' =>  array(
170                         'type' => array('link'),
171                 //end inclusion
172                 ),
173                 'exclusion' =>  array(
174                 'name' => array('direct_reports', 'accept_status'),
175                 //end exclusion
176                 ),
177
178                 'inc_override' => array(
179                         'name' => array('accounts', 'account', 'member_of'),
180                 //end inc_override
181                 ),
182                 'ex_override' => array(
183                         //'link_type' => array('one'),
184                         'name' => array('users'),
185                     'module' => array('Users'),
186                 //end ex_override
187                 )
188
189         //end rel_filter
190         ),
191 ///////////////////////////////////////////////////////////
192         'trigger_rel_filter' => array(
193                 'inclusion' =>  array(
194                         'type' => array('link'),
195                 //end inclusion
196                 ),
197                 'exclusion' =>  array(
198                 'name' => array('direct_reports', 'accept_status'),
199                 //end exclusion
200                 ),
201
202                 'inc_override' => array(
203                         'name' => array(),
204                 //end inc_override
205                 ),
206                 'ex_override' => array(
207                         'name' => array('users', 'emails', 'product_bundles', 'email_addresses', 'email_addresses_primary', 'emailmarketing', 'tracked_urls', 'queueitems', 'log_entries', 'contract_types'),
208                         'module' => array('Users', 'Teams',
209                             'CampaignLog'
210                             ),
211                 //end ex_override
212                 )
213
214         //end trigger_rel_filter
215         ),
216 ///////////////////////////////////////////////////////////
217         'alert_rel_filter' => array(
218                 'inclusion' =>  array(
219                         'type' => array('link'),
220                 //end inclusion
221                 ),
222                 'exclusion' =>  array(
223                 'name' => array('direct_reports', 'accept_status'),
224                 //end exclusion
225                 ),
226
227                 'inc_override' => array(
228                         'name' => array(),
229                 //end inc_override
230                 ),
231                 'ex_override' => array(
232                         'name' => array('users', 'emails', 'product_bundles', 'email_addresses', 'email_addresses_primary', 'emailmarketing', 'tracked_urls', 'queueitems', 'log_entries', 'contract_types', 'reports_to_link'),
233                         'module' => array('Users', 'Teams',
234                             'CampaignLog',
235                             'Releases'),
236                 //end ex_override
237                 )
238
239         //end alert_rel_filter
240         ),
241 ///////////////////////////////////////////////////////////
242         'template_filter' => array(
243                 'inclusion' =>  array(
244                 //end inclusion
245                 ),
246                 'exclusion' =>  array(
247                         'type' => array('id', 'link'),
248                         'custom_type' => array('id', 'link'),
249                         'reportable' => array('false'),
250                         'source' => array('non-db'),
251                         'name' => array('created_by', 'parent_type', 'deleted', 'assigned_user_name', 'filename', 'file_mime_type', 'file_url'),
252                 //end exclusion
253                 ),
254
255                 'inc_override' => array(
256                         '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'),
257                 //end inc_override
258                 ),
259                 'ex_override' => array(
260                         'name' => array('team_id'),
261                 //end ex_override
262                 )
263
264         //end template_filter
265         ),
266 //////////////////////////////////////////////////////////////
267         'alert_trigger' => array(
268                 'inclusion' =>  array(
269                 //end inclusion
270                 ),
271                 'exclusion' =>  array(
272                         'type' => array('id', 'link', 'datetime', 'date'),
273                         'custom_type' => array('id', 'link', 'datetime', 'date'),
274                         'name' => array('assigned_user_name', 'parent_type', 'deleted', 'filename', 'file_mime_type', 'file_url'),
275                         'reportable' => array('false'),
276                         'source' => array('non-db'),
277                 //end exclusion
278                 ),
279
280                 'inc_override' => array(
281                         'type' => array('team_list', 'assigned_user_name'),
282                         'name' => array('full_name'),
283                 //end inc_override
284                 ),
285                 'ex_override' => array(
286                         'name' => array('team_name', 'account_name'),
287                 //end ex_override
288                 )
289
290         //end alert_trigger
291         ),
292 //////////////////////////////////////////////////////////////////
293         'template_rel_filter' => array(
294                 'inclusion' =>  array(
295                         'type' => array('link'),
296                 //end inclusion
297                 ),
298                 'exclusion' =>  array(
299                 'name' => array('direct_reports', 'accept_status'),
300                 //end exclusion
301                 ),
302
303                 'inc_override' => array(
304                         'name' => array(),
305                 //end inc_override
306                 ),
307                 'ex_override' => array(
308                         'name' => array('users', 'email_addresses', 'email_addresses_primary', 'emailmarketing', 'tracked_urls', 'queueitems', 'log_entries', 'reports_to_link'),
309                         'module' => array('Users', 'Teams',
310                             'CampaignLog'
311                             ),
312                 //end ex_override
313                 )
314
315         //end template_rel_filter
316         ),
317 );
318
319 ?>