Ignore:
Timestamp:
Feb 17, 2021, 12:30:23 PM (4 years ago)
Author:
chronos
Message:
File:
1 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
Note: See TracChangeset for help on using the changeset viewer.