Changeset 899 for trunk/Modules/System
- Timestamp:
- Feb 17, 2021, 12:30:23 PM (4 years ago)
- Location:
- trunk/Modules/System
- Files:
-
- 2 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 -
trunk/Modules/System/SystemModels.php
r895 r899 3 3 class UnitOfMeasure extends Model 4 4 { 5 static function Get Desc(): ModelDesc5 static function GetModelDesc(): ModelDesc 6 6 { 7 7 $Desc = new ModelDesc(self::GetClassName()); … … 14 14 class Action extends Model 15 15 { 16 static function Get Desc(): ModelDesc16 static function GetModelDesc(): ModelDesc 17 17 { 18 18 $Desc = new ModelDesc(self::GetClassName()); … … 30 30 class ActionIcon extends Model 31 31 { 32 static function Get Desc(): ModelDesc32 static function GetModelDesc(): ModelDesc 33 33 { 34 34 $Desc = new ModelDesc(self::GetClassName()); … … 40 40 class ActionGroup extends Model 41 41 { 42 static function Get Desc(): ModelDesc42 static function GetModelDesc(): ModelDesc 43 43 { 44 44 $Desc = new ModelDesc(self::GetClassName()); … … 50 50 class ActionType extends Model 51 51 { 52 static function Get Desc(): ModelDesc52 static function GetModelDesc(): ModelDesc 53 53 { 54 54 $Desc = new ModelDesc(self::GetClassName()); … … 60 60 class Language extends Model 61 61 { 62 static function Get Desc(): ModelDesc62 static function GetModelDesc(): ModelDesc 63 63 { 64 64 $Desc = new ModelDesc(self::GetClassName()); … … 70 70 class Country extends Model 71 71 { 72 static function Get Desc(): ModelDesc72 static function GetModelDesc(): ModelDesc 73 73 { 74 74 $Desc = new ModelDesc(self::GetClassName());
Note:
See TracChangeset
for help on using the changeset viewer.