public function actionEdit($id, $isBeingCopied = false) { $savedReport = SavedReport::getById((int) $id); ControllerSecurityUtil::resolveCanCurrentUserAccessModule($savedReport->moduleClassName); if (!$isBeingCopied) { ControllerSecurityUtil::resolveAccessCanCurrentUserWriteModel($savedReport); } $breadCrumbLinks = array(strval($savedReport)); $report = SavedReportToReportAdapter::makeReportBySavedReport($savedReport); $progressBarAndStepsView = ReportWizardViewFactory::makeStepsAndProgressBarViewFromReport($report); $reportWizardView = ReportWizardViewFactory::makeViewFromReport($report, (bool) $isBeingCopied); $view = new ReportsPageView(ZurmoDefaultViewUtil::makeTwoViewsWithBreadcrumbsForCurrentUser($this, $progressBarAndStepsView, $reportWizardView, $breadCrumbLinks, 'ReportBreadCrumbView')); echo $view->render(); }