82 $this->uniqueId =
$url;
97 $string = str_replace(
"\r\n",
"\n", $string );
98 $string = preg_replace(
'/[\x00-\x08\x0b\x0c\x0e-\x1f]/',
'', $string );
100 return htmlspecialchars( $string );
121 if ( $this->uniqueId ) {
122 return $this->urlUtils->expand( $this->uniqueId,
PROTO_CURRENT );
134 public function setUniqueId( $uniqueId, $rssIsPermalink =
false ) {
135 $this->uniqueId = $uniqueId;
136 $this->rssIsPermalink = $rssIsPermalink;
145 return $this->xmlEncode( $this->title );
154 return $this->xmlEncode( $this->url );
171 return $this->xmlEncode( $this->description );
180 return $this->description;
191 return LanguageCode::bcp47( $languageCode );
209 return $this->xmlEncode( $this->author );
218 return $this->author;
227 return $this->xmlEncode( $this->comments );
236 return $this->comments;
247 return preg_replace(
'/\[\[([^]]*\|)?([^]]+)\]\]/',
'\2', $text );
253class_alias( FeedItem::class,
'FeedItem' );
if(!defined('MW_SETUP_CALLBACK'))
A class containing constants representing the names of configuration variables.
const LanguageCode
Name constant for the LanguageCode setting, for use with Config::get()