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

    r887 r893  
    55include_once(dirname(__FILE__).'/ImportFio.php');
    66include_once(dirname(__FILE__).'/../Scheduler/Scheduler.php');
     7
     8class FinanceBankImport extends Model
     9{
     10  static function GetDesc(): ModelDesc
     11  {
     12    $Desc = new ModelDesc('FinanceBankImport');
     13    $Desc->AddReference('BankAccount', 'BankAccount');
     14    $Desc->AddDate('Time');
     15    $Desc->AddString('Identification');
     16    $Desc->AddString('AccountNumber');
     17    $Desc->AddString('BankCode');
     18    $Desc->AddString('VariableSymbol');
     19    $Desc->AddString('ConstantSymbol');
     20    $Desc->AddString('SpecificSymbol');
     21    $Desc->AddFloat('Value');
     22    $Desc->AddReference('Currency', 'Currency');
     23    $Desc->AddString('OffsetAccountName');
     24    $Desc->AddReference('FinanceOperation', 'FinanceOperation');
     25    return $Desc;
     26  }
     27}
    728
    829class ModuleFinanceBankAPI extends AppModule
     
    1940  }
    2041
    21   function DoInstall(): void
     42  function GetModels(): array
    2243  {
    23   }
    24 
    25   function DoUninstall(): void
    26   {
     44    return array('FinanceBankImport');
    2745  }
    2846
     
    6583    ModuleIS::Cast($this->System->GetModule('IS'))->RegisterDashboardItem('FinanceBankAPI',
    6684      array($this, 'ShowDashboardItem'));
    67   }
    68 
    69   function DoStop(): void
    70   {
    7185  }
    7286
Note: See TracChangeset for help on using the changeset viewer.