Changeset 887 for trunk/Modules/Task


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

    r760 r887  
    33class ModuleTask 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('Task', array(
     
    8989    ));
    9090
    91     $this->System->ModuleManager->Modules['IS']->RegisterDashboardItem('Task',
    92       array('ModuleTask', 'ShowDashboardItem'));
     91    ModuleIS::Cast($this->System->GetModule('IS'))->RegisterDashboardItem('Task',
     92      array($this, 'ShowDashboardItem'));
    9393  }
    9494
    95   function DoInstall()
     95  function DoInstall(): void
    9696  {
    97 
    9897  }
    9998
    100   function ShowDashboardItem()
     99  function ShowDashboardItem(): string
    101100  {
    102101    $DbResult = $this->Database->select('Task', 'COUNT(*)', '`Progress` < 100');
Note: See TracChangeset for help on using the changeset viewer.