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

    r521 r524  
    99  function Show()
    1010  {
    11     if(!$this->System->Modules['User']->CheckPermission('Finance', 'Manage'))
     11    if(!$this->System->User->CheckPermission('Finance', 'Manage'))
    1212      return('Nemáte oprávnění');
    1313
     
    203203    $Form->SaveValuesToDatabase(0);
    204204    $Output = $this->SystemMessage('Finance', 'Zařízení vloženo.');
    205     $this->System->Modules['Log']->NewRecord('Finance', 'NewDeviceInserted');
     205    $this->System->ModuleManager->Modules['Log']->NewRecord('Finance', 'NewDeviceInserted');
    206206    return($Output);
    207207  }
     
    223223    $Form->SaveValuesToDatabase(0);
    224224    $Output = $this->SystemMessage('Finance', 'Záznam historie zařízení vložen.');
    225     $this->System->Modules['Log']->NewRecord('Finance', 'NewDeviceHistoryInserted');
     225    $this->System->ModuleManager->Modules['Log']->NewRecord('Finance', 'NewDeviceHistoryInserted');
    226226    return($Output);
    227227  }
     
    246246    $DbRow = $DbResult->fetch_assoc();
    247247    $Output = $this->SystemMessage('Finance', 'Platba vložena '.$DbRow['BillCode'].'.');
    248     $this->System->Modules['Log']->NewRecord('Finance', 'NewPaymentInserted');
     248    $this->System->ModuleManager->Modules['Log']->NewRecord('Finance', 'NewPaymentInserted');
    249249    return($Output);
    250250  }
     
    272272    $DbRow = $DbResult->fetch_assoc();
    273273    $Output = $this->SystemMessage('Finance', 'Faktura vložena '.$DbRow['BillCode'].'.');
    274     $this->System->Modules['Log']->NewRecord('Finance', 'NewInvoiceInserted');
     274    $this->System->ModuleManager->Modules['Log']->NewRecord('Finance', 'NewInvoiceInserted');
    275275    return($Output);
    276276  }
     
    308308  function ShowMonthlyPayment()
    309309  {
    310     if(!$this->System->Modules['User']->CheckPermission('Finance', 'Manage')) return('Nemáte oprávnění');
     310    if(!$this->System->User->CheckPermission('Finance', 'Manage')) return('Nemáte oprávnění');
    311311    $SQL = 'SELECT Member.*, MemberPayment.MonthlyTotal AS Monthly, '.
    312312      'MemberPayment.Cash AS Cash, '.
     
    450450  function ProcessMonthlyPayment()
    451451  {
    452     if(!$this->System->Modules['User']->CheckPermission('Finance', 'Manage')) return('Nemáte oprávnění');
     452    if(!$this->System->User->CheckPermission('Finance', 'Manage')) return('Nemáte oprávnění');
    453453    $Output = '';
    454454
Note: See TracChangeset for help on using the changeset viewer.