MediaWiki  REL1_22
FeedItem Class Reference

A base class for basic support for outputting syndication feeds in RSS and other formats. More...

Inheritance diagram for FeedItem:
Collaboration diagram for FeedItem:

List of all members.

Public Member Functions

 __construct ($title, $description, $url, $date= '', $author= '', $comments= '')
 Constructor.
 getAuthor ()
 Get the author of this item; already xml-encoded.
 getComments ()
 Get the comment of this item; already xml-encoded.
 getDate ()
 Get the title of this item.
 getDescription ()
 Get the description of this item; already xml-encoded.
 getLanguage ()
 Get the language of this item.
 getTitle ()
 Get the title of this item; already xml-encoded.
 getUniqueId ()
 Get the unique id of this item.
 getUrl ()
 Get the URL of this item; already xml-encoded.
 setUniqueId ($uniqueId, $rssIsPermalink=false)
 set the unique id of an item
 xmlEncode ($string)
 Encode $string so that it can be safely embedded in a XML document.

Static Public Member Functions

static stripComment ($text)
 Quickie hack...

Public Attributes

 $author
 $comments
 $date
 $description
 $rssIsPermalink = false
Title $title
 $uniqueId
 $url

Detailed Description

A base class for basic support for outputting syndication feeds in RSS and other formats.

Definition at line 38 of file Feed.php.


Constructor & Destructor Documentation

FeedItem::__construct ( title,
description,
url,
date = '',
author = '',
comments = '' 
)

Constructor.

Parameters:
string | Title$titleItem's title
$descriptionString
string$urlURL uniquely designating the item.
string$dateItem's date
string$authorAuthor's user name
$commentsString

Definition at line 61 of file Feed.php.


Member Function Documentation

Get the author of this item; already xml-encoded.

Returns:
String

Definition at line 156 of file Feed.php.

Get the comment of this item; already xml-encoded.

Returns:
String

Definition at line 165 of file Feed.php.

Get the title of this item.

Returns:
String

Definition at line 147 of file Feed.php.

Get the description of this item; already xml-encoded.

Returns:
String

Definition at line 128 of file Feed.php.

Get the language of this item.

Returns:
String

Definition at line 137 of file Feed.php.

Get the title of this item; already xml-encoded.

Returns:
String

Definition at line 110 of file Feed.php.

Get the unique id of this item.

Returns:
String

Definition at line 88 of file Feed.php.

Get the URL of this item; already xml-encoded.

Returns:
String

Definition at line 119 of file Feed.php.

FeedItem::setUniqueId ( uniqueId,
rssIsPermalink = false 
)

set the unique id of an item

Parameters:
string$uniqueIdunique id for the item
$rssIsPermalinkBoolean: set to true if the guid (unique id) is a permalink (RSS feeds only)

Definition at line 100 of file Feed.php.

static FeedItem::stripComment ( text) [static]

Quickie hack...

strip out wikilinks to more legible form from the comment.

Parameters:
string$textwikitext
Returns:
String

Definition at line 175 of file Feed.php.

Referenced by HistoryAction\feedItem(), ApiFeedContributions\feedItemDesc(), and SpecialNewpages\feedItemDesc().

FeedItem::xmlEncode ( string)

Encode $string so that it can be safely embedded in a XML document.

Parameters:
string$stringstring to encode
Returns:
String

Definition at line 77 of file Feed.php.


Member Data Documentation

FeedItem::$author

Definition at line 46 of file Feed.php.

FeedItem::$comments

Definition at line 48 of file Feed.php.

FeedItem::$date

Definition at line 45 of file Feed.php.

FeedItem::$description

Definition at line 43 of file Feed.php.

FeedItem::$rssIsPermalink = false

Definition at line 49 of file Feed.php.

Title FeedItem::$title

Definition at line 41 of file Feed.php.

FeedItem::$uniqueId

Definition at line 47 of file Feed.php.

FeedItem::$url

Definition at line 44 of file Feed.php.


The documentation for this class was generated from the following file: