Changeset 63 for trunk/Modules/Dance


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

    r55 r63  
    11<?php
    22
    3 class ModuleDance extends AppModule
     3class ModuleDance extends Module
    44{
    55  function __construct($System)
     
    1515  }
    1616
    17   function Start()
    18   {
    19     $this->System->RegisterPage('tance', 'PageDanceList');
    20     $this->System->RegisterPage('tanec', 'PageDance');
    21     $this->System->RegisterPage('figura', 'PageDanceFigure');
    22     $this->System->RegisterPage('figury', 'PageDanceFigureList');
    23     $this->System->RegisterMenuItem('/tance', 'Tance');
    24     $this->System->RegisterMenuItem('/figury', 'Figury');
    25   } 
     17  function Start(): void
     18  {
     19    $this->System->RegisterPage(['tance'], 'PageDanceList');
     20    $this->System->RegisterPage(['tanec'], 'PageDance');
     21    $this->System->RegisterPage(['figura'], 'PageDanceFigure');
     22    $this->System->RegisterPage(['figury'], 'PageDanceFigureList');
     23    Core::Cast($this->System)->RegisterMenuItem('/tance', 'Tance');
     24    Core::Cast($this->System)->RegisterMenuItem('/figury', 'Figury');
     25  }
    2626}
    2727
     
    3131  {
    3232    parent::__construct($System);
    33     $this->FullTitle = 'Tanec';
    34     $this->ShortTitle = 'Tanec';
    35   }
    36 
    37   function Show()
    38   {
    39     $this->Title = 'Tanec - Tance - '.$this->Title;
     33    $this->Title = 'Tanec';
     34  }
     35
     36  function Show(): string
     37  {
    4038    $Output = '';
    4139    if (count($this->System->PathItems) > 1)
     
    10199        $Output .= '</td>';
    102100      }*/
    103  
     101
    104102    return $Output;
    105103  }
     
    111109  {
    112110    parent::__construct($System);
    113     $this->FullTitle = 'Tance';
    114     $this->ShortTitle = 'Tance';
    115   }
    116 
    117   function Show()
    118   {
    119     $this->Title = 'Tance - '.$this->Title;
     111    $this->Title = 'Tance';
     112  }
     113
     114  function Show(): string
     115  {
    120116    $Output = '<div class="title">Tance</div>';
    121117    $Output .= '<table class="WideTable">';
     
    141137  {
    142138    parent::__construct($System);
    143     $this->FullTitle = 'Taneční figura';
    144     $this->ShortTitle = 'Figura';
    145   }
    146 
    147   function Show()
    148   {
    149     $this->Title = 'Taneční figura - Tance - '.$this->Title;
     139    $this->Title = 'Figura';
     140    $this->Description = 'Taneční figura';
     141  }
     142
     143  function Show(): string
     144  {
    150145    $Output = '';
    151146    if (count($this->System->PathItems) > 1)
     
    196191        $Output .= '</td>';
    197192      }*/
    198  
     193
    199194    return $Output;
    200195  }
     
    206201  {
    207202    parent::__construct($System);
    208     $this->FullTitle = 'Tance';
    209     $this->ShortTitle = 'Tance';
    210   }
    211 
    212   function Show()
    213   {
    214     $this->Title = 'Tance - '.$this->Title;
     203    $this->Title = 'Figury';
     204    $this->Description = 'Taneční figury';
     205  }
     206
     207  function Show(): string
     208  {
    215209    $Output = '<div class="title">Taneční figury</div>';
    216210    $Output .= '<table class="WideTable">';
Note: See TracChangeset for help on using the changeset viewer.