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

Legend:

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

    r894 r899  
    2121class EmailQueue extends Model
    2222{
    23   static function GetDesc(): ModelDesc
     23  static function GetModelDesc(): ModelDesc
    2424  {
    2525    $Desc = new ModelDesc(self::GetClassName());
     
    3636}
    3737
    38 class ModuleEmailQueue extends AppModule
     38class ModuleEmailQueue extends Module
    3939{
    4040  function __construct(System $System)
     
    4646    $this->License = 'GNU/GPLv3';
    4747    $this->Description = 'Queue for delayed email sending and history';
    48     $this->Dependencies = array('Log');
    49   }
    50 
    51   function GetModels(): array
    52   {
    53     return array(EmailQueue::GetClassName());
     48    $this->Dependencies = array(ModuleLog::GetName());
     49    $this->Models = array(EmailQueue::GetClassName());
    5450  }
    5551
     
    123119  }
    124120
    125   static function Cast(AppModule $AppModule): ModuleEmailQueue
     121  static function Cast(Module $Module): ModuleEmailQueue
    126122  {
    127     if ($AppModule instanceof ModuleEmailQueue)
     123    if ($Module instanceof ModuleEmailQueue)
    128124    {
    129       return $AppModule;
     125      return $Module;
    130126    }
    131     throw new Exception('Expected ModuleEmailQueue type but '.gettype($AppModule));
     127    throw new Exception('Expected ModuleEmailQueue type but '.gettype($Module));
    132128  }
    133129}
Note: See TracChangeset for help on using the changeset viewer.