LimeSurvey API - Master branch

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

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

Chart output(s)

fetchStatisticsOverview()

Fetch overview statistics for the survey

private fetchStatisticsOverview() : array<string|int, mixed>
Tags
throws
InvalidArgumentException

If table doesn't exist or other DB error

Return values
array<string|int, mixed>

Array of statistics


        
On this page

Search results