Inherited by ChannelFeed.
Public Member Functions | |
__construct ($Title, $Description, $Url, $Date= '', $Author= '', $Comments= '') | |
#@- | |
xmlEncode ($string) | |
Encode $string so that it can be safely embedded in a XML document. | |
getUniqueId () | |
Get the unique id of this item. | |
setUniqueId ($uniqueId, $RSSisPermalink=False) | |
set the unique id of an item | |
getTitle () | |
Get the title of this item; already xml-encoded. | |
getUrl () | |
Get the URL of this item; already xml-encoded. | |
getDescription () | |
Get the description of this item; already xml-encoded. | |
getLanguage () | |
Get the language of this item. | |
getDate () | |
Get the title of this item. | |
getAuthor () | |
Get the author of this item; already xml-encoded. | |
getComments () | |
Get the comment of this item; already xml-encoded. | |
Static Public Member Functions | |
static | stripComment ($text) |
Quickie hack. | |
Public Attributes | |
$Title = 'Wiki' | |
$Description = '' | |
$Url = '' | |
$Date = '' | |
$Author = '' | |
$UniqueId = '' | |
$RSSIsPermalink |
Definition at line 36 of file Feed.php.
FeedItem::__construct | ( | $ | Title, | |
$ | Description, | |||
$ | Url, | |||
$ | Date = '' , |
|||
$ | Author = '' , |
|||
$ | Comments = '' | |||
) |
#@-
Constructor
$Title | String: Item's title | |
$Description | String | |
$Url | String: URL uniquely designating the item. | |
$Date | String: Item's date | |
$Author | String: Author's user name | |
$Comments | String |
Definition at line 60 of file Feed.php.
References $Author, $Date, $Description, $Title, and $Url.
FeedItem::getAuthor | ( | ) |
Get the author of this item; already xml-encoded.
Definition at line 156 of file Feed.php.
References xmlEncode().
FeedItem::getComments | ( | ) |
Get the comment of this item; already xml-encoded.
Definition at line 165 of file Feed.php.
References xmlEncode().
FeedItem::getDate | ( | ) |
FeedItem::getDescription | ( | ) |
Get the description of this item; already xml-encoded.
Definition at line 128 of file Feed.php.
References xmlEncode().
Referenced by AtomFeed::outHeader(), and RSSFeed::outHeader().
FeedItem::getLanguage | ( | ) |
Get the language of this item.
Definition at line 137 of file Feed.php.
References $wgContLanguageCode.
Referenced by RSSFeed::outHeader().
FeedItem::getTitle | ( | ) |
Get the title of this item; already xml-encoded.
Definition at line 110 of file Feed.php.
References xmlEncode().
Referenced by AtomFeed::outHeader(), and RSSFeed::outHeader().
FeedItem::getUniqueId | ( | ) |
Get the unique id of this item.
Definition at line 88 of file Feed.php.
References xmlEncode().
FeedItem::getUrl | ( | ) |
Get the URL of this item; already xml-encoded.
Definition at line 119 of file Feed.php.
References xmlEncode().
Referenced by RSSFeed::outHeader().
FeedItem::setUniqueId | ( | $ | uniqueId, | |
$ | RSSisPermalink = False | |||
) |
static FeedItem::stripComment | ( | $ | text | ) | [static] |
Quickie hack.
.. strip out wikilinks to more legible form from the comment.
$text | String: wikitext |
Definition at line 175 of file Feed.php.
Referenced by HistoryPage::feedItem(), SpecialNewpages::feedItemDesc(), and SpecialContributions::feedItemDesc().
FeedItem::xmlEncode | ( | $ | string | ) |
Encode $string so that it can be safely embedded in a XML document.
$string | String: string to encode |
Definition at line 77 of file Feed.php.
Referenced by getAuthor(), getComments(), getDescription(), getTitle(), getUniqueId(), and getUrl().
FeedItem::$Author = '' |
FeedItem::$Date = '' |
FeedItem::$Description = '' |
FeedItem::$Title = 'Wiki' |
FeedItem::$Url = '' |