iTx Technologies offre gratuitement
cet espace pour SugarCRM !

title

Body

[fermer]

/include/ -> modules.php (source)

   1  <?php
   2  if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
   3  /*********************************************************************************
   4   * SugarCRM is a customer relationship management program developed by
   5   * SugarCRM, Inc. Copyright (C) 2004 - 2009 SugarCRM Inc.
   6   * 
   7   * This program is free software; you can redistribute it and/or modify it under
   8   * the terms of the GNU 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 General Public License for more
  17   * details.
  18   * 
  19   * You should have received a copy of the GNU 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 General Public License version 3.
  30   * 
  31   * In accordance with Section 7(b) of the GNU 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  /*********************************************************************************gf
  38  
  39   * Description:  Executes a step in the installation process.
  40   ********************************************************************************/
  41  
  42  $moduleList = array();
  43  // this list defines the modules shown in the top tab list of the app
  44  //the order of this list is the default order displayed - do not change the order unless it is on purpose
  45  $moduleList[] = 'Home';
  46  
  47  $moduleList[] = 'Dashboard';
  48  $moduleList[] = 'Calendar';
  49  $moduleList[] = 'Activities';
  50  
  51  
  52  
  53  $moduleList[] = 'Leads';
  54  $moduleList[] = 'Contacts';
  55  $moduleList[] = 'Accounts';
  56  $moduleList[] = 'Opportunities';
  57  $moduleList[] = 'Emails';
  58  $moduleList[] = 'Campaigns';
  59  
  60  
  61  
  62  
  63  $moduleList[] = 'Cases';
  64  $moduleList[] = 'Documents';
  65  $moduleList[] = 'Project';
  66  $moduleList[] = 'Bugs';
  67  $moduleList[] = 'iFrames';
  68  $moduleList[] = 'Feeds';
  69  
  70  
  71  
  72  
  73  
  74  
  75  
  76  
  77  
  78  
  79  
  80  
  81  
  82  
  83  
  84  
  85  
  86  
  87  
  88  
  89  
  90  
  91  
  92  // this list defines all of the module names and bean names in the app
  93  // to create a new module's bean class, add the bean definition here
  94  $beanList = array();
  95  //ACL Objects
  96  $beanList['ACLRoles']       = 'ACLRole';
  97  $beanList['ACLActions']     = 'ACLAction';
  98  
  99  
 100  
 101  //END ACL OBJECTS
 102  $beanList['Leads']          = 'Lead';
 103  $beanList['Contacts']       = 'Contact';
 104  $beanList['Accounts']       = 'Account';
 105  $beanList['DynamicFields']  = 'DynamicField';
 106  $beanList['EditCustomFields']   = 'FieldsMetaData';
 107  $beanList['Opportunities']  = 'Opportunity';
 108  $beanList['Cases']          = 'aCase';
 109  $beanList['Notes']          = 'Note';
 110  $beanList['EmailTemplates']     = 'EmailTemplate';
 111  $beanList['EmailMan'] = 'EmailMan';
 112  $beanList['Calls']          = 'Call';
 113  $beanList['Emails']         = 'Email';
 114  $beanList['Meetings']       = 'Meeting';
 115  $beanList['Tasks']          = 'Task';
 116  $beanList['Users']          = 'User';
 117  $beanList['Employees']      = 'Employee';
 118  $beanList['Currencies']     = 'Currency';
 119  $beanList['Trackers']       = 'Tracker';
 120  $beanList['Connectors']     = 'Connectors';
 121  
 122  
 123  
 124  
 125  
 126  $beanList['Import_1']         = 'ImportMap';
 127  $beanList['Import_2']       = 'UsersLastImport';
 128  $beanList['Versions']       = 'Version';
 129  $beanList['Administration'] = 'Administration';
 130  $beanList['vCals']          = 'vCal';
 131  $beanList['CustomFields']       = 'CustomFields';
 132  $beanList['Bugs']           = 'Bug';
 133  $beanList['Releases']       = 'Release';
 134  $beanList['Feeds']          = 'Feed';
 135  $beanList['iFrames']            = 'iFrame';
 136  $beanList['Project']            = 'Project';
 137  $beanList['ProjectTask']            = 'ProjectTask';
 138  $beanList['Campaigns']          = 'Campaign';
 139  $beanList['ProspectLists']      = 'ProspectList';
 140  $beanList['Prospects']  = 'Prospect';
 141  $beanList['Documents']  = 'Document';
 142  $beanList['DocumentRevisions']  = 'DocumentRevision';
 143  $beanList['Roles']  = 'Role';
 144  $beanList['EmailMarketing']  = 'EmailMarketing';
 145  $beanList['Audit']  = 'Audit';
 146  $beanList['Schedulers']  = 'Scheduler';
 147  $beanList['SchedulersJobs']  = 'SchedulersJob';
 148  // deferred
 149  //$beanList['Queues'] = 'Queue';
 150  $beanList['InboundEmail'] = 'InboundEmail';
 151  $beanList['Groups'] = 'Group';
 152  $beanList['DocumentRevisions'] = 'DocumentRevision';
 153  $beanList['CampaignLog']        = 'CampaignLog';
 154  $beanList['Dashboard']          = 'Dashboard';
 155  $beanList['CampaignTrackers']   = 'CampaignTracker';
 156  $beanList['SavedSearch']            = 'SavedSearch';
 157  $beanList['UserPreferences']        = 'UserPreference';
 158  $beanList['MergeRecords'] = 'MergeRecord';
 159  $beanList['EmailAddresses'] = 'EmailAddress';
 160  $beanList['Relationships'] = 'Relationship';
 161  
 162  
 163  
 164  
 165  
 166  
 167  
 168  
 169  
 170  
 171  
 172  
 173  
 174  
 175  
 176  
 177  
 178  
 179  
 180  
 181  
 182  
 183  
 184  
 185  
 186  
 187  
 188  
 189  
 190  
 191  
 192  
 193  
 194  
 195  
 196  
 197  
 198  
 199  
 200  
 201  
 202  
 203  
 204  
 205  
 206  
 207  
 208  
 209  
 210  
 211  
 212  
 213  
 214  
 215  
 216  
 217  
 218  
 219  
 220  
 221  
 222  
 223  
 224  
 225  
 226  
 227  
 228  
 229  
 230  
 231  
 232  
 233  
 234  
 235  
 236  
 237  
 238  
 239  
 240  
 241  // this list defines all of the files that contain the SugarBean class definitions from $beanList
 242  // to create a new module's bean class, add the file definition here
 243  $beanFiles = array();
 244  $beanFiles['Relationship']  = 'modules/Relationships/Relationship.php';
 245  $beanFiles['ACLRole'] = 'modules/ACLRoles/ACLRole.php';
 246  
 247  $beanFiles['ACLAction'] = 'modules/ACLActions/ACLAction.php';
 248  $beanFiles['Lead']          = 'modules/Leads/Lead.php';
 249  $beanFiles['Contact']       = 'modules/Contacts/Contact.php';
 250  $beanFiles['Account']       = 'modules/Accounts/Account.php';
 251  $beanFiles['Opportunity']   = 'modules/Opportunities/Opportunity.php';
 252  $beanFiles['aCase']         = 'modules/Cases/Case.php';
 253  $beanFiles['Note']          = 'modules/Notes/Note.php';
 254  $beanFiles['EmailTemplate']         = 'modules/EmailTemplates/EmailTemplate.php';
 255  $beanFiles['EmailMan']          = 'modules/EmailMan/EmailMan.php';
 256  $beanFiles['Call']          = 'modules/Calls/Call.php';
 257  $beanFiles['Email']         = 'modules/Emails/Email.php';
 258  $beanFiles['Meeting']       = 'modules/Meetings/Meeting.php';
 259  $beanFiles['iFrame']        = 'modules/iFrames/iFrame.php';
 260  $beanFiles['Task']          = 'modules/Tasks/Task.php';
 261  $beanFiles['User']          = 'modules/Users/User.php';
 262  $beanFiles['Employee']      = 'modules/Employees/Employee.php';
 263  $beanFiles['Currency']          = 'modules/Currencies/Currency.php';
 264  $beanFiles['Tracker']          = 'modules/Trackers/Tracker.php';
 265  
 266  
 267  
 268  
 269  
 270  $beanFiles['ImportMap']     = 'modules/Import/ImportMap.php';
 271  $beanFiles['UsersLastImport']= 'modules/Import/UsersLastImport.php';
 272  $beanFiles['Administration']= 'modules/Administration/Administration.php';
 273  $beanFiles['UpgradeHistory']= 'modules/Administration/UpgradeHistory.php';
 274  $beanFiles['vCal']          = 'modules/vCals/vCal.php';
 275  $beanFiles['Bug']           = 'modules/Bugs/Bug.php';
 276  $beanFiles['Version']           = 'modules/Versions/Version.php';
 277  $beanFiles['Release']           = 'modules/Releases/Release.php';
 278  $beanFiles['Feed']          = 'modules/Feeds/Feed.php';
 279  $beanFiles['Project']           = 'modules/Project/Project.php';
 280  $beanFiles['ProjectTask']           = 'modules/ProjectTask/ProjectTask.php';
 281  $beanFiles['Role']          = 'modules/Roles/Role.php';
 282  $beanFiles['EmailMarketing']          = 'modules/EmailMarketing/EmailMarketing.php';
 283  $beanFiles['Campaign']          = 'modules/Campaigns/Campaign.php';
 284  $beanFiles['ProspectList']      = 'modules/ProspectLists/ProspectList.php';
 285  $beanFiles['Prospect']  = 'modules/Prospects/Prospect.php';
 286  $beanFiles['Document']  = 'modules/Documents/Document.php';
 287  $beanFiles['DocumentRevision']  = 'modules/DocumentRevisions/DocumentRevision.php';
 288  $beanFiles['FieldsMetaData']            = 'modules/EditCustomFields/FieldsMetaData.php';
 289  //$beanFiles['Audit']           = 'modules/Audit/Audit.php';
 290  $beanFiles['Scheduler']  = 'modules/Schedulers/Scheduler.php';
 291  $beanFiles['SchedulersJob']  = 'modules/SchedulersJobs/SchedulersJob.php';
 292  // deferred
 293  //$beanFiles['Queue'] = 'modules/Queues/Queue.php';
 294  $beanFiles['InboundEmail'] = 'modules/InboundEmail/InboundEmail.php';
 295  $beanFiles['Group'] = 'modules/Groups/Group.php';
 296  $beanFiles['CampaignLog']  = 'modules/CampaignLog/CampaignLog.php';
 297  $beanFiles['Dashboard']  = 'modules/Dashboard/Dashboard.php';
 298  $beanFiles['CampaignTracker']  = 'modules/CampaignTrackers/CampaignTracker.php';
 299  $beanFiles['SavedSearch']  = 'modules/SavedSearch/SavedSearch.php';
 300  $beanFiles['UserPreference']  = 'modules/UserPreferences/UserPreference.php';
 301  $beanFiles['MergeRecord']  = 'modules/MergeRecords/MergeRecord.php';
 302  $beanFiles['EmailAddress'] = 'modules/EmailAddresses/EmailAddress.php';
 303  
 304  
 305  
 306  
 307  
 308  
 309  
 310  
 311  
 312  
 313  
 314  
 315  
 316  
 317  
 318  
 319  
 320  
 321  
 322  
 323  
 324  
 325  
 326  
 327  
 328  
 329  
 330  
 331  
 332  
 333  
 334  
 335  
 336  
 337  
 338  
 339  
 340  
 341  
 342  
 343  
 344  
 345  
 346  
 347  
 348  
 349  
 350  
 351  
 352  
 353  
 354  
 355  
 356  
 357  
 358  
 359  
 360  // TODO: Remove the Library module, it is an example. 
 361  //$moduleList[] = 'Library';
 362  //$beanList['Library']= 'Library';
 363  //$beanFiles['Library'] = 'modules/Library/Library.php';
 364  
 365  
 366  
 367  
 368  
 369  
 370  
 371  
 372  
 373  
 374  
 375  // added these lists for security settings for tabs
 376  $modInvisList = array('Administration', 'Currencies', 'CustomFields', 'Connectors',
 377      'Dropdown', 'Dynamic', 'DynamicFields', 'DynamicLayout', 'EditCustomFields',
 378      'EmailTemplates', 'Help', 'Import',  'MySettings', 'EditCustomFields','FieldsMetaData',
 379      'UpgradeWizard', 'Trackers', 'Connectors',
 380  
 381  
 382  
 383      'Releases','Sync',
 384      'Users',  'Versions', 'EmailMan', 'ProspectLists', 'Prospects', 'Employees', 'LabelEditor','Roles','EmailMarketing'
 385      ,'OptimisticLock', 'TeamMemberships', 'TeamSets', 'TeamSetModule', 'Audit', 'MailMerge', 'MergeRecords', 'EmailAddresses',
 386  
 387  
 388  
 389      'Schedulers','Schedulers_jobs', /*'Queues',*/ 'InboundEmail',
 390      'CampaignLog', 'Groups',
 391      'ACLActions', 'ACLRoles', 'CampaignTrackers','DocumentRevisions',
 392  
 393  
 394  
 395  
 396  
 397  
 398  
 399      'ProjectTask',
 400  
 401      );
 402  $adminOnlyList = array(
 403                      //module => list of actions  (all says all actions are admin only)
 404                     //'Administration'=>array('all'=>1, 'SupportPortal'=>'allow'),
 405                      'Dropdown'=>array('all'=>1),
 406                      'Dynamic'=>array('all'=>1),
 407                      'DynamicFields'=>array('all'=>1),
 408                      'Currencies'=>array('all'=>1),
 409                      'EditCustomFields'=>array('all'=>1),
 410                      'FieldsMetaData'=>array('all'=>1),
 411                      'LabelEditor'=>array('all'=>1),
 412                      'ACL'=>array('all'=>1),
 413                      'ACLActions'=>array('all'=>1),
 414                      'ACLRoles'=>array('all'=>1),
 415  
 416  
 417  
 418                      //'Groups'=>array('all'=>1),
 419                      'UpgradeWizard' => array('all' => 1),
 420                      'Studio' => array('all' => 1),
 421                      );
 422  
 423  
 424  $modInvisListActivities = array('Calls', 'Meetings','Notes','Tasks');
 425  
 426  
 427  
 428  
 429  
 430  
 431  
 432  
 433  
 434  
 435  
 436  
 437  
 438  
 439  
 440  
 441  
 442  
 443  $modInvisList[] = 'ACL';
 444  $modInvisList[] = 'ACLRoles';
 445  $modInvisList[] = 'Configurator';
 446  $modInvisList[] = 'UserPreferences';
 447  $modInvisList[] = 'SavedSearch';
 448  // deferred
 449  //$modInvisList[] = 'Queues';
 450  $modInvisList[] = 'Studio';
 451  $modInvisList[] = 'Connectors';
 452  
 453  $beanList['SugarFeed'] = 'SugarFeed';
 454  $beanFiles['SugarFeed'] = 'modules/SugarFeed/SugarFeed.php';
 455  $modInvisList[] = 'SugarFeed';
 456  
 457  // This is the mapping for modules that appear under a different module's tab
 458  // Be sure to also add the modules to $modInvisList, otherwise their tab will still appear
 459  $GLOBALS['moduleTabMap'] = array(
 460      'EmailTemplates' => 'Emails',
 461      'Tasks' => 'Activities',
 462      'Calls' => 'Activities',
 463      'Notes' => 'Activities',
 464      'Meetings' => 'Calendar',
 465      'ProspectLists' => 'Campaigns',
 466      'Prospects' => 'Campaigns',
 467  
 468  
 469  
 470  
 471  
 472  
 473  );
 474  
 475  if (file_exists('include/modules_override.php'))
 476  {
 477      include('include/modules_override.php');
 478  }
 479  if (file_exists('custom/application/Ext/Include/modules.ext.php'))
 480  {
 481      include('custom/application/Ext/Include/modules.ext.php');
 482  }
 483  ?>


Generé en: Thu Mar 4 09:44:50 2010 | Cross-referenced par PHPXref 0.7