MediaWiki REL1_40
|
A base class for outputting syndication feeds (e.g. More...
Inherited by MediaWiki\Feed\ChannelFeed.
Public Member Functions | |
__construct ( $title, $description, $url, $date='', $author='', $comments='') | |
getAuthor () | |
Get the author of this item; already xml-encoded. | |
getAuthorUnescaped () | |
Get the author of this item without any escaping. | |
getComments () | |
Get the comment of this item; already xml-encoded. | |
getCommentsUnescaped () | |
Get the comment of this item without any escaping. | |
getDate () | |
Get the date of this item. | |
getDescription () | |
Get the description of this item; already xml-encoded. | |
getDescriptionUnescaped () | |
Get the description of this item without any escaping. | |
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; already xml-encoded. | |
getUniqueIdUnescaped () | |
Get the unique id of this item, without any escaping. | |
getUrl () | |
Get the URL of this item; already xml-encoded. | |
getUrlUnescaped () | |
Get the URL of this item without any escaping. | |
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... strip out wikilinks to more legible form from the comment. | |
Public Attributes | |
$author | |
$comments | |
$date | |
$description | |
$rssIsPermalink = false | |
Title | $title |
$uniqueId | |
$url | |
A base class for outputting syndication feeds (e.g.
RSS and other formats).
Definition at line 40 of file FeedItem.php.
MediaWiki\Feed\FeedItem::__construct | ( | $title, | |
$description, | |||
$url, | |||
$date = '', | |||
$author = '', | |||
$comments = '' ) |
string | Title | $title | Item's title |
string | $description | |
string | $url | URL uniquely designating the item. |
string | $date | Item's date |
string | $author | Author's user name |
string | $comments |
Reimplemented in MediaWiki\Feed\ChannelFeed.
Definition at line 66 of file FeedItem.php.
References MediaWiki\Feed\FeedItem\$author, MediaWiki\Feed\FeedItem\$comments, MediaWiki\Feed\FeedItem\$date, MediaWiki\Feed\FeedItem\$description, MediaWiki\Feed\FeedItem\$title, and MediaWiki\Feed\FeedItem\$url.
MediaWiki\Feed\FeedItem::getAuthor | ( | ) |
Get the author of this item; already xml-encoded.
Definition at line 191 of file FeedItem.php.
References MediaWiki\Feed\FeedItem\xmlEncode().
MediaWiki\Feed\FeedItem::getAuthorUnescaped | ( | ) |
Get the author of this item without any escaping.
Definition at line 200 of file FeedItem.php.
References MediaWiki\Feed\FeedItem\$author.
MediaWiki\Feed\FeedItem::getComments | ( | ) |
Get the comment of this item; already xml-encoded.
Definition at line 209 of file FeedItem.php.
References MediaWiki\Feed\FeedItem\xmlEncode().
MediaWiki\Feed\FeedItem::getCommentsUnescaped | ( | ) |
Get the comment of this item without any escaping.
Definition at line 218 of file FeedItem.php.
References MediaWiki\Feed\FeedItem\$comments.
MediaWiki\Feed\FeedItem::getDate | ( | ) |
Get the date of this item.
Definition at line 182 of file FeedItem.php.
References MediaWiki\Feed\FeedItem\$date.
MediaWiki\Feed\FeedItem::getDescription | ( | ) |
Get the description of this item; already xml-encoded.
Definition at line 153 of file FeedItem.php.
References MediaWiki\Feed\FeedItem\xmlEncode().
Referenced by MediaWiki\Feed\AtomFeed\outHeader(), and MediaWiki\Feed\RSSFeed\outHeader().
MediaWiki\Feed\FeedItem::getDescriptionUnescaped | ( | ) |
Get the description of this item without any escaping.
Definition at line 162 of file FeedItem.php.
References MediaWiki\Feed\FeedItem\$description.
MediaWiki\Feed\FeedItem::getLanguage | ( | ) |
Get the language of this item.
Definition at line 171 of file FeedItem.php.
References MediaWiki\MediaWikiServices\getInstance(), and MediaWiki\MainConfigNames\LanguageCode.
Referenced by MediaWiki\Feed\AtomFeed\outHeader(), and MediaWiki\Feed\RSSFeed\outHeader().
MediaWiki\Feed\FeedItem::getTitle | ( | ) |
Get the title of this item; already xml-encoded.
Definition at line 127 of file FeedItem.php.
References MediaWiki\Feed\FeedItem\xmlEncode().
Referenced by MediaWiki\Feed\AtomFeed\outHeader(), and MediaWiki\Feed\RSSFeed\outHeader().
MediaWiki\Feed\FeedItem::getUniqueID | ( | ) |
Get the unique id of this item; already xml-encoded.
Definition at line 94 of file FeedItem.php.
References MediaWiki\Feed\FeedItem\getUniqueIdUnescaped(), and MediaWiki\Feed\FeedItem\xmlEncode().
MediaWiki\Feed\FeedItem::getUniqueIdUnescaped | ( | ) |
Get the unique id of this item, without any escaping.
Definition at line 105 of file FeedItem.php.
References PROTO_CURRENT, and wfExpandUrl().
Referenced by MediaWiki\Feed\FeedItem\getUniqueID().
MediaWiki\Feed\FeedItem::getUrl | ( | ) |
Get the URL of this item; already xml-encoded.
Definition at line 136 of file FeedItem.php.
References MediaWiki\Feed\FeedItem\xmlEncode().
MediaWiki\Feed\FeedItem::getUrlUnescaped | ( | ) |
Get the URL of this item without any escaping.
Definition at line 144 of file FeedItem.php.
References MediaWiki\Feed\FeedItem\$url.
Referenced by MediaWiki\Feed\AtomFeed\outHeader(), and MediaWiki\Feed\RSSFeed\outHeader().
MediaWiki\Feed\FeedItem::setUniqueId | ( | $uniqueId, | |
$rssIsPermalink = false ) |
Set the unique id of an item.
string | $uniqueId | Unique id for the item |
bool | $rssIsPermalink | Set to true if the guid (unique id) is a permalink (RSS feeds only) |
Definition at line 117 of file FeedItem.php.
References MediaWiki\Feed\FeedItem\$rssIsPermalink, and MediaWiki\Feed\FeedItem\$uniqueId.
|
static |
Quickie hack... strip out wikilinks to more legible form from the comment.
string | $text | Wikitext |
Definition at line 228 of file FeedItem.php.
MediaWiki\Feed\FeedItem::xmlEncode | ( | $string | ) |
Encode $string so that it can be safely embedded in a XML document.
string | $string | String to encode |
Definition at line 84 of file FeedItem.php.
Referenced by MediaWiki\Feed\FeedItem\getAuthor(), MediaWiki\Feed\FeedItem\getComments(), MediaWiki\Feed\FeedItem\getDescription(), MediaWiki\Feed\FeedItem\getTitle(), MediaWiki\Feed\FeedItem\getUniqueID(), MediaWiki\Feed\FeedItem\getUrl(), MediaWiki\Feed\AtomFeed\outHeader(), MediaWiki\Feed\RSSFeed\outHeader(), MediaWiki\Feed\AtomFeed\outItem(), and MediaWiki\Feed\RSSFeed\outItem().
MediaWiki\Feed\FeedItem::$author |
Definition at line 50 of file FeedItem.php.
Referenced by MediaWiki\Feed\ChannelFeed\__construct(), MediaWiki\Feed\FeedItem\__construct(), and MediaWiki\Feed\FeedItem\getAuthorUnescaped().
MediaWiki\Feed\FeedItem::$comments |
Definition at line 54 of file FeedItem.php.
Referenced by MediaWiki\Feed\ChannelFeed\__construct(), MediaWiki\Feed\FeedItem\__construct(), MediaWiki\Feed\FeedItem\getCommentsUnescaped(), and MediaWiki\Feed\RSSFeed\outItem().
MediaWiki\Feed\FeedItem::$date |
Definition at line 48 of file FeedItem.php.
Referenced by MediaWiki\Feed\ChannelFeed\__construct(), MediaWiki\Feed\FeedItem\__construct(), and MediaWiki\Feed\FeedItem\getDate().
MediaWiki\Feed\FeedItem::$description |
Definition at line 44 of file FeedItem.php.
Referenced by MediaWiki\Feed\ChannelFeed\__construct(), MediaWiki\Feed\FeedItem\__construct(), and MediaWiki\Feed\FeedItem\getDescriptionUnescaped().
MediaWiki\Feed\FeedItem::$rssIsPermalink = false |
Definition at line 56 of file FeedItem.php.
Referenced by MediaWiki\Feed\FeedItem\setUniqueId().
Title MediaWiki\Feed\FeedItem::$title |
Definition at line 42 of file FeedItem.php.
Referenced by MediaWiki\Feed\ChannelFeed\__construct(), and MediaWiki\Feed\FeedItem\__construct().
MediaWiki\Feed\FeedItem::$uniqueId |
Definition at line 52 of file FeedItem.php.
Referenced by MediaWiki\Feed\FeedItem\setUniqueId().
MediaWiki\Feed\FeedItem::$url |
Definition at line 46 of file FeedItem.php.
Referenced by MediaWiki\Feed\ChannelFeed\__construct(), MediaWiki\Feed\FeedItem\__construct(), and MediaWiki\Feed\FeedItem\getUrlUnescaped().