diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2013-01-18 16:46:04 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2013-01-18 16:46:04 +0100 |
commit | 63601400e476c6cf43d985f3e7b9864681695ed4 (patch) | |
tree | f7846203a952e38aaf66989d0a4702779f549962 /includes/Feed.php | |
parent | 8ff01378c9e0207f9169b81966a51def645b6a51 (diff) |
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
Diffstat (limited to 'includes/Feed.php')
-rw-r--r-- | includes/Feed.php | 34 |
1 files changed, 18 insertions, 16 deletions
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 "<feed>"; + * @endcode + * @param $item */ - function outHeader() { - # print "<feed>"; - } + abstract public function outHeader(); /** * Generate an item + * @par Example: + * @code + * print "<item>...</item>"; + * @endcode * @param $item */ - function outItem( $item ) { - # print "<item>...</item>"; - } + abstract public function outItem( $item ); /** * Generate Footer of the feed + * @par Example: + * @code + * print "</feed>"; + * @endcode */ - function outFooter() { - # print "</feed>"; - } - /**#@-*/ + 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 |