54 assert(
'is_string($type)');
57 return 'RowsAndColumnsReportWizardForm';
61 return 'SummationReportWizardForm';
65 return 'MatrixReportWizardForm';
78 $this->report = $report;
140 $formModel->id = $this->report->
getId();
141 $formModel->description = $this->report->getDescription();
142 $formModel->moduleClassName = $this->report->getModuleClassName();
143 if ($this->report->getOwner()->id > 0)
145 $formModel->ownerId = (int)$this->report->getOwner()->id;
146 $formModel->ownerName = strval($this->report->getOwner());
148 $formModel->name = $this->report->getName();
149 $formModel->type = $this->report->getType();
150 $formModel->filtersStructure = $this->report->getFiltersStructure();
152 $formModel->currencyConversionType = $this->report->getCurrencyConversionType();
153 $formModel->spotConversionCurrencyCode = $this->report->getSpotConversionCurrencyCode();
155 if ($this->report->isNew())
157 $formModel->setIsNew();
160 $formModel->filters = $this->report->getFilters();
161 $formModel->orderBys = $this->report->getOrderBys();
162 $formModel->groupBys = $this->report->getGroupBys();
163 $formModel->displayAttributes = $this->report->getDisplayAttributes();
164 $formModel->drillDownDisplayAttributes = $this->report->getDrillDownDisplayAttributes();
165 $formModel->chart = $this->report->getChart();
const TYPE_ROWS_AND_COLUMNS