Changeset 899 for trunk/Packages/Common/System.php
- Timestamp:
- Feb 17, 2021, 12:30:23 PM (4 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/System.php
r898 r899 43 43 } 44 44 45 class Application extendsSystem45 class System 46 46 { 47 public Database $Database; 47 48 public string $Name; 48 public AppModuleManager $ModuleManager;49 public ModuleManager $ModuleManager; 49 50 public array $Models; 50 51 public array $CommandLine; … … 53 54 function __construct() 54 55 { 55 parent::__construct();56 $this->Name = ' Application';57 $this->ModuleManager = new AppModuleManager($this);56 $this->Database = new Database(); 57 $this->Name = 'System'; 58 $this->ModuleManager = new ModuleManager($this); 58 59 $this->Models = array(); 59 60 $this->CommandLine = array(); … … 63 64 } 64 65 65 function GetModule(string $Name): AppModule66 function GetModule(string $Name): Module 66 67 { 67 68 if (array_key_exists($Name, $this->ModuleManager->Modules)) … … 87 88 } 88 89 89 function Unr gisterCommandLine(string $Name): void90 function UnregisterCommandLine(string $Name): void 90 91 { 91 92 unset($this->CommandLine[$Name]);
Note:
See TracChangeset
for help on using the changeset viewer.