Changeset 899 for trunk/Modules/System


Ignore:
Timestamp:
Feb 17, 2021, 12:30:23 PM (4 years ago)
Author:
chronos
Message:
Location:
trunk/Modules/System
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/System/System.php

    r897 r899  
    33include_once(dirname(__FILE__).'/SystemModels.php');
    44
    5 class ModuleSystem extends AppModule
     5class ModuleSystem extends Module
    66{
    77  public bool $InstalledChecked;
     
    1313    $this->Version = '1.0';
    1414    $this->Creator = 'Chronos';
    15     $this->License = 'GNU/GPL';
     15    $this->License = 'GNU/GPLv3';
    1616    $this->Description = 'Base system module';
    17     $this->Dependencies = array();
    1817    $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(),
    2419      ActionType::GetClassName(), Action::GetClassName(), Language::GetClassName(), Country::GetClassName());
    2520  }
     
    141136  }
    142137
    143   static function Cast(AppModule $AppModule): ModuleSystem
     138  static function Cast(Module $Module): ModuleSystem
    144139  {
    145     if ($AppModule instanceof ModuleSystem)
     140    if ($Module instanceof ModuleSystem)
    146141    {
    147       return $AppModule;
     142      return $Module;
    148143    }
    149     throw new Exception('Expected ModuleSystem type but got '.gettype($AppModule));
     144    throw new Exception('Expected ModuleSystem type but got '.gettype($Module));
    150145  }
    151146
  • trunk/Modules/System/SystemModels.php

    r895 r899  
    33class UnitOfMeasure extends Model
    44{
    5   static function GetDesc(): ModelDesc
     5  static function GetModelDesc(): ModelDesc
    66  {
    77    $Desc = new ModelDesc(self::GetClassName());
     
    1414class Action extends Model
    1515{
    16   static function GetDesc(): ModelDesc
     16  static function GetModelDesc(): ModelDesc
    1717  {
    1818    $Desc = new ModelDesc(self::GetClassName());
     
    3030class ActionIcon extends Model
    3131{
    32   static function GetDesc(): ModelDesc
     32  static function GetModelDesc(): ModelDesc
    3333  {
    3434    $Desc = new ModelDesc(self::GetClassName());
     
    4040class ActionGroup extends Model
    4141{
    42   static function GetDesc(): ModelDesc
     42  static function GetModelDesc(): ModelDesc
    4343  {
    4444    $Desc = new ModelDesc(self::GetClassName());
     
    5050class ActionType extends Model
    5151{
    52   static function GetDesc(): ModelDesc
     52  static function GetModelDesc(): ModelDesc
    5353  {
    5454    $Desc = new ModelDesc(self::GetClassName());
     
    6060class Language extends Model
    6161{
    62   static function GetDesc(): ModelDesc
     62  static function GetModelDesc(): ModelDesc
    6363  {
    6464    $Desc = new ModelDesc(self::GetClassName());
     
    7070class Country extends Model
    7171{
    72   static function GetDesc(): ModelDesc
     72  static function GetModelDesc(): ModelDesc
    7373  {
    7474    $Desc = new ModelDesc(self::GetClassName());
Note: See TracChangeset for help on using the changeset viewer.