source: trunk/Packages/Common/Page.php

Last change on this file was 888, checked in by chronos, 2 years ago
  • Modified: Updated Common package to latest version.
  • Modified: Fixes related to PHP 8.x.
File size: 736 bytes
Line 
1<?php
2
3class Page extends View
4{
5 public string $Title;
6 public string $Description;
7 public string $ParentClass;
8 public bool $RawPage;
9 public $OnSystemMessage;
10 public string $Load;
11 public string $Unload;
12
13 function __construct(System $System)
14 {
15 parent::__construct($System);
16 $this->RawPage = false;
17 $this->OnSystemMessage = array();
18 $this->Title = "";
19 $this->Description = "";
20 $this->ParentClass = "";
21 }
22
23 function Show(): string
24 {
25 return '';
26 }
27
28 function GetOutput(): string
29 {
30 $Output = $this->Show();
31 return $Output;
32 }
33
34 function SystemMessage(string $Title, string $Text): string
35 {
36 return call_user_func_array($this->OnSystemMessage, array($Title, $Text));
37 }
38}
Note: See TracBrowser for help on using the repository browser.