Added placeholders for text injection by hooks to EditPage.php
[lhc/web/wiklou.git] / includes / Feed.php
index 9b4816b..5c14865 100644 (file)
@@ -16,7 +16,7 @@
 #
 # You should have received a copy of the GNU General Public License along
 # with this program; if not, write to the Free Software Foundation, Inc.,
-# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 # http://www.gnu.org/copyleft/gpl.html
 
 /**
@@ -33,7 +33,7 @@
 class FeedItem {
        /**#@+
         * @var string
-        * @access private
+        * @private
         */
        var $Title = 'Wiki';
        var $Description = '';
@@ -117,7 +117,7 @@ class ChannelFeed extends FeedItem {
         * This should be called from the outHeader() method,
         * but can also be called separately.
         *
-        * @access public
+        * @public
         */
        function httpHeaders() {
                global $wgOut;
@@ -134,7 +134,7 @@ class ChannelFeed extends FeedItem {
         * Return an internet media type to be sent in the headers.
         *
         * @return string
-        * @access private
+        * @private
         */
        function contentType() {
                global $wgRequest;
@@ -146,15 +146,15 @@ class ChannelFeed extends FeedItem {
        /**
         * Output the initial XML headers with a stylesheet for legibility
         * if someone finds it in a browser.
-        * @access private
+        * @private
         */
        function outXmlHeader() {
-               global $wgServer, $wgStylePath;
+               global $wgServer, $wgStylePath, $wgStyleVersion;
 
                $this->httpHeaders();
                echo '<?xml version="1.0" encoding="utf-8"?>' . "\n";
                echo '<?xml-stylesheet type="text/css" href="' .
-                       htmlspecialchars( "$wgServer$wgStylePath/common/feed.css" ) . '"?' . ">\n";
+                       htmlspecialchars( "$wgServer$wgStylePath/common/feed.css?$wgStyleVersion" ) . '"?' . ">\n";
        }
 }
 
@@ -234,7 +234,7 @@ class AtomFeed extends ChannelFeed {
        }
 
        /**
-        * @todo document
+        * Outputs a basic header for Atom 1.0 feeds.
         */
        function outHeader() {
                global $wgVersion;
@@ -259,7 +259,7 @@ class AtomFeed extends ChannelFeed {
         * have to change the id? Maybe? Maybe not.
         *
         * @return string
-        * @access private
+        * @private
         */
        function getFeedId() {
                return $this->getSelfUrl();
@@ -268,7 +268,7 @@ class AtomFeed extends ChannelFeed {
        /**
         * Atom 1.0 requests a self-reference to the feed.
         * @return string
-        * @access private
+        * @private
         */
        function getSelfUrl() {
                global $wgRequest;
@@ -276,7 +276,8 @@ class AtomFeed extends ChannelFeed {
        }
 
        /**
-        * @todo document
+        * Output a given item.
+        * @param $item
         */
        function outItem( $item ) {
                global $wgMimeType;
@@ -299,7 +300,7 @@ class AtomFeed extends ChannelFeed {
        }
 
        /**
-        * @todo document
+        * Outputs the footer for Atom 1.0 feed (basicly '\</feed\>').
         */
        function outFooter() {?>
        </feed><?php