Changeset 899 for trunk/Modules/EmailQueue/EmailQueue.php
- Timestamp:
- Feb 17, 2021, 12:30:23 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/EmailQueue/EmailQueue.php
r894 r899 21 21 class EmailQueue extends Model 22 22 { 23 static function Get Desc(): ModelDesc23 static function GetModelDesc(): ModelDesc 24 24 { 25 25 $Desc = new ModelDesc(self::GetClassName()); … … 36 36 } 37 37 38 class ModuleEmailQueue extends AppModule38 class ModuleEmailQueue extends Module 39 39 { 40 40 function __construct(System $System) … … 46 46 $this->License = 'GNU/GPLv3'; 47 47 $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()); 54 50 } 55 51 … … 123 119 } 124 120 125 static function Cast( AppModule $AppModule): ModuleEmailQueue121 static function Cast(Module $Module): ModuleEmailQueue 126 122 { 127 if ($ AppModule instanceof ModuleEmailQueue)123 if ($Module instanceof ModuleEmailQueue) 128 124 { 129 return $ AppModule;125 return $Module; 130 126 } 131 throw new Exception('Expected ModuleEmailQueue type but '.gettype($ AppModule));127 throw new Exception('Expected ModuleEmailQueue type but '.gettype($Module)); 132 128 } 133 129 }
Note:
See TracChangeset
for help on using the changeset viewer.