/** List of suggested topics * @access public * @return void */ public function suggestedAction() { $projects = new SuggestedResearch(); if (in_array($this->_helper->contextSwitch->getCurrentContext(), array('xml', 'json', 'rss', 'atom'))) { $this->view->suggested = $projects->getAll($this->getAllParams(), 0); } else { $this->view->undergrad = $projects->getTopicByType(1); $this->view->masters = $projects->getTopicByType(2); $this->view->phd = $projects->getTopicByType(3); } }