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/Packages/Common/Page.php

    r874 r887  
    33class Page extends View
    44{
    5   var $FullTitle;
    6   var $ShortTitle;
    7   var $ParentClass;
    8   var $ClearPage;
     5  public string $FullTitle;
     6  public string $ShortTitle;
     7  public string $ParentClass;
     8  public bool $ClearPage;
    99  var $OnSystemMessage;
    10   var $Load;
    11   var $Unload;
     10  public string $Load;
     11  public string $Unload;
    1212
    13   function __construct($System)
     13  function __construct(System $System)
    1414  {
    1515    parent::__construct($System);
    1616    $this->ClearPage = false;
    1717    $this->OnSystemMessage = array();
     18    $this->FullTitle = "";
     19    $this->ShortTitle = "";
     20    $this->ParentClass = "";
    1821  }
    1922
    20   function Show()
     23  function Show(): string
    2124  {
    2225    return '';
    2326  }
    2427
    25   function GetOutput()
     28  function GetOutput(): string
    2629  {
    2730    $Output = $this->Show();
     
    2932  }
    3033
    31   function SystemMessage($Title, $Text)
     34  function SystemMessage(string $Title, string $Text): string
    3235  {
    3336    return call_user_func_array($this->OnSystemMessage, array($Title, $Text));
Note: See TracChangeset for help on using the changeset viewer.