class Statistics (View source)

Properties

static $sortChoices

Methods

static int
getTotalSubmissions(string $date = null, string $dateTimezone = 'user')

Gets the total number of submissions.

static number
getTotalSubmissionsBetween(string|int|DateTime $fromDate = null, string|int|DateTime $toDate = null, $datesTimezone = 'user')

Gets the total number of submissions in specific date/time ranges.

static 
loadSurveys($MiniSurvey)

No description

static 
buildAnswerSetsArray($questionSet, $orderBy = '', $limit = '')

No description

Details

static int getTotalSubmissions(string $date = null, string $dateTimezone = 'user')

Gets the total number of submissions.

Parameters

string $date

Set to a specific day (eg '2014-09-14') to retrieve the submissions in that day.

string $dateTimezone

The timezone of the $date parameter (acceptable values: 'user', 'system', 'app' or any valid PHP timezone identifier)

Return Value

int

static number getTotalSubmissionsBetween(string|int|DateTime $fromDate = null, string|int|DateTime $toDate = null, $datesTimezone = 'user')

Gets the total number of submissions in specific date/time ranges.

Parameters

string|int|DateTime $fromDate

The start of the period (if empty: from ever). Inclusive. Example: '2014-09-14 08:00:00'.

string|int|DateTime $toDate

The end of the period (if empty: for ever). Inclusive. Example: '2014-09-14 08:00:00'.

$datesTimezone

Return Value

number

static loadSurveys($MiniSurvey)

No description

Parameters

$MiniSurvey

static buildAnswerSetsArray($questionSet, $orderBy = '', $limit = '')

No description

Parameters

$questionSet
$orderBy
$limit