MediaWiki
1.30.0
|
A base class for basic support for outputting syndication feeds in RSS and other formats. More...
Public Member Functions | |
__construct ( $title, $description, $url, $date='', $author='', $comments='') | |
getAuthor () | |
Get the author of this item; already xml-encoded. More... | |
getComments () | |
Get the comment of this item; already xml-encoded. More... | |
getDate () | |
Get the date of this item. More... | |
getDescription () | |
Get the description of this item; already xml-encoded. More... | |
getLanguage () | |
Get the language of this item. More... | |
getTitle () | |
Get the title of this item; already xml-encoded. More... | |
getUniqueId () | |
Get the unique id of this item. More... | |
getUrl () | |
Get the URL of this item; already xml-encoded. More... | |
setUniqueId ( $uniqueId, $rssIsPermalink=false) | |
Set the unique id of an item. More... | |
xmlEncode ( $string) | |
Encode $string so that it can be safely embedded in a XML document. More... | |
Static Public Member Functions | |
static | stripComment ( $text) |
Quickie hack... More... | |
Public Attributes | |
$author | |
$comments | |
$date | |
$description | |
$rssIsPermalink = false | |
Title | $title |
$uniqueId | |
$url | |
A base class for basic support for outputting syndication feeds in RSS and other formats.
FeedItem::__construct | ( | $title, | |
$description, | |||
$url, | |||
$date = '' , |
|||
$author = '' , |
|||
$comments = '' |
|||
) |
FeedItem::getAuthor | ( | ) |
Get the author of this item; already xml-encoded.
Definition at line 159 of file Feed.php.
References xmlEncode().
FeedItem::getComments | ( | ) |
Get the comment of this item; already xml-encoded.
Definition at line 168 of file Feed.php.
References xmlEncode().
FeedItem::getDate | ( | ) |
FeedItem::getDescription | ( | ) |
Get the description of this item; already xml-encoded.
Definition at line 131 of file Feed.php.
References xmlEncode().
FeedItem::getLanguage | ( | ) |
Get the language of this item.
Definition at line 140 of file Feed.php.
References $wgLanguageCode, global, and wfBCP47().
FeedItem::getTitle | ( | ) |
Get the title of this item; already xml-encoded.
Definition at line 113 of file Feed.php.
References title, and xmlEncode().
FeedItem::getUniqueId | ( | ) |
Get the unique id of this item.
Definition at line 91 of file Feed.php.
References PROTO_CURRENT, wfExpandUrl(), and xmlEncode().
FeedItem::getUrl | ( | ) |
Get the URL of this item; already xml-encoded.
Definition at line 122 of file Feed.php.
References xmlEncode().
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 103 of file Feed.php.
References $rssIsPermalink, and $uniqueId.
|
static |
Quickie hack...
strip out wikilinks to more legible form from the comment.
string | $text | Wikitext |
Definition at line 178 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.
string | $string | String to encode |
Definition at line 80 of file Feed.php.
Referenced by getAuthor(), getComments(), getDescription(), getTitle(), getUniqueId(), and getUrl().
FeedItem::$author |
Definition at line 48 of file Feed.php.
Referenced by __construct().
FeedItem::$comments |
Definition at line 52 of file Feed.php.
Referenced by __construct().
FeedItem::$date |
Definition at line 46 of file Feed.php.
Referenced by __construct(), and getDate().
FeedItem::$description |
Definition at line 42 of file Feed.php.
Referenced by __construct().
FeedItem::$rssIsPermalink = false |
Definition at line 54 of file Feed.php.
Referenced by setUniqueId().
Title FeedItem::$title |
Definition at line 40 of file Feed.php.
Referenced by __construct().
FeedItem::$uniqueId |
Definition at line 50 of file Feed.php.
Referenced by setUniqueId().
FeedItem::$url |
Definition at line 44 of file Feed.php.
Referenced by __construct().