63 $this->uniqueId =
$url;
76 $string = str_replace(
"\r\n",
"\n", $string );
77 $string = preg_replace(
'/[\x00-\x08\x0b\x0c\x0e-\x1f]/',
'', $string );
78 return htmlspecialchars( $string );
97 if ( $this->uniqueId ) {
145 return $this->
xmlEncode( $this->description );
182 return $this->
xmlEncode( $this->author );
200 return $this->
xmlEncode( $this->comments );
219 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.