60 $title, $description, $url, $date =
'', $author =
'', $comments =
''
65 $this->uniqueId =
$url;
78 $string = str_replace(
"\r\n",
"\n", $string );
79 $string = preg_replace(
'/[\x00-\x08\x0b\x0c\x0e-\x1f]/',
'', $string );
80 return htmlspecialchars( $string );
99 if ( $this->uniqueId ) {
110 public function setUniqueId( $uniqueId, $rssIsPermalink =
false ) {
147 return $this->
xmlEncode( $this->description );
156 return $this->description;
184 return $this->
xmlEncode( $this->author );
193 return $this->author;
202 return $this->
xmlEncode( $this->comments );
211 return $this->comments;
221 return preg_replace(
'/\[\[([^]]*\|)?([^]]+)\]\]/',
'\2', $text );
$wgLanguageCode
Site language code.
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.
Represents a title within MediaWiki.