private function _getPlugin() { $reportName = $this->_getParam('report'); try { $statPlugin = Stats_Model_Report::getReportInstance($reportName); } catch (Monkeys_AccessDeniedException $ex) { throw new Exception("Unable to open Stats plugin: {$entry}"); } $statPlugin->setControllerAction($this); $statPlugin->setView($this->view); return $statPlugin; }
private function _sortPlugins(Stats_Model_Report $pluginA, Stats_Model_Report $pluginB) { return $pluginA->getPriority() - $pluginB->getPriority(); }