Ignore:
Timestamp:
Feb 17, 2021, 12:30:23 PM (4 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

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

    r894 r899  
    215215}
    216216
    217 class ModuleOpeningHours extends AppModule
     217class ModuleOpeningHours extends Module
    218218{
    219219  function __construct(System $System)
     
    223223    $this->Version = '1.0';
    224224    $this->Creator = 'Chronos';
    225     $this->License = 'GNU/GPL';
     225    $this->License = 'GNU/GPLv3';
    226226    $this->Description = 'Show subject opening hours with time to open or time to close';
    227     $this->Dependencies = array();
    228   }
    229 
    230   function GetModels(): array
    231   {
    232     return array(SubjectOpenTime::GetClassName(), SubjectOpenTimeDay::GetClassName());
     227    $this->Models = array(SubjectOpenTime::GetClassName(), SubjectOpenTimeDay::GetClassName());
    233228  }
    234229
     
    246241class SubjectOpenTime extends Model
    247242{
    248   static function GetDesc(): ModelDesc
     243  static function GetModelDesc(): ModelDesc
    249244  {
    250245    $Desc = new ModelDesc(self::GetClassName());
     
    259254class SubjectOpenTimeDay extends Model
    260255{
    261   static function GetDesc(): ModelDesc
     256  static function GetModelDesc(): ModelDesc
    262257  {
    263258    $Desc = new ModelDesc(self::GetClassName());
Note: See TracChangeset for help on using the changeset viewer.