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/Finance/Finance.php

    r891 r893  
    483483  }
    484484
    485   static function GetModels(): array
     485  function GetModels(): array
    486486  {
    487487    return array(
     
    503503      'Contract'
    504504    );
    505   }
    506 
    507   function DoInstall(): void
    508   {
    509     foreach (self::GetModels() as $Model)
    510     {
    511       $this->InstallModel($Model::GetDesc());
    512     }
    513   }
    514 
    515   function DoUninstall(): void
    516   {
    517     foreach (array_reverse(self::GetModels()) as $Model)
    518     {
    519       $this->UninstallModel($Model::GetDesc());
    520     }
    521505  }
    522506
Note: See TracChangeset for help on using the changeset viewer.