Changeset 576
- Timestamp:
- Oct 3, 2013, 11:37:18 PM (11 years ago)
- Location:
- trunk/Common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/AppModule.php
r563 r576 1 1 <?php 2 3 class ModuleType 4 { 5 const System = 0; 6 const Normal = 1; 7 const Application = 2; 8 } 2 9 3 10 class AppModule … … 10 17 var $Description; 11 18 var $Installed; 19 var $InstalledVersion; 12 20 var $Running; 21 /** @var ModuleType */ 22 var $Type; 23 var $Enabled; 13 24 var $Dependencies; 14 25 /** @var Database */ … … 26 37 $this->Installed = false; 27 38 $this->Dependencies = array(); 39 $this->Type = ModuleType::Normal; 28 40 } 29 41 … … 49 61 var $Modules; 50 62 var $System; 63 var $OnLoadModules; 51 64 52 65 function __construct($System) … … 115 128 } 116 129 } 130 131 function LoadModules() 132 { 133 if(method_exists($this->OnLoadModules[0], $this->OnLoadModules[1])) 134 $this->OnLoadModules(); 135 else $this->LoadModulesFromDir(dirname(__FILE__).'/../Modules'); 136 } 117 137 } -
trunk/Common/Global.php
r565 r576 61 61 62 62 // Register and start existing modules 63 $System->ModuleManager->LoadModulesFromDir(dirname(__FILE__).'/../Modules'); 63 include_once(dirname(__FILE__).'/../Modules/System/System.php'); 64 $System->ModuleManager->RegisterModule(new ModuleSystem($System)); 65 $System->ModuleManager->Modules['System']->Start(); 66 $System->ModuleManager->LoadModules(); 64 67 $System->ModuleManager->StartAll(); 65 68 } -
trunk/Common/Version.php
r575 r576 1 1 <?php 2 2 3 $Revision = 57 5; // Subversion revision3 $Revision = 576; // Subversion revision 4 4 $DatabaseRevision = 574; // SQL structure revision 5 $ReleaseTime = '2013-10-0 2';5 $ReleaseTime = '2013-10-03';
Note:
See TracChangeset
for help on using the changeset viewer.