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($fromDate = null, $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($fromDate = null, $toDate = null, $datesTimezone = 'user')

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

Parameters

$fromDate
$toDate
$datesTimezone

Return Value

number

static loadSurveys($MiniSurvey)

Parameters

$MiniSurvey

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

Parameters

$questionSet
$orderBy
$limit