Changeset 576 for trunk/Common/AppModule.php
- Timestamp:
- Oct 3, 2013, 11:37:18 PM (11 years ago)
- File:
-
- 1 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 }
Note:
See TracChangeset
for help on using the changeset viewer.