Changeset 63 for trunk/Modules/RSS/RSS.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/RSS/RSS.php
r56 r63 1 1 <?php 2 2 3 class ModuleRSS extends AppModule3 class ModuleRSS extends Module 4 4 { 5 5 var $RSSChannels; … … 17 17 } 18 18 19 function Start() 19 function Start(): void 20 20 { 21 $this->System->RegisterPage( 'rss', 'PageRSS');22 $this->System->RegisterPageHeader('RSS', array($this, 'ShowRSSHeader'));21 $this->System->RegisterPage(array('rss'), 'PageRSS'); 22 Core::Cast($this->System)->RegisterPageHeader('RSS', array($this, 'ShowRSSHeader')); 23 23 } 24 24 25 function RegisterRSS( $Channel, $Pos = NULL, $Callback = NULL)25 function RegisterRSS(array $Channel, ?int $Pos = NULL, $Callback = NULL): void 26 26 { 27 27 $this->RSSChannels[$Channel['Channel']] = $Channel; … … 33 33 } 34 34 35 function UnregisterRSS( $ChannelName)35 function UnregisterRSS(string $ChannelName): void 36 36 { 37 37 unset($this->RSSChannels[$ChannelName]); … … 39 39 } 40 40 41 function ShowRSSHeader() 41 function ShowRSSHeader(): string 42 42 { 43 43 $Output = ''; … … 54 54 class PageRSS extends Page 55 55 { 56 function Show() 56 function Show(): string 57 57 { 58 58 $this->RawPage = true;
Note:
See TracChangeset
for help on using the changeset viewer.