/** * Hook-Handler for MediaWiki hook MediaWikiPerformAction * @param OutputPage $wgOut MediaWiki Outpupage object. * @param Article $article MediaWiki article object. * @param Title $title MediaWiki title object. * @param User $user MediaWiki user object. * @param Request $request MediaWiki request object. * @param mediaWiki $mediaWiki MediaWiki mediaWiki object. * @return bool Always true. */ public function onBSRSSFeederGetRegisteredFeeds($aFeeds) { RSSFeeder::registerFeed('recentchanges', wfMessage('bs-rssfeeder-recent-changes')->plain(), wfMessage('bs-rssstandards-desc-rc')->plain(), $this, NULL, NULL, 'buildLinksRc'); RSSFeeder::registerFeed('followOwn', wfMessage('bs-rssstandards-title-own')->plain(), wfMessage('bs-rssstandards-desc-own')->plain(), $this, 'buildRssOwn', array('u'), 'buildLinksOwn'); RSSFeeder::registerFeed('followPage', wfMessage('bs-rssstandards-title-page')->plain(), wfMessage('bs-rssstandards-desc-page')->plain(), $this, 'buildRssPage', array('p', 'ns'), 'buildLinksPage'); RSSFeeder::registerFeed('namespace', wfMessage('bs-ns')->plain(), wfMessage('bs-rssstandards-desc-ns')->plain(), $this, 'buildRssNs', array('ns'), 'buildLinksNs'); RSSFeeder::registerFeed('category', wfMessage('bs-rssstandards-title-cat')->plain(), wfMessage('bs-rssstandards-desc-cat')->plain(), $this, 'buildRssCat', array('cat'), 'buildLinksCat'); RSSFeeder::registerFeed('watchlist', wfMessage('bs-rssstandards-title-watch')->plain(), wfMessage('bs-rssstandards-desc-watch')->plain(), $this, 'buildRssWatch', array('days'), 'buildLinksWatch'); return true; }
public function onBSRSSFeederGetRegisteredFeeds($aFeeds) { RSSFeeder::registerFeed('blog', wfMessage('bs-blog-blog')->plain(), wfMessage('bs-blog-extension-description')->plain(), $this, 'buildRssNsBlog', null, 'buildLinksNs'); return true; }