request->getStringParam('token'); $user = $this->userModel->getByToken($token); if (empty($user)) { throw AccessForbiddenException::getInstance()->withoutLayout(); } $events = $this->helper->projectActivity->getProjectsEvents($this->projectPermissionModel->getActiveProjectIds($user['id'])); $this->response->xml($this->template->render('feed/user', [ 'user' => $user, 'events' => $events, ])); } /** * RSS feed for a project * * @access public */ public function project() { $token = $this->request->getStringParam('token'); $project = $this->projectModel->getByToken($token); if (empty($project)) { throw AccessForbiddenException::getInstance()->withoutLayout(); } $events = $this->helper->projectActivity->getProjectEvents($project['id']); $this->response->xml($this->template->render('feed/project', [ 'project' => $project, 'events' => $events, ])); } }