dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Handle invalid grouppage on Special:Statistics"
[lhc/web/wiklou.git]
/
includes
/
Feed.php
diff --git
a/includes/Feed.php
b/includes/Feed.php
index
60e623b
..
9be3f57
100644
(file)
--- a/
includes/Feed.php
+++ b/
includes/Feed.php
@@
-37,19
+37,19
@@
*/
class FeedItem {
/** @var Title */
*/
class FeedItem {
/** @var Title */
- p
rotected
$title;
+ p
ublic
$title;
- p
rotected
$description;
+ p
ublic
$description;
- p
rotected
$url;
+ p
ublic
$url;
- p
rotected
$date;
+ p
ublic
$date;
- p
rotected
$author;
+ p
ublic
$author;
- p
rotected
$uniqueId;
+ p
ublic
$uniqueId;
- p
rotected
$comments;
+ p
ublic
$comments;
public $rssIsPermalink = false;
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 {
* @ingroup Feed
*/
abstract class ChannelFeed extends FeedItem {
@@
-258,20
+259,11
@@
abstract class ChannelFeed extends FeedItem {
}
/**
}
/**
- * Output the initial XML headers with a stylesheet for legibility
- * if someone finds it in a browser.
+ * Output the initial XML headers.
*/
protected function outXmlHeader() {
*/
protected function outXmlHeader() {
- global $wgStylePath, $wgStyleVersion;
-
$this->httpHeaders();
echo '<?xml version="1.0"?>' . "\n";
$this->httpHeaders();
echo '<?xml version="1.0"?>' . "\n";
- echo '<?xml-stylesheet type="text/css" href="' .
- htmlspecialchars( wfExpandUrl(
- "$wgStylePath/common/feed.css?$wgStyleVersion",
- PROTO_CURRENT
- ) ) .
- '"?' . ">\n";
}
}
}
}
@@
-347,13
+339,14
@@
class RSSFeed extends ChannelFeed {
*/
class AtomFeed extends ChannelFeed {
/**
*/
class AtomFeed extends ChannelFeed {
/**
- * @todo document
- * @param string|int $ts
+ * Format a date given timestamp.
+ *
+ * @param string|int $timestamp
* @return string
*/
* @return string
*/
- function formatTime( $t
s
) {
+ function formatTime( $t
imestamp
) {
// need to use RFC 822 time format at least for rss2.0
// need to use RFC 822 time format at least for rss2.0
- return gmdate( 'Y-m-d\TH:i:s', wfTimestamp( TS_UNIX, $t
s
) );
+ return gmdate( 'Y-m-d\TH:i:s', wfTimestamp( TS_UNIX, $t
imestamp
) );
}
/**
}
/**