<?php

class Page extends View
{
  public string $Title;
  public string $Description;
  public string $ParentClass;
  public bool $RawPage;
  public bool $BasicHTML;
  public $OnSystemMessage;
  public string $Load;
  public string $Unload;

  function __construct(System $System)
  {
    parent::__construct($System);
    $this->RawPage = false;
    $this->BasicHTML = false;
    $this->OnSystemMessage = array();
    $this->Title = "";
    $this->Description = "";
    $this->ParentClass = "";
  }

  function Show(): string
  {
    return '';
  }

  function GetOutput(): string
  {
    $Output = $this->Show();
    return $Output;
  }

  function SystemMessage(string $Title, string $Text): string
  {
    return call_user_func_array($this->OnSystemMessage, array($Title, $Text));
  }
}
