ReportGenerateController
extends Page
in package
Table of Contents
Properties
- $renderer : Renderer
- $template : string
- $companyModel : Company
- $dataPointModel : DataPoint
- $exportFormatModel : ExportFormat
- $reportTypeModel : ReportType
- $subtopicModel : DatapointSubtopic
- $timePeriodModel : TimePeriod
- $topicModel : DatapointTopic
- $userData : array<string|int, mixed>
Methods
- __construct() : mixed
- show() : void
- Renders and sends the page to the client
- setTemplateData() : void
- Sets the data to be used in the template
- buildDatapointTree() : array<int, array<string, mixed>>
- Build nested topics → subtopics → datapoints
Properties
$renderer
protected
Renderer
$renderer
$template
protected
string
$template
= 'report-generate'
$companyModel
private
Company
$companyModel
$dataPointModel
private
DataPoint
$dataPointModel
$exportFormatModel
private
ExportFormat
$exportFormatModel
$reportTypeModel
private
ReportType
$reportTypeModel
$subtopicModel
private
DatapointSubtopic
$subtopicModel
$timePeriodModel
private
TimePeriod
$timePeriodModel
$topicModel
private
DatapointTopic
$topicModel
$userData
private
array<string|int, mixed>
$userData
= []
Methods
__construct()
public
__construct(Renderer $renderer, Company $companyModel, ReportType $reportTypeModel, TimePeriod $timePeriodModel, ExportFormat $exportFormatModel, DataPoint $dataPointModel, DatapointSubtopic $subtopicModel, DatapointTopic $topicModel) : mixed
Parameters
- $renderer : Renderer
- $companyModel : Company
- $reportTypeModel : ReportType
- $timePeriodModel : TimePeriod
- $exportFormatModel : ExportFormat
- $dataPointModel : DataPoint
- $subtopicModel : DatapointSubtopic
- $topicModel : DatapointTopic
show()
Renders and sends the page to the client
public
show() : void
Tags
setTemplateData()
Sets the data to be used in the template
protected
setTemplateData() : void
buildDatapointTree()
Build nested topics → subtopics → datapoints
private
buildDatapointTree(array<int, array<string, mixed>> $topics, array<int, array<string, mixed>> $subs, array<int, array<string, mixed>> $points) : array<int, array<string, mixed>>
Parameters
- $topics : array<int, array<string, mixed>>
- $subs : array<int, array<string, mixed>>
- $points : array<int, array<string, mixed>>