Ignore:
Timestamp:
Aug 3, 2021, 11:20:41 AM (3 years ago)
Author:
chronos
Message:
  • Modified: Used explicit types where possible for better error reporting.
  • Modified: Updated Common packaged to newer version.
  • Modified: Simplified pages title.
  • Added: Simple keyword based spam filter for meet items.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1 nbproject
        2 Config.php
        31.settings
        42.project
        53.buildpath
         4.htaccess
  • trunk/Modules/RSS/RSS.php

    r56 r63  
    11<?php
    22
    3 class ModuleRSS extends AppModule
     3class ModuleRSS extends Module
    44{
    55  var $RSSChannels;
     
    1717  }
    1818
    19   function Start()
     19  function Start(): void
    2020  {
    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'));
    2323  }
    2424
    25   function RegisterRSS($Channel, $Pos = NULL, $Callback = NULL)
     25  function RegisterRSS(array $Channel, ?int $Pos = NULL, $Callback = NULL): void
    2626  {
    2727    $this->RSSChannels[$Channel['Channel']] = $Channel;
     
    3333  }
    3434
    35   function UnregisterRSS($ChannelName)
     35  function UnregisterRSS(string $ChannelName): void
    3636  {
    3737    unset($this->RSSChannels[$ChannelName]);
     
    3939  }
    4040
    41   function ShowRSSHeader()
     41  function ShowRSSHeader(): string
    4242  {
    4343    $Output = '';
     
    5454class PageRSS extends Page
    5555{
    56   function Show()
     56  function Show(): string
    5757  {
    5858    $this->RawPage = true;
Note: See TracChangeset for help on using the changeset viewer.