pluginName, 'getContentNames'); $contentPieces = Report::factory($this->pluginName, 'getContentPieces'); $reports = array($contentNames, $contentPieces); foreach($reports as $report) { $reportsView->addReport( $report->getCategory(), $report->getName(), 'Contents.' . Report::PREFIX_ACTION_IN_MENU . ucfirst($report->getAction()) ); } return $reportsView->render(); } public function menuGetContentNames() { $report = Report::factory($this->pluginName, 'getContentNames'); return View::singleReport($report->getName(), $report->render()); } public function menuGetContentPieces() { $report = Report::factory($this->pluginName, 'getContentPieces'); return View::singleReport($report->getName(), $report->render()); } }