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

    r891 r893  
    6363      ),
    6464      //'AfterInsert' => array($this, 'AfterInsertFinanceYear'),
    65     ));   
     65    ));
    6666    $this->System->FormManager->RegisterFormType('TDocumentLine', array(
    6767      'Type' => 'Reference',
     
    7777      'Name' => 'Name',
    7878      'Filter' => '1',
    79     ));   
     79    ));
    8080  }
    8181
    82   function DoInstall(): void
     82  function GetModels(): array
    8383  {
    84     $this->InstallModel(FinanceYear::GetDesc());   
    85     $this->InstallModel(DocumentLineCode::GetDesc());
    86     $this->InstallModel(DocumentLine::GetDesc());
    87     $this->InstallModel(DocumentLineSequence::GetDesc());
    88   }
    89 
    90   function DoUninstall(): void
    91   {
    92     $this->UninstallModel(DocumentLineSequence::GetDesc());
    93     $this->UninstallModel(DocumentLine::GetDesc());
    94     $this->UninstallModel(DocumentLineCode::GetDesc());
    95     $this->UninstallModel(FinanceYear::GetDesc());   
     84    return array('FinanceYear', 'DocumentLineCode', 'DocumentLine', 'DocumentLineSequence');
    9685  }
    9786}
Note: See TracChangeset for help on using the changeset viewer.