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/Network/HostList.php

    r874 r887  
    55class PageHostList extends Page
    66{
    7   var $FullTitle = 'Seznam registrovaných počítačů';
    8   var $ShortTitle = 'Seznam počítačů';
    9   var $ParentClass = 'PageNetwork';
     7  function __construct(System $System)
     8  {
     9    parent::__construct($System);
     10    $this->FullTitle = 'Seznam registrovaných počítačů';
     11    $this->ShortTitle = 'Seznam počítačů';
     12    $this->ParentClass = 'PageNetwork';
     13  }
    1014
    11   function Show()
     15  function Show(): string
    1216  {
    13     if (!$this->System->User->CheckPermission('Network', 'ShowHostList'))
     17    if (!ModuleUser::Cast($this->System->GetModule('User'))->User->CheckPermission('Network', 'ShowHostList'))
    1418      return 'Nemáte oprávnění';
    1519
Note: See TracChangeset for help on using the changeset viewer.