63 $title, $description, $url, $date =
'', $author =
'', $comments =
''
68 $this->uniqueId =
$url;
81 $string = str_replace(
"\r\n",
"\n", $string );
82 $string = preg_replace(
'/[\x00-\x08\x0b\x0c\x0e-\x1f]/',
'', $string );
83 return htmlspecialchars( $string );
102 if ( $this->uniqueId ) {
113 public function setUniqueId( $uniqueId, $rssIsPermalink =
false ) {
150 return $this->
xmlEncode( $this->description );
159 return $this->description;
168 $languageCode = MediaWikiServices::getInstance()->getMainConfig()
169 ->get( MainConfigNames::LanguageCode );
170 return LanguageCode::bcp47( $languageCode );
188 return $this->
xmlEncode( $this->author );
197 return $this->author;
206 return $this->
xmlEncode( $this->comments );
215 return $this->comments;
225 return preg_replace(
'/\[\[([^]]*\|)?([^]]+)\]\]/',
'\2', $text );
wfExpandUrl( $url, $defaultProto=PROTO_CURRENT)
Expand a potentially local URL to a fully-qualified URL.
A base class for outputting syndication feeds (e.g.
getLanguage()
Get the language of this item.
setUniqueId( $uniqueId, $rssIsPermalink=false)
Set the unique id of an item.
getDescription()
Get the description of this item; already xml-encoded.
getDescriptionUnescaped()
Get the description of this item without any escaping.
getCommentsUnescaped()
Get the comment of this item without any escaping.
getTitle()
Get the title of this item; already xml-encoded.
getDate()
Get the date of this item.
getUniqueIdUnescaped()
Get the unique id of this item, without any escaping.
static stripComment( $text)
Quickie hack... strip out wikilinks to more legible form from the comment.
getAuthor()
Get the author of this item; already xml-encoded.
xmlEncode( $string)
Encode $string so that it can be safely embedded in a XML document.
getComments()
Get the comment of this item; already xml-encoded.
getAuthorUnescaped()
Get the author of this item without any escaping.
getUrlUnescaped()
Get the URL of this item without any escaping.
__construct( $title, $description, $url, $date='', $author='', $comments='')
getUniqueID()
Get the unique id of this item; already xml-encoded.
getUrl()
Get the URL of this item; already xml-encoded.
A class containing constants representing the names of configuration variables.
Represents a title within MediaWiki.