Ignore:
Timestamp:
Nov 20, 2020, 12:08:12 AM (3 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/NetworkTopology/NetworkTopology.php

    r874 r887  
    33class PageNetworkTopology extends Page
    44{
    5   var $FullTitle = 'Grafické zobrazení topologie sítě';
    6   var $ShortTitle = 'Topologie sítě';
    7   var $ParentClass = 'PagePortal';
    85  var $TopHostName = 'NIX-ROUTER';
    96
    10   function Show()
     7  function __construct(System $System)
     8  {
     9    parent::__construct($System);
     10    $this->FullTitle = 'Grafické zobrazení topologie sítě';
     11    $this->ShortTitle = 'Topologie sítě';
     12    $this->ParentClass = 'PagePortal';
     13  }
     14
     15  function Show(): string
    1116  {
    1217    if (count($this->System->PathItems) > 1)
     
    132137class ModuleNetworkTopology extends AppModule
    133138{
    134   function __construct($System)
     139  function __construct(System $System)
    135140  {
    136141    parent::__construct($System);
     
    143148  }
    144149
    145   function DoInstall()
     150  function DoInstall(): void
    146151  {
    147152  }
    148153
    149   function DoUnInstall()
     154  function DoUnInstall(): void
    150155  {
    151156  }
    152157
    153   function DoStart()
     158  function DoStart(): void
    154159  {
    155     $this->System->RegisterPage('topologie', 'PageNetworkTopology');
     160    $this->System->RegisterPage(['topologie'], 'PageNetworkTopology');
    156161  }
    157162}
Note: See TracChangeset for help on using the changeset viewer.