X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FFeed.php;h=9be3f577cba3ae5f4f42ec091f0785cc3cae8749;hb=1f4a23e58f390302eb1b5fe7fd011e5e1e8f0a30;hp=03dd7f5c88c76ccab0a5b429b911a6bd6ef411e6;hpb=d78b4eeff8cdf47ba6f5da1257c4a6e9de688316;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Feed.php b/includes/Feed.php index 03dd7f5c88..9be3f577cb 100644 --- a/includes/Feed.php +++ b/includes/Feed.php @@ -37,19 +37,19 @@ */ class FeedItem { /** @var Title */ - protected $title; + public $title; - protected $description; + public $description; - protected $url; + public $url; - protected $date; + public $date; - protected $author; + public $author; - protected $uniqueId; + public $uniqueId; - protected $comments; + public $comments; public $rssIsPermalink = false; @@ -184,7 +184,8 @@ class FeedItem { } /** - * @todo document (needs one-sentence top-level class description). + * Class to support the outputting of syndication feeds in Atom and RSS format. + * * @ingroup Feed */ abstract class ChannelFeed extends FeedItem { @@ -338,13 +339,14 @@ class RSSFeed extends ChannelFeed { */ class AtomFeed extends ChannelFeed { /** - * @todo document - * @param string|int $ts + * Format a date given timestamp. + * + * @param string|int $timestamp * @return string */ - function formatTime( $ts ) { + function formatTime( $timestamp ) { // need to use RFC 822 time format at least for rss2.0 - return gmdate( 'Y-m-d\TH:i:s', wfTimestamp( TS_UNIX, $ts ) ); + return gmdate( 'Y-m-d\TH:i:s', wfTimestamp( TS_UNIX, $timestamp ) ); } /**