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

Legend:

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

    r891 r893  
    131131  }
    132132
    133   function DoInstall(): void
    134   {
    135     $this->InstallModel(Country::GetDesc());
    136     $this->InstallModel(Subject::GetDesc());
    137     $this->InstallModel(ContactCategory::GetDesc());
    138     $this->InstallModel(Contact::GetDesc());
    139   }
    140 
    141   function DoUninstall(): void
    142   {
    143     $this->UninstallModel(Contact::GetDesc());
    144     $this->UninstallModel(ContactCategory::GetDesc());
    145     $this->UninstallModel(Subject::GetDesc());
    146     $this->UninstallModel(Country::GetDesc());
     133  function GetModels(): array
     134  {
     135    return array('Country', 'Subject', 'ContactCategory', 'Contact');
    147136  }
    148137
Note: See TracChangeset for help on using the changeset viewer.