Manual:$wgFeedClasses

From Linux Web Expert

Revision as of 08:38, 23 October 2022 by imported>Shirayuki (update default values)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> Feed</translate>: $wgFeedClasses
Available feeds objects.
<translate> Introduced in version:</translate>1.3.0 (r2615)
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(array)
<translate> Default value:</translate>(see below)

Details

Available feeds objects.

This was originally defined in Feed.php in r2615, and was moved to Defines.php in r5283. It was finally moved to DefaultSettings.php in r91192.

Default value

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.40
<translate> MediaWiki version:</translate>
$wgFeedClasses = [
	'rss' => \MediaWiki\Feed\RSSFeed::class,
	'atom' => \MediaWiki\Feed\AtomFeed::class,
];
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.39</tvar> is legacy version</translate>">
1.39
<translate> MediaWiki version:</translate>
$wgFeedClasses = [
	'rss' => 'RSSFeed',
	'atom' => 'AtomFeed',
];
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.38</tvar> is unsupported version</translate>">
1.31 – 1.38
<translate> MediaWiki versions:</translate>
$wgFeedClasses = [
	'rss' => RSSFeed::class,
	'atom' => AtomFeed::class,
];
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.30</tvar> is unsupported version</translate>">
1.3 – 1.30
<translate> MediaWiki versions:</translate>
$wgFeedClasses = [
	'rss' => 'RSSFeed',
	'atom' => 'AtomFeed',
];