Changeset 888 for trunk/Modules/Info/Info.php
- Timestamp:
- Dec 27, 2022, 7:50:23 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Info/Info.php
r880 r888 1 1 <?php 2 2 3 class ModuleInfo extends AppModule3 class ModuleInfo extends Module 4 4 { 5 5 function __construct(System $System) … … 14 14 } 15 15 16 function DoStart() 16 function DoStart(): void 17 17 { 18 $this->System->RegisterMenuItem(array(18 Core::Cast($this->System)->RegisterMenuItem(array( 19 19 'Title' => T('Instructions'), 20 20 'Hint' => 'Informace k překladu hry', … … 23 23 'Icon' => '', 24 24 )); 25 $this->System->RegisterPage( 'info', 'PageInfo');26 $this->System->RegisterMenuItem(array(25 $this->System->RegisterPage(['info'], 'PageInfo'); 26 Core::Cast($this->System)->RegisterMenuItem(array( 27 27 'Title' => T('Presentation'), 28 28 'Hint' => 'Prezentace a motivace překladu', … … 31 31 'Icon' => '', 32 32 )); 33 $this->System->RegisterPage( 'promotion', 'PagePromotion');33 $this->System->RegisterPage(['promotion'], 'PagePromotion'); 34 34 } 35 35 } … … 37 37 class PageInfo extends Page 38 38 { 39 function Show() 39 function Show(): string 40 40 { 41 41 $this->Title = T('Information for translators'); … … 75 75 class PagePromotion extends Page 76 76 { 77 function Show() 77 function Show(): string 78 78 { 79 79 $this->Title = T('Promotion');
Note:
See TracChangeset
for help on using the changeset viewer.