/** * Render the special page * @param string $par parameter submitted as subpage */ function execute($par) { // Anons don't get a watchlist $this->requireLogin('watchlistanontext'); $user = $this->getUser(); $out = $this->getOutput(); $out->setPageTitle($this->msg('gather-editfeed-title')); $req = $this->getRequest(); $this->filter = $req->getVal('filter', 'all'); $this->id = $req->getInt('collection-id', 0); $out->addHtml($this->getHeader($user, $this->id, $this->getPageTitle()->getLocalUrl())); $out->addModuleStyles(array('mediawiki.ui.input', 'ext.gather.styles', 'ext.gather.menu.icon')); $out->setProperty('unstyledContent', true); $this->showRecentChangesHeader(); $user = $this->getUser(); $id = (int) $this->id; $feed = models\CollectionFeed::newFromDatabase($user, $id, $this->filter); $feedView = new views\CollectionFeed($feed, $this->getLanguage()); $feedView->render($out); }