MediaWiki
1.34.0
|
A base class for outputting syndication feeds (e.g. More...
Public Member Functions | |
__construct ( $title, $description, $url, $date='', $author='', $comments='') | |
getAuthor () | |
Get the author of this item; already xml-encoded. More... | |
getAuthorUnescaped () | |
Get the author of this item without any escaping. More... | |
getComments () | |
Get the comment of this item; already xml-encoded. More... | |
getCommentsUnescaped () | |
Get the comment of this item without any escaping. More... | |
getDate () | |
Get the date of this item. More... | |
getDescription () | |
Get the description of this item; already xml-encoded. More... | |
getDescriptionUnescaped () | |
Get the description of this item without any escaping. 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; already xml-encoded. More... | |
getUniqueIdUnescaped () | |
Get the unique id of this item, without any escaping. More... | |
getUrl () | |
Get the URL of this item; already xml-encoded. More... | |
getUrlUnescaped () | |
Get the URL of this item without any escaping. 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 outputting syndication feeds (e.g.
RSS and other formats).
Definition at line 33 of file FeedItem.php.
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 |
Definition at line 59 of file FeedItem.php.
References $author, $comments, $date, $description, $title, and $url.
FeedItem::getAuthor | ( | ) |
Get the author of this item; already xml-encoded.
Definition at line 181 of file FeedItem.php.
References xmlEncode().
FeedItem::getAuthorUnescaped | ( | ) |
Get the author of this item without any escaping.
Definition at line 190 of file FeedItem.php.
References $author.
FeedItem::getComments | ( | ) |
Get the comment of this item; already xml-encoded.
Definition at line 199 of file FeedItem.php.
References xmlEncode().
FeedItem::getCommentsUnescaped | ( | ) |
Get the comment of this item without any escaping.
Definition at line 208 of file FeedItem.php.
References $comments.
FeedItem::getDate | ( | ) |
Get the date of this item.
Definition at line 172 of file FeedItem.php.
References $date.
FeedItem::getDescription | ( | ) |
Get the description of this item; already xml-encoded.
Definition at line 144 of file FeedItem.php.
References xmlEncode().
FeedItem::getDescriptionUnescaped | ( | ) |
Get the description of this item without any escaping.
Definition at line 153 of file FeedItem.php.
References $description.
FeedItem::getLanguage | ( | ) |
Get the language of this item.
Definition at line 162 of file FeedItem.php.
References $wgLanguageCode, and LanguageCode\bcp47().
FeedItem::getTitle | ( | ) |
Get the title of this item; already xml-encoded.
Definition at line 118 of file FeedItem.php.
References xmlEncode().
FeedItem::getUniqueID | ( | ) |
Get the unique id of this item; already xml-encoded.
Definition at line 85 of file FeedItem.php.
References getUniqueIdUnescaped(), and xmlEncode().
FeedItem::getUniqueIdUnescaped | ( | ) |
Get the unique id of this item, without any escaping.
Definition at line 96 of file FeedItem.php.
References PROTO_CURRENT, and wfExpandUrl().
Referenced by getUniqueID().
FeedItem::getUrl | ( | ) |
Get the URL of this item; already xml-encoded.
Definition at line 127 of file FeedItem.php.
References xmlEncode().
FeedItem::getUrlUnescaped | ( | ) |
Get the URL of this item without any escaping.
Definition at line 135 of file FeedItem.php.
References $url.
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 108 of file FeedItem.php.
References $rssIsPermalink, and $uniqueId.
|
static |
Quickie hack...
strip out wikilinks to more legible form from the comment.
string | $text | Wikitext |
Definition at line 218 of file FeedItem.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 75 of file FeedItem.php.
Referenced by getAuthor(), getComments(), getDescription(), getTitle(), getUniqueID(), and getUrl().
FeedItem::$author |
Definition at line 43 of file FeedItem.php.
Referenced by __construct(), and getAuthorUnescaped().
FeedItem::$comments |
Definition at line 47 of file FeedItem.php.
Referenced by __construct(), and getCommentsUnescaped().
FeedItem::$date |
Definition at line 41 of file FeedItem.php.
Referenced by __construct(), and getDate().
FeedItem::$description |
Definition at line 37 of file FeedItem.php.
Referenced by __construct(), and getDescriptionUnescaped().
FeedItem::$rssIsPermalink = false |
Definition at line 49 of file FeedItem.php.
Referenced by setUniqueId().
Title FeedItem::$title |
Definition at line 35 of file FeedItem.php.
Referenced by __construct().
FeedItem::$uniqueId |
Definition at line 45 of file FeedItem.php.
Referenced by setUniqueId().
FeedItem::$url |
Definition at line 39 of file FeedItem.php.
Referenced by __construct(), and getUrlUnescaped().