#
# 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
/**
class FeedItem {
/**#@+
* @var string
- * @access private
+ * @private
*/
var $Title = 'Wiki';
var $Description = '';
* This should be called from the outHeader() method,
* but can also be called separately.
*
- * @access public
+ * @public
*/
function httpHeaders() {
global $wgOut;
* Return an internet media type to be sent in the headers.
*
* @return string
- * @access private
+ * @private
*/
function contentType() {
global $wgRequest;
/**
* 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";
}
}
}
/**
- * @todo document
+ * Outputs a basic header for Atom 1.0 feeds.
*/
function outHeader() {
global $wgVersion;
* have to change the id? Maybe? Maybe not.
*
* @return string
- * @access private
+ * @private
*/
function getFeedId() {
return $this->getSelfUrl();
/**
* Atom 1.0 requests a self-reference to the feed.
* @return string
- * @access private
+ * @private
*/
function getSelfUrl() {
global $wgRequest;
}
/**
- * @todo document
+ * Output a given item.
+ * @param $item
*/
function outItem( $item ) {
global $wgMimeType;
}
/**
- * @todo document
+ * Outputs the footer for Atom 1.0 feed (basicly '\</feed\>').
*/
function outFooter() {?>
</feed><?php