Documentation

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

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
throws
Exception

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>>
Return values
array<int, array<string, mixed>>

        
On this page

Search results