Changeset 899 for trunk/Modules/Search/Search.php
- Timestamp:
- Feb 17, 2021, 12:30:23 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Search/Search.php
r894 r899 47 47 } 48 48 49 class ModuleSearch extends AppModule49 class ModuleSearch extends Module 50 50 { 51 51 public array $Items; … … 58 58 $this->Version = '1.0'; 59 59 $this->Creator = 'Chronos'; 60 $this->License = 'GNU/GPL ';60 $this->License = 'GNU/GPLv3'; 61 61 $this->Description = 'Allow search through registered content objects'; 62 $this->Dependencies = array(); 62 63 63 $this->MaxItemCount = 10; 64 64 $this->Items = array(); … … 75 75 } 76 76 77 static function Cast( AppModule $AppModule): ModuleSearch77 static function Cast(Module $Module): ModuleSearch 78 78 { 79 if ($ AppModule instanceof ModuleSearch)79 if ($Module instanceof ModuleSearch) 80 80 { 81 return $ AppModule;81 return $Module; 82 82 } 83 throw new Exception('Expected ModuleSearch type but got '.gettype($ AppModule));83 throw new Exception('Expected ModuleSearch type but got '.gettype($Module)); 84 84 } 85 85 }
Note:
See TracChangeset
for help on using the changeset viewer.