Changeset 63 for trunk/Modules/School


Ignore:
Timestamp:
Aug 3, 2021, 11:20:41 AM (3 years ago)
Author:
chronos
Message:
  • Modified: Used explicit types where possible for better error reporting.
  • Modified: Updated Common packaged to newer version.
  • Modified: Simplified pages title.
  • Added: Simple keyword based spam filter for meet items.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1 nbproject
        2 Config.php
        31.settings
        42.project
        53.buildpath
         4.htaccess
  • trunk/Modules/School/School.php

    r55 r63  
    11<?php
    22
    3 class ModuleSchool extends AppModule
     3class ModuleSchool extends Module
    44{
    55  function __construct($System)
     
    1515  }
    1616
    17   function Start()
     17  function Start(): void
    1818  {
    19     $this->System->RegisterPage('skoly', 'PageSchoolList');
    20     $this->System->RegisterMenuItem('/skoly', 'Školy');
    21   } 
     19    $this->System->RegisterPage(['skoly'], 'PageSchoolList');
     20    Core::Cast($this->System)->RegisterMenuItem('/skoly', 'Školy');
     21  }
    2222}
    2323
     
    2727  {
    2828    parent::__construct($System);
    29     $this->FullTitle = 'Taneční školy';
    30     $this->ShortTitle = 'Školy';
     29    $this->Title = 'Školy';
     30    $this->Description = 'Taneční školy';
    3131  }
    3232
    33   function Show()
     33  function Show(): string
    3434  {
    35     $this->Title = 'Taneční školy - '.$this->Title;
    3635    $Output = '<div class="title">Taneční školy</div>';
    3736    $Output .= '<table class="WideTable">';
Note: See TracChangeset for help on using the changeset viewer.