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/Club/Club.php

    r55 r63  
    11<?php
    22
    3 class ModuleClub extends AppModule
     3class ModuleClub extends Module
    44{
    55  function __construct($System)
     
    1515  }
    1616
    17   function Start()
     17  function Start(): void
    1818  {
    19     $this->System->RegisterPage('tancirny', 'PageDanceClub');
    20   } 
     19    $this->System->RegisterPage(['tancirny'], 'PageDanceClub');
     20  }
    2121}
    2222
    2323class PageClub extends Page
    24 { 
     24{
    2525  function __construct($System)
    2626  {
    2727    parent::__construct($System);
    28     $this->FullTitle = 'Tančírny';
    29     $this->ShortTitle = 'Tančírny';
     28    $this->Title = 'Tančírny';
    3029  }
    31  
    32   function Show()
     30
     31  function Show(): string
    3332  {
    34    
    3533    return 'Dance clubs';
    3634  }
Note: See TracChangeset for help on using the changeset viewer.