MediaWiki  1.29.1
Feed.php File Reference

Basic support for outputting syndication feeds in RSS, other formats. More...

Go to the source code of this file.

Classes

class  AtomFeed
 Generate an Atom feed. More...
 
class  FeedItem
 A base class for basic support for outputting syndication feeds in RSS and other formats. More...
 

Functions

 contentType ()
 Return an internet media type to be sent in the headers. More...
 
 httpHeaders ()
 Setup and send HTTP headers. More...
 
 outFooter ()
 Generate Footer of the feed. More...
 
 outHeader ()
 Generate Header of the feed. More...
 
ChannelFeed FeedItem print $this getTitle() print wfExpandUrl($this->getUrl(), PROTO_CURRENT) print $this getDescription() print $this getLanguage() print $wgVersion print $this formatTime(wfTimestampNow()) outItem ( $item)
 Class to support the outputting of syndication feeds in Atom and RSS format. More...
 
 outXmlHeader ()
 Output the initial XML headers. More...
 

Detailed Description

Basic support for outputting syndication feeds in RSS, other formats.

Contain a feed class as well as classes to build rss / atom ... feeds Available feeds are defined in Defines.php

Copyright © 2004 Brion Vibber brion.nosp@m.@pob.nosp@m.ox.co.nosp@m.m https://www.mediawiki.org/

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html

Definition in file Feed.php.

Function Documentation

◆ contentType()

outItem\contentType ( )
private

Return an internet media type to be sent in the headers.

Returns
string

Definition at line 363 of file Feed.php.

◆ httpHeaders()

outItem\httpHeaders ( )

Setup and send HTTP headers.

Don't send any content; content might end up being cached and re-sent with these same headers later.

This should be called from the outHeader() method, but can also be called separately.

Definition at line 345 of file Feed.php.

◆ outFooter()

outFooter ( )
abstract

Generate Footer of the feed.

Output an RSS 2.0 footer.

Example:
print "</feed>";

Definition at line 327 of file Feed.php.

References php, and rss.

◆ outHeader()

outItem\outHeader ( )
abstract

Generate Header of the feed.

Example:
print "<feed>";

◆ outXmlHeader()

outItem\outXmlHeader ( )
protected

Output the initial XML headers.

Definition at line 380 of file Feed.php.

References AtomFeed\getSelfUrl().

Referenced by AtomFeed\outHeader().