Changeset 899 for trunk/Modules/RSS/RSS.php
- Timestamp:
- Feb 17, 2021, 12:30:23 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/RSS/RSS.php
r887 r899 1 1 <?php 2 2 3 class ModuleRSS extends AppModule3 class ModuleRSS extends Module 4 4 { 5 5 public array $RSSChannels; … … 11 11 $this->Version = '1.0'; 12 12 $this->Creator = 'Chronos'; 13 $this->License = 'GNU/GPL ';13 $this->License = 'GNU/GPLv3'; 14 14 $this->Description = 'Web site RSS channel management'; 15 $this->Dependencies = array();16 15 $this->RSSChannels = array(); 17 16 } … … 20 19 { 21 20 $this->System->RegisterPage(['rss'], 'PageRSS'); 22 $this->System->RegisterPageHeader('RSS', array($this, 'ShowRSSHeader'));21 Core::Cast($this->System)->RegisterPageHeader('RSS', array($this, 'ShowRSSHeader')); 23 22 } 24 23 … … 52 51 } 53 52 54 static function Cast( AppModule $AppModule): ModuleRSS53 static function Cast(Module $Module): ModuleRSS 55 54 { 56 if ($ AppModule instanceof ModuleRSS)55 if ($Module instanceof ModuleRSS) 57 56 { 58 return $ AppModule;57 return $Module; 59 58 } 60 throw new Exception('Expected ModuleRSS type but got '.gettype($ AppModule));59 throw new Exception('Expected ModuleRSS type but got '.gettype($Module)); 61 60 } 62 61 }
Note:
See TracChangeset
for help on using the changeset viewer.