SurveyOverviewStatistics
in package
implements
StatisticsChartInterface
Survey Overview Statistics Chart Generator
Generates overview statistics for a survey including:
- Total responses
- Total not submitted responses
- Completion rate
- Average completion time
- Number of completed submissions without answers
- Number of not submitted submissions without answers
Table of Contents
Interfaces
- StatisticsChartInterface
- Interface for all statistics chart classes.
Properties
- $surveyId : int
Methods
- run() : array<string|int, mixed>
- Run the chart generation logic.
- setFilters() : void
- Set filters for responses
- fetchStatisticsOverview() : array<string|int, mixed>
- Fetch overview statistics for the survey
- getDateDiffClause() : mixed
Properties
$surveyId
private
int
$surveyId
= 0
Methods
run()
Run the chart generation logic.
public
run(int $surveyId[, string $language = 'en' ]) : array<string|int, mixed>
Parameters
- $surveyId : int
-
Survey ID
- $language : string = 'en'
-
Language code (optional, for localized text)
Tags
Return values
array<string|int, mixed> —Chart output(s)
setFilters()
Set filters for responses
public
setFilters(StatisticsResponseFilters $filters) : void
Parameters
- $filters : StatisticsResponseFilters
fetchStatisticsOverview()
Fetch overview statistics for the survey
private
fetchStatisticsOverview() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —Array of statistics
getDateDiffClause()
private
getDateDiffClause() : mixed