Changeset 899 for trunk/Modules/System/System.php
- Timestamp:
- Feb 17, 2021, 12:30:23 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/System/System.php
r897 r899 3 3 include_once(dirname(__FILE__).'/SystemModels.php'); 4 4 5 class ModuleSystem extends AppModule5 class ModuleSystem extends Module 6 6 { 7 7 public bool $InstalledChecked; … … 13 13 $this->Version = '1.0'; 14 14 $this->Creator = 'Chronos'; 15 $this->License = 'GNU/GPL ';15 $this->License = 'GNU/GPLv3'; 16 16 $this->Description = 'Base system module'; 17 $this->Dependencies = array();18 17 $this->Type = ModuleType::System; 19 } 20 21 function GetModels(): array 22 { 23 return array(UnitOfMeasure::GetClassName(), ActionIcon::GetClassName(), ActionGroup::GetClassName(), 18 $this->Models = array(UnitOfMeasure::GetClassName(), ActionIcon::GetClassName(), ActionGroup::GetClassName(), 24 19 ActionType::GetClassName(), Action::GetClassName(), Language::GetClassName(), Country::GetClassName()); 25 20 } … … 141 136 } 142 137 143 static function Cast( AppModule $AppModule): ModuleSystem138 static function Cast(Module $Module): ModuleSystem 144 139 { 145 if ($ AppModule instanceof ModuleSystem)140 if ($Module instanceof ModuleSystem) 146 141 { 147 return $ AppModule;142 return $Module; 148 143 } 149 throw new Exception('Expected ModuleSystem type but got '.gettype($ AppModule));144 throw new Exception('Expected ModuleSystem type but got '.gettype($Module)); 150 145 } 151 146
Note:
See TracChangeset
for help on using the changeset viewer.