From 63601400e476c6cf43d985f3e7b9864681695ed4 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 18 Jan 2013 16:46:04 +0100 Subject: Update to MediaWiki 1.20.2 this update includes: * adjusted Arch Linux skin * updated FluxBBAuthPlugin * patch for https://bugzilla.wikimedia.org/show_bug.cgi?id=44024 --- includes/Feed.php | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) (limited to 'includes/Feed.php') diff --git a/includes/Feed.php b/includes/Feed.php index 351f3572..f9dbf5ba 100644 --- a/includes/Feed.php +++ b/includes/Feed.php @@ -183,34 +183,35 @@ class FeedItem { * @todo document (needs one-sentence top-level class description). * @ingroup Feed */ -class ChannelFeed extends FeedItem { - /**#@+ - * Abstract function, override! - * @abstract - */ - +abstract class ChannelFeed extends FeedItem { /** * Generate Header of the feed + * @par Example: + * @code + * print ""; + * @endcode + * @param $item */ - function outHeader() { - # print ""; - } + abstract public function outHeader(); /** * Generate an item + * @par Example: + * @code + * print "..."; + * @endcode * @param $item */ - function outItem( $item ) { - # print "..."; - } + abstract public function outItem( $item ); /** * Generate Footer of the feed + * @par Example: + * @code + * print ""; + * @endcode */ - function outFooter() { - # print ""; - } - /**#@-*/ + abstract public function outFooter(); /** * Setup and send HTTP headers. Don't send any content; @@ -334,6 +335,7 @@ class RSSFeed extends ChannelFeed { class AtomFeed extends ChannelFeed { /** * @todo document + * @return string */ function formatTime( $ts ) { // need to use RFC 822 time format at least for rss2.0 -- cgit v1.2.2