Ignore:
Timestamp:
Nov 20, 2020, 12:08:12 AM (4 years ago)
Author:
chronos
Message:
  • Added: Static types added to almost all classes, methods and function. Supported by PHP 7.4.
  • Fixed: Various found code issues.
File:
1 edited

Legend:

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

    r874 r887  
    33class ModuleCustomer extends AppModule
    44{
    5   function __construct($System)
     5  function __construct(System $System)
    66  {
    77    parent::__construct($System);
     
    1414  }
    1515
    16   function DoStart()
     16  function DoStart(): void
    1717  {
    1818    $this->System->FormManager->RegisterClass('Member', array(
     
    187187    ));
    188188
    189     $this->System->ModuleManager->Modules['IS']->RegisterDashboardItem('Customer',
    190       array('ModuleCustomer', 'ShowDashboardItem'));
     189    ModuleIS::Cast($this->System->GetModule('IS'))->RegisterDashboardItem('Customer',
     190      array($this, 'ShowDashboardItem'));
    191191  }
    192192
    193   function ShowDashboardItem()
     193  function ShowDashboardItem(): string
    194194  {
    195195    $DbResult = $this->Database->select('Member', 'COUNT(*)', '1');
Note: See TracChangeset for help on using the changeset viewer.