Changeset 888 for trunk/Modules/Search
- Timestamp:
- Dec 27, 2022, 7:50:23 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Search/Search.php
r880 r888 1 1 <?php 2 2 3 class ModuleSearch extends AppModule3 class ModuleSearch extends Module 4 4 { 5 5 var $SearchItems; … … 17 17 } 18 18 19 function DoStart() 19 function DoStart(): void 20 20 { 21 $this->System->RegisterPage( 'search', 'PageSearch');22 $this->System->RegisterPageBarItem('Left', 'Search', array($this, 'ShowSearchBox'));21 $this->System->RegisterPage(['search'], 'PageSearch'); 22 Core::Cast($this->System)->RegisterPageBarItem('Left', 'Search', array($this, 'ShowSearchBox')); 23 23 } 24 24 … … 54 54 class PageSearch extends Page 55 55 { 56 function Show() 56 function Show(): string 57 57 { 58 58 $this->Title = T('Search');
Note:
See TracChangeset
for help on using the changeset viewer.