Ignore:
Timestamp:
Jan 4, 2021, 9:55:40 PM (4 years ago)
Author:
chronos
Message:
  • Modified: More work on modules models initialization.
File:
1 edited

Legend:

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

    r888 r893  
    1919}
    2020
     21class EmailQueue extends Model
     22{
     23  static function GetDesc(): ModelDesc
     24  {
     25    $Desc = new ModelDesc('EmailQueue');
     26    $Desc->AddDateTime('Time');
     27    $Desc->AddString('To');
     28    $Desc->AddString('Subject');
     29    $Desc->AddText('Content');
     30    $Desc->AddString('Headers');
     31    $Desc->AddBoolean('Archive');
     32    $Desc->AddString('From');
     33    $Desc->AddReference('AttachmentFile', 'File');
     34    return $Desc;
     35  }
     36}
     37
    2138class ModuleEmailQueue extends AppModule
    2239{
     
    3249  }
    3350
    34   function DoInstall(): void
     51  function GetModels(): array
    3552  {
    36   }
    37 
    38   function DoUninstall(): void
    39   {
     53    return array('EmailQueue');
    4054  }
    4155
     
    7286        ),
    7387    ));
    74   }
    75 
    76   function DoStop(): void
    77   {
    7888  }
    7989
Note: See TracChangeset for help on using the changeset viewer.