source: trunk/Modules/Club/Club.php

Last change on this file was 63, checked in by chronos, 3 years ago
  • 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.
File size: 651 bytes
Line 
1<?php
2
3class ModuleClub extends Module
4{
5 function __construct($System)
6 {
7 parent::__construct($System);
8 $this->Name = 'Club';
9 $this->Version = '1.0';
10 $this->Creator = 'Chronos';
11 $this->License = 'GNU/GPL';
12 $this->Description = 'List of dance clubs';
13 $this->Dependencies = array();
14 $this->RSSChannels = array();
15 }
16
17 function Start(): void
18 {
19 $this->System->RegisterPage(['tancirny'], 'PageDanceClub');
20 }
21}
22
23class PageClub extends Page
24{
25 function __construct($System)
26 {
27 parent::__construct($System);
28 $this->Title = 'Tančírny';
29 }
30
31 function Show(): string
32 {
33 return 'Dance clubs';
34 }
35}
Note: See TracBrowser for help on using the repository browser.