Changeset 95 for trunk/Modules/Admin/Admin.php
- Timestamp:
- Dec 6, 2021, 11:33:48 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Admin/Admin.php
r92 r95 1 1 <?php 2 2 3 class ModuleAdmin extends AppModule3 class ModuleAdmin extends Module 4 4 { 5 5 function __construct($System) … … 14 14 } 15 15 16 function DoStart() 16 function DoStart(): void 17 17 { 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'); 31 19 } 32 20 } … … 39 27 } 40 28 41 function Show() 29 function Show(): string 42 30 { 43 31 if (array_key_exists('Operation', $_GET)) $Operation = $_GET['Operation']; else $Operation = ''; … … 62 50 } 63 51 64 function ShowNone() 52 function ShowNone(): string 65 53 { 66 54 $Table = array( … … 78 66 } 79 67 80 function ShowEdit() 68 function ShowEdit(): string 81 69 { 82 70 $DbResult = $this->Database->select('Measure', '*', 'Id='.addslashes($_GET['MeasureId'])); … … 86 74 } 87 75 88 function ShowAdd() 76 function ShowAdd(): string 89 77 { 90 78 $Values = array(); … … 92 80 } 93 81 94 function ShowRebuildCache() 82 function ShowDelete(): string 83 { 84 return ''; 85 } 86 87 function ShowRebuildCache(): string 95 88 { 96 89 echo("Vytvařím novou cache...<br>"); … … 100 93 $Measure->RebuildMeasureCache(); 101 94 echo('Dokončeno<br>'); 95 return ''; 102 96 } 103 97 }
Note:
See TracChangeset
for help on using the changeset viewer.