Changeset 63 for trunk/Modules/School/School.php
- Timestamp:
- Aug 3, 2021, 11:20:41 AM (3 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 nbproject2 Config.php3 1 .settings 4 2 .project 5 3 .buildpath 4 .htaccess
-
- Property svn:ignore
-
trunk/Modules/School/School.php
r55 r63 1 1 <?php 2 2 3 class ModuleSchool extends AppModule3 class ModuleSchool extends Module 4 4 { 5 5 function __construct($System) … … 15 15 } 16 16 17 function Start() 17 function Start(): void 18 18 { 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 } 22 22 } 23 23 … … 27 27 { 28 28 parent::__construct($System); 29 $this-> FullTitle = 'Taneční školy';30 $this-> ShortTitle = 'Školy';29 $this->Title = 'Školy'; 30 $this->Description = 'Taneční školy'; 31 31 } 32 32 33 function Show() 33 function Show(): string 34 34 { 35 $this->Title = 'Taneční školy - '.$this->Title;36 35 $Output = '<div class="title">Taneční školy</div>'; 37 36 $Output .= '<table class="WideTable">';
Note:
See TracChangeset
for help on using the changeset viewer.