]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - include/modules.php
Release 6.3.0
[Github/sugarcrm.git] / include / modules.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 /*********************************************************************************gf
39
40  * Description:  Executes a step in the installation process.
41  ********************************************************************************/
42
43 $moduleList = array();
44 // this list defines the modules shown in the top tab list of the app
45 //the order of this list is the default order displayed - do not change the order unless it is on purpose
46 $moduleList[] = 'Home';
47 $moduleList[] = 'Calendar';
48 $moduleList[] = 'Calls';
49 $moduleList[] = 'Meetings';
50 $moduleList[] = 'Tasks';
51 $moduleList[] = 'Notes';
52 $moduleList[] = 'Leads';
53 $moduleList[] = 'Contacts';
54 $moduleList[] = 'Accounts';
55 $moduleList[] = 'Opportunities';
56
57 $moduleList[] = 'Emails';
58 $moduleList[] = 'Campaigns';
59 $moduleList[] = 'Prospects';
60 $moduleList[] = 'ProspectLists';
61
62 $moduleList[] = 'Documents';
63 $moduleList[] = 'Cases';
64 $moduleList[] = 'Project';
65 $moduleList[] = 'Bugs';
66
67
68 // this list defines all of the module names and bean names in the app
69 // to create a new module's bean class, add the bean definition here
70 $beanList = array();
71 //ACL Objects
72 $beanList['ACLRoles']       = 'ACLRole';
73 $beanList['ACLActions']     = 'ACLAction';
74 //END ACL OBJECTS
75 $beanList['Leads']          = 'Lead';
76 $beanList['Cases']          = 'aCase';
77 $beanList['Bugs']           = 'Bug';
78 $beanList['ProspectLists']      = 'ProspectList';
79 $beanList['Prospects']  = 'Prospect';
80 $beanList['Project']            = 'Project';
81 $beanList['ProjectTask']            = 'ProjectTask';
82 $beanList['Campaigns']          = 'Campaign';
83 $beanList['EmailMarketing']  = 'EmailMarketing';
84 $beanList['CampaignLog']        = 'CampaignLog';
85 $beanList['CampaignTrackers']   = 'CampaignTracker';
86 $beanList['Releases']       = 'Release';
87 $beanList['Groups'] = 'Group';
88 $beanList['EmailMan'] = 'EmailMan';
89 $beanList['Schedulers']  = 'Scheduler';
90 $beanList['SchedulersJobs']  = 'SchedulersJob';
91 $beanList['Contacts']       = 'Contact';
92 $beanList['Accounts']       = 'Account';
93 $beanList['DynamicFields']  = 'DynamicField';
94 $beanList['EditCustomFields']   = 'FieldsMetaData';
95 $beanList['Opportunities']  = 'Opportunity';
96 $beanList['EmailTemplates']     = 'EmailTemplate';
97 $beanList['Notes']          = 'Note';
98 $beanList['Calls']          = 'Call';
99 $beanList['Emails']         = 'Email';
100 $beanList['Meetings']       = 'Meeting';
101 $beanList['Tasks']          = 'Task';
102 $beanList['Users']          = 'User';
103 $beanList['Currencies']     = 'Currency';
104 $beanList['Trackers']       = 'Tracker';
105 $beanList['Connectors']     = 'Connectors';
106 $beanList['Import_1']         = 'ImportMap';
107 $beanList['Import_2']       = 'UsersLastImport';
108 $beanList['Versions']       = 'Version';
109 $beanList['Administration'] = 'Administration';
110 $beanList['vCals']          = 'vCal';
111 $beanList['CustomFields']       = 'CustomFields';
112
113
114
115
116
117 $beanList['Documents']  = 'Document';
118 $beanList['DocumentRevisions']  = 'DocumentRevision';
119 $beanList['Roles']  = 'Role';
120
121 $beanList['Audit']  = 'Audit';
122
123 // deferred
124 //$beanList['Queues'] = 'Queue';
125
126 $beanList['InboundEmail'] = 'InboundEmail';
127
128
129 $beanList['SavedSearch']            = 'SavedSearch';
130 $beanList['UserPreferences']        = 'UserPreference';
131 $beanList['MergeRecords'] = 'MergeRecord';
132 $beanList['EmailAddresses'] = 'EmailAddress';
133 $beanList['Relationships'] = 'Relationship';
134 $beanList['Employees']      = 'Employee';
135
136
137
138
139 // this list defines all of the files that contain the SugarBean class definitions from $beanList
140 // to create a new module's bean class, add the file definition here
141 $beanFiles = array();
142
143 $beanFiles['ACLAction'] = 'modules/ACLActions/ACLAction.php';
144 $beanFiles['ACLRole'] = 'modules/ACLRoles/ACLRole.php';
145 $beanFiles['Relationship']  = 'modules/Relationships/Relationship.php';
146
147 $beanFiles['Lead']          = 'modules/Leads/Lead.php';
148 $beanFiles['aCase']         = 'modules/Cases/Case.php';
149 $beanFiles['Bug']           = 'modules/Bugs/Bug.php';
150 $beanFiles['Group'] = 'modules/Groups/Group.php';
151 $beanFiles['CampaignLog']  = 'modules/CampaignLog/CampaignLog.php';
152 $beanFiles['Project']           = 'modules/Project/Project.php';
153 $beanFiles['ProjectTask']           = 'modules/ProjectTask/ProjectTask.php';
154 $beanFiles['Campaign']          = 'modules/Campaigns/Campaign.php';
155 $beanFiles['ProspectList']      = 'modules/ProspectLists/ProspectList.php';
156 $beanFiles['Prospect']  = 'modules/Prospects/Prospect.php';
157
158 $beanFiles['EmailMarketing']          = 'modules/EmailMarketing/EmailMarketing.php';
159 $beanFiles['CampaignTracker']  = 'modules/CampaignTrackers/CampaignTracker.php';
160 $beanFiles['Release']           = 'modules/Releases/Release.php';
161 $beanFiles['EmailMan']          = 'modules/EmailMan/EmailMan.php';
162
163 $beanFiles['Scheduler']  = 'modules/Schedulers/Scheduler.php';
164 $beanFiles['SchedulersJob']  = 'modules/SchedulersJobs/SchedulersJob.php';
165 $beanFiles['Contact']       = 'modules/Contacts/Contact.php';
166 $beanFiles['Account']       = 'modules/Accounts/Account.php';
167 $beanFiles['Opportunity']   = 'modules/Opportunities/Opportunity.php';
168 $beanFiles['EmailTemplate']         = 'modules/EmailTemplates/EmailTemplate.php';
169 $beanFiles['Note']          = 'modules/Notes/Note.php';
170 $beanFiles['Call']          = 'modules/Calls/Call.php';
171 $beanFiles['Email']         = 'modules/Emails/Email.php';
172 $beanFiles['Meeting']       = 'modules/Meetings/Meeting.php';
173 $beanFiles['Task']          = 'modules/Tasks/Task.php';
174 $beanFiles['User']          = 'modules/Users/User.php';
175 $beanFiles['Employee']      = 'modules/Employees/Employee.php';
176 $beanFiles['Currency']          = 'modules/Currencies/Currency.php';
177 $beanFiles['Tracker']          = 'modules/Trackers/Tracker.php';
178 $beanFiles['ImportMap']     = 'modules/Import/maps/ImportMap.php';
179 $beanFiles['UsersLastImport']= 'modules/Import/UsersLastImport.php';
180 $beanFiles['Administration']= 'modules/Administration/Administration.php';
181 $beanFiles['UpgradeHistory']= 'modules/Administration/UpgradeHistory.php';
182 $beanFiles['vCal']          = 'modules/vCals/vCal.php';
183
184 $beanFiles['Version']           = 'modules/Versions/Version.php';
185
186
187
188 $beanFiles['Role']          = 'modules/Roles/Role.php';
189
190 $beanFiles['Document']  = 'modules/Documents/Document.php';
191 $beanFiles['DocumentRevision']  = 'modules/DocumentRevisions/DocumentRevision.php';
192 $beanFiles['FieldsMetaData']    = 'modules/DynamicFields/FieldsMetaData.php';
193 //$beanFiles['Audit']           = 'modules/Audit/Audit.php';
194
195 // deferred
196 //$beanFiles['Queue'] = 'modules/Queues/Queue.php';
197
198 $beanFiles['InboundEmail'] = 'modules/InboundEmail/InboundEmail.php';
199
200
201
202 $beanFiles['SavedSearch']  = 'modules/SavedSearch/SavedSearch.php';
203 $beanFiles['UserPreference']  = 'modules/UserPreferences/UserPreference.php';
204 $beanFiles['MergeRecord']  = 'modules/MergeRecords/MergeRecord.php';
205 $beanFiles['EmailAddress'] = 'modules/EmailAddresses/EmailAddress.php';
206
207
208
209 // TODO: Remove the Library module, it is an example.
210 //$moduleList[] = 'Library';
211 //$beanList['Library']= 'Library';
212 //$beanFiles['Library'] = 'modules/Library/Library.php';
213
214 $beanFiles['Configurator']          = 'modules/Configurator/Configurator.php';
215
216 // added these lists for security settings for tabs
217 $modInvisList = array('Administration', 'Currencies', 'CustomFields', 'Connectors',
218     'Dropdown', 'Dynamic', 'DynamicFields', 'DynamicLayout', 'EditCustomFields',
219     'Help', 'Import',  'MySettings', 'EditCustomFields','FieldsMetaData',
220     'UpgradeWizard', 'Trackers', 'Connectors', 'Employees', 'Calendar',
221     'Releases','Sync',
222     'Users',  'Versions', 'LabelEditor','Roles','EmailMarketing'
223     ,'OptimisticLock', 'TeamMemberships', 'TeamSets', 'TeamSetModule', 'Audit', 'MailMerge', 'MergeRecords', 'EmailAddresses',
224     'Schedulers','Schedulers_jobs', /*'Queues',*/ 'EmailTemplates',
225     'CampaignTrackers', 'CampaignLog', 'EmailMan', 'Prospects', 'ProspectLists',
226     'Groups','InboundEmail',
227     'ACLActions', 'ACLRoles',
228     'DocumentRevisions',
229     'ProjectTask',
230     );
231 $adminOnlyList = array(
232                     //module => list of actions  (all says all actions are admin only)
233                    //'Administration'=>array('all'=>1, 'SupportPortal'=>'allow'),
234                     'Dropdown'=>array('all'=>1),
235                     'Dynamic'=>array('all'=>1),
236                     'DynamicFields'=>array('all'=>1),
237                     'Currencies'=>array('all'=>1),
238                     'EditCustomFields'=>array('all'=>1),
239                     'FieldsMetaData'=>array('all'=>1),
240                     'LabelEditor'=>array('all'=>1),
241                     'ACL'=>array('all'=>1),
242                     'ACLActions'=>array('all'=>1),
243                     'ACLRoles'=>array('all'=>1),
244                     'UpgradeWizard' => array('all' => 1),
245                     'Studio' => array('all' => 1),
246                     );
247
248
249 $modInvisList[] = 'ACL';
250 $modInvisList[] = 'ACLRoles';
251 $modInvisList[] = 'Configurator';
252 $modInvisList[] = 'UserPreferences';
253 $modInvisList[] = 'SavedSearch';
254 // deferred
255 //$modInvisList[] = 'Queues';
256 $modInvisList[] = 'Studio';
257 $modInvisList[] = 'Connectors';
258
259 $report_include_modules = array();
260 $report_include_modules['Currencies']='Currency';
261 //add prospects
262 $report_include_modules['Prospects']='Prospect';
263 $report_include_modules['DocumentRevisions'] = 'DocumentRevision';
264 $report_include_modules['ProductCategories'] = 'ProductCategory';
265 $report_include_modules['ProductTypes'] = 'ProductType';
266 //add Tracker modules
267
268 $report_include_modules['Trackers']         = 'Tracker';
269
270
271
272 $beanList['SugarFeed'] = 'SugarFeed';
273 $beanFiles['SugarFeed'] = 'modules/SugarFeed/SugarFeed.php';
274 $modInvisList[] = 'SugarFeed';
275
276 // This is the mapping for modules that appear under a different module's tab
277 // Be sure to also add the modules to $modInvisList, otherwise their tab will still appear
278 $GLOBALS['moduleTabMap'] = array(
279     'UpgradeWizard' => 'Administration',
280     'EmailMan' => 'Administration',
281     'ModuleBuilder' => 'Administration',
282     'Configurator' => 'Administration',
283     'Studio' => 'Administration',
284     'Currencies' => 'Administration',
285     'SugarFeed' => 'Administration',
286     'DocumentRevisions' => 'Documents',
287     'EmailTemplates' => 'Emails',
288     'EmailMarketing' => 'Campaigns',
289  );
290 $beanList['EAPM'] = 'EAPM';
291 $beanFiles['EAPM'] = 'modules/EAPM/EAPM.php';
292 $modules_exempt_from_availability_check['EAPM'] = 'EAPM';
293 $modInvisList[] = 'EAPM';
294 $beanList['OAuthKeys'] = 'OAuthKey';
295 $beanFiles['OAuthKey'] = 'modules/OAuthKeys/OAuthKey.php';
296 $modules_exempt_from_availability_check['OAuthKeys'] = 'OAuthKeys';
297 $modInvisList[] = 'OAuthKeys';
298 $beanList['OAuthTokens'] = 'OAuthToken';
299 $beanFiles['OAuthToken'] = 'modules/OAuthTokens/OAuthToken.php';
300 $modules_exempt_from_availability_check['OAuthTokens'] = 'OAuthTokens';
301 $modInvisList[] = 'OAuthTokens';
302
303
304
305 //Object list is only here to correct for modules that break
306 //the bean class name == dictionary entry/object name convention
307 //No future module should need an entry here.
308 $objectList = array();
309 $objectList['Cases'] =  'Case';
310 $objectList['Groups'] =  'User';
311 $objectList['Schedulers'] =  'schedulers';
312
313 if (file_exists('include/modules_override.php'))
314 {
315     include('include/modules_override.php');
316 }
317 if (file_exists('custom/application/Ext/Include/modules.ext.php'))
318 {
319     include('custom/application/Ext/Include/modules.ext.php');
320 }
321 ?>