81 $this->uniqueId =
$url;
96 $string = str_replace(
"\r\n",
"\n", $string );
97 $string = preg_replace(
'/[\x00-\x08\x0b\x0c\x0e-\x1f]/',
'', $string );
99 return htmlspecialchars( $string );
120 if ( $this->uniqueId ) {
121 return $this->urlUtils->expand( $this->uniqueId,
PROTO_CURRENT );
133 public function setUniqueId( $uniqueId, $rssIsPermalink =
false ) {
134 $this->uniqueId = $uniqueId;
135 $this->rssIsPermalink = $rssIsPermalink;
144 return $this->xmlEncode( $this->title );
153 return $this->xmlEncode( $this->url );
170 return $this->xmlEncode( $this->description );
179 return $this->description;
190 return LanguageCode::bcp47( $languageCode );
208 return $this->xmlEncode( $this->author );
217 return $this->author;
226 return $this->xmlEncode( $this->comments );
235 return $this->comments;
246 return preg_replace(
'/\[\[([^]]*\|)?([^]]+)\]\]/',
'\2', $text );
252class_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()