Ignore:
Timestamp:
Apr 20, 2013, 8:51:15 PM (11 years ago)
Author:
chronos
Message:
  • Upraveno: Definice třída User přesunuta do modulu User. Existuje aplikační modul System->ModuleManager->ModulesUser a samotná instance třídy System->User.
  • Upraveno: Zbylá inicializace starého modulového systému třídy Module přesunuta do startovní části aplikačních modulů.
  • Upraveno: Třída System přesunuta ze souboru Common/Global do samostatného souboru Common/System.
File:
1 edited

Legend:

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

    r521 r524  
    3737  function Start()
    3838  {
     39    global $Config;
     40   
    3941    parent::Start();
    4042    $this->System->RegisterPage('finance', 'PageFinance');
     
    4850    $this->System->RegisterPage(array('finance', 'import'), 'PageFinanceImportPayment');   
    4951    $this->System->RegisterPage(array('finance', 'zivnost'), 'PageFinanceTaxFiling');   
     52
     53    $this->System->AddModule(new Bill($this->System));
     54    $this->System->AddModule(new Finance($this->System));
     55    $this->System->Modules['Finance']->MainSubject = $Config['Finance']['MainSubjectId'];
     56    $this->System->Modules['Finance']->DirectoryId = $Config['Finance']['DirectoryId'];
     57    $this->System->Modules['Finance']->LoadMonthParameters(0); 
    5058  } 
    5159 
Note: See TracChangeset for help on using the changeset viewer.