Changeset 95 for trunk/Modules/Admin


Ignore:
Timestamp:
Dec 6, 2021, 11:33:48 AM (3 years ago)
Author:
chronos
Message:
  • Modified: Updated Common package.
  • Added: Explicit types for better type checking.
  • Fixed: Support for php 8.0.
File:
1 edited

Legend:

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

    r92 r95  
    11<?php
    22
    3 class ModuleAdmin extends AppModule
     3class ModuleAdmin extends Module
    44{
    55  function __construct($System)
     
    1414  }
    1515
    16   function DoStart()
     16  function DoStart(): void
    1717  {
    18     $this->System->RegisterPage('admin', 'PageAdmin');
    19   }
    20 
    21   function DoInstall()
    22   {
    23    }
    24 
    25   function DoUninstall()
    26   {
    27   }
    28 
    29   function DoUpgrade()
    30   {
     18    $this->System->RegisterPage(['admin'], 'PageAdmin');
    3119  }
    3220}
     
    3927  }
    4028
    41   function Show()
     29  function Show(): string
    4230  {
    4331    if (array_key_exists('Operation', $_GET)) $Operation = $_GET['Operation']; else $Operation = '';
     
    6250  }
    6351
    64   function ShowNone()
     52  function ShowNone(): string
    6553  {
    6654    $Table = array(
     
    7866  }
    7967
    80   function ShowEdit()
     68  function ShowEdit(): string
    8169  {
    8270    $DbResult = $this->Database->select('Measure', '*', 'Id='.addslashes($_GET['MeasureId']));
     
    8674  }
    8775
    88   function ShowAdd()
     76  function ShowAdd(): string
    8977  {
    9078    $Values = array();
     
    9280  }
    9381
    94   function ShowRebuildCache()
     82  function ShowDelete(): string
     83  {
     84    return '';
     85  }
     86
     87  function ShowRebuildCache(): string
    9588  {
    9689    echo("Vytvařím novou cache...<br>");
     
    10093    $Measure->RebuildMeasureCache();
    10194    echo('Dokončeno<br>');
     95    return '';
    10296  }
    10397}
Note: See TracChangeset for help on using the changeset viewer.