AYUSH GARG has uploaded a new change for review.
https://gerrit.wikimedia.org/r/188408
Change subject: improvement in the documentation of Channelfeed and Atomfeed
class.
......................................................................
improvement in the documentation of Channelfeed and Atomfeed class.
Change-Id: I338760ffd6ca4c94cc57ded80d37a9a79c36891b
Change-Id: I1bebaf2d17ac71490aab3ab9cd1f08a4bb1fc3fb
---
M includes/Feed.php
1 file changed, 7 insertions(+), 5 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/08/188408/1
diff --git a/includes/Feed.php b/includes/Feed.php
index 2fdfa42..56d5fbb 100644
--- a/includes/Feed.php
+++ b/includes/Feed.php
@@ -184,7 +184,8 @@
}
/**
- * @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 AtomFeed extends ChannelFeed {
/**
- * @todo document
- * @param string|int $ts
+ * Format a date given time stamp.
+ *
+ * @param string|int $time_stamp
* @return string
*/
- function formatTime( $ts ) {
+ function formatTime( $time_stamp ) {
// 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,
$time_stamp ) );
}
/**
--
To view, visit https://gerrit.wikimedia.org/r/188408
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1bebaf2d17ac71490aab3ab9cd1f08a4bb1fc3fb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: AYUSH GARG <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits