MediaWiki master
|
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 | |
string | $author |
string | $comments |
string | $date |
string | $description |
bool | $rssIsPermalink = false |
string | $title |
string | $uniqueId |
string | $url |
Protected Attributes | |
UrlUtils | $urlUtils |
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 | 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 75 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, MediaWiki\Feed\FeedItem\$url, and MediaWiki\MediaWikiServices\getInstance().
MediaWiki\Feed\FeedItem::getAuthor | ( | ) |
Get the author of this item; already xml-encoded.
Definition at line 207 of file FeedItem.php.
MediaWiki\Feed\FeedItem::getAuthorUnescaped | ( | ) |
Get the author of this item without any escaping.
Definition at line 216 of file FeedItem.php.
MediaWiki\Feed\FeedItem::getComments | ( | ) |
Get the comment of this item; already xml-encoded.
Definition at line 225 of file FeedItem.php.
MediaWiki\Feed\FeedItem::getCommentsUnescaped | ( | ) |
Get the comment of this item without any escaping.
Definition at line 234 of file FeedItem.php.
MediaWiki\Feed\FeedItem::getDate | ( | ) |
MediaWiki\Feed\FeedItem::getDescription | ( | ) |
Get the description of this item; already xml-encoded.
Definition at line 169 of file FeedItem.php.
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 178 of file FeedItem.php.
MediaWiki\Feed\FeedItem::getLanguage | ( | ) |
Get the language of this item.
Definition at line 187 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 143 of file FeedItem.php.
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 107 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 119 of file FeedItem.php.
References PROTO_CURRENT.
Referenced by MediaWiki\Feed\FeedItem\getUniqueID().
MediaWiki\Feed\FeedItem::getUrl | ( | ) |
Get the URL of this item; already xml-encoded.
Definition at line 152 of file FeedItem.php.
MediaWiki\Feed\FeedItem::getUrlUnescaped | ( | ) |
Get the URL of this item without any escaping.
Definition at line 160 of file FeedItem.php.
References $url.
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 133 of file FeedItem.php.
|
static |
Quickie hack... strip out wikilinks to more legible form from the comment.
string | $text | Wikitext |
Definition at line 245 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 95 of file FeedItem.php.
Referenced by MediaWiki\Feed\FeedItem\getUniqueID(), MediaWiki\Feed\AtomFeed\outHeader(), MediaWiki\Feed\RSSFeed\outHeader(), MediaWiki\Feed\AtomFeed\outItem(), and MediaWiki\Feed\RSSFeed\outItem().
string MediaWiki\Feed\FeedItem::$author |
Definition at line 54 of file FeedItem.php.
Referenced by MediaWiki\Feed\ChannelFeed\__construct(), and MediaWiki\Feed\FeedItem\__construct().
string MediaWiki\Feed\FeedItem::$comments |
Definition at line 60 of file FeedItem.php.
Referenced by MediaWiki\Feed\ChannelFeed\__construct(), MediaWiki\Feed\FeedItem\__construct(), and MediaWiki\Feed\RSSFeed\outItem().
string MediaWiki\Feed\FeedItem::$date |
Definition at line 51 of file FeedItem.php.
Referenced by MediaWiki\Feed\ChannelFeed\__construct(), and MediaWiki\Feed\FeedItem\__construct().
string MediaWiki\Feed\FeedItem::$description |
Definition at line 45 of file FeedItem.php.
Referenced by MediaWiki\Feed\ChannelFeed\__construct(), and MediaWiki\Feed\FeedItem\__construct().
bool MediaWiki\Feed\FeedItem::$rssIsPermalink = false |
Definition at line 63 of file FeedItem.php.
string MediaWiki\Feed\FeedItem::$title |
Definition at line 42 of file FeedItem.php.
Referenced by MediaWiki\Feed\ChannelFeed\__construct(), and MediaWiki\Feed\FeedItem\__construct().
string MediaWiki\Feed\FeedItem::$uniqueId |
Definition at line 57 of file FeedItem.php.
string MediaWiki\Feed\FeedItem::$url |
Definition at line 48 of file FeedItem.php.
Referenced by MediaWiki\Feed\ChannelFeed\__construct(), and MediaWiki\Feed\FeedItem\__construct().
|
protected |
Definition at line 65 of file FeedItem.php.