Changeset 899 for trunk/Modules/Meals


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

Legend:

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

    r894 r899  
    182182}
    183183
    184 class ModuleMeals extends AppModule
     184class ModuleMeals extends Module
    185185{
    186186  function __construct(System $System)
     
    190190    $this->Version = '1.0';
    191191    $this->Creator = 'Chronos';
    192     $this->License = 'GNU/GPL';
     192    $this->License = 'GNU/GPLv3';
    193193    $this->Description = 'Module for management meals. Can print week menu.';
    194     $this->Dependencies = array('Log');
    195     $this->SupportedModels = array('Meals', 'MealsInfo');
    196   }
    197 
    198   function GetModels(): array
    199   {
    200     return array(Meals::GetClassName(), MealsInfo::GetClassName());
     194    $this->Dependencies = array(ModuleLog::GetName());
     195    $this->Models = array(Meals::GetClassName(), MealsInfo::GetClassName());
    201196  }
    202197
     
    209204class Meals extends Model
    210205{
    211   static function GetDesc(): ModelDesc
     206  static function GetModelDesc(): ModelDesc
    212207  {
    213208    $Desc = new ModelDesc(self::GetClassName());
     
    222217class MealsInfo extends Model
    223218{
    224   static function GetDesc(): ModelDesc
     219  static function GetModelDesc(): ModelDesc
    225220  {
    226221    $Desc = new ModelDesc(self::GetClassName());
Note: See TracChangeset for help on using the changeset viewer.