|
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. | |
| xmlEncodeNullable (?string $string) | |
Encode $string so that it can be safely embedded in a XML document, returning null if $string was null. | |
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 26 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 61 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 202 of file FeedItem.php.
| MediaWiki\Feed\FeedItem::getAuthorUnescaped | ( | ) |
Get the author of this item without any escaping.
Definition at line 211 of file FeedItem.php.
| MediaWiki\Feed\FeedItem::getComments | ( | ) |
Get the comment of this item; already xml-encoded.
Definition at line 220 of file FeedItem.php.
| MediaWiki\Feed\FeedItem::getCommentsUnescaped | ( | ) |
Get the comment of this item without any escaping.
Definition at line 229 of file FeedItem.php.
| MediaWiki\Feed\FeedItem::getDate | ( | ) |
| MediaWiki\Feed\FeedItem::getDescription | ( | ) |
Get the description of this item; already xml-encoded.
Definition at line 164 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 173 of file FeedItem.php.
| MediaWiki\Feed\FeedItem::getLanguage | ( | ) |
Get the language of this item.
Definition at line 182 of file FeedItem.php.
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 138 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 102 of file FeedItem.php.
| MediaWiki\Feed\FeedItem::getUniqueIdUnescaped | ( | ) |
Get the unique id of this item, without any escaping.
Definition at line 114 of file FeedItem.php.
References PROTO_CURRENT.
| MediaWiki\Feed\FeedItem::getUrl | ( | ) |
Get the URL of this item; already xml-encoded.
Definition at line 147 of file FeedItem.php.
| MediaWiki\Feed\FeedItem::getUrlUnescaped | ( | ) |
Get the URL of this item without any escaping.
Definition at line 155 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 128 of file FeedItem.php.
|
static |
Quickie hack... strip out wikilinks to more legible form from the comment.
| string | $text | Wikitext |
Definition at line 240 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 81 of file FeedItem.php.
Referenced by MediaWiki\Feed\AtomFeed\outHeader(), MediaWiki\Feed\RSSFeed\outHeader(), MediaWiki\Feed\AtomFeed\outItem(), and MediaWiki\Feed\RSSFeed\outItem().
| MediaWiki\Feed\FeedItem::xmlEncodeNullable | ( | ?string | $string | ) |
Encode $string so that it can be safely embedded in a XML document, returning null if $string was null.
Definition at line 93 of file FeedItem.php.
Referenced by MediaWiki\Feed\AtomFeed\outItem(), and MediaWiki\Feed\RSSFeed\outItem().
| string MediaWiki\Feed\FeedItem::$author |
Definition at line 40 of file FeedItem.php.
Referenced by MediaWiki\Feed\ChannelFeed\__construct(), and MediaWiki\Feed\FeedItem\__construct().
| string MediaWiki\Feed\FeedItem::$comments |
Definition at line 46 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 37 of file FeedItem.php.
Referenced by MediaWiki\Feed\ChannelFeed\__construct(), and MediaWiki\Feed\FeedItem\__construct().
| string MediaWiki\Feed\FeedItem::$description |
Definition at line 31 of file FeedItem.php.
Referenced by MediaWiki\Feed\ChannelFeed\__construct(), and MediaWiki\Feed\FeedItem\__construct().
| bool MediaWiki\Feed\FeedItem::$rssIsPermalink = false |
Definition at line 49 of file FeedItem.php.
| string MediaWiki\Feed\FeedItem::$title |
Definition at line 28 of file FeedItem.php.
Referenced by MediaWiki\Feed\ChannelFeed\__construct(), and MediaWiki\Feed\FeedItem\__construct().
| string MediaWiki\Feed\FeedItem::$uniqueId |
Definition at line 43 of file FeedItem.php.
| string MediaWiki\Feed\FeedItem::$url |
Definition at line 34 of file FeedItem.php.
Referenced by MediaWiki\Feed\ChannelFeed\__construct(), and MediaWiki\Feed\FeedItem\__construct().
|
protected |
Definition at line 51 of file FeedItem.php.