countFunctions
in package
Table of Contents
Methods
- statCount() : int|string
- Return the count of response on current ExpressionScript Engine survey equal to a specific value
- statCountIf() : int|string
- Return the count of response on current ExpressionScript Engine survey equal to a specific value
Methods
statCount()
Return the count of response on current ExpressionScript Engine survey equal to a specific value
public
static statCount(string $qCode[, bool $submitted = true ][, bool $self = true ]) : int|string
Parameters
- $qCode : string
-
: code of question, currently must be existing sgqa. Sample Q01.sgqa.
- $submitted : bool = true
-
(or not) response
- $self : bool = true
-
include (or not) current response
Return values
int|stringstatCountIf()
Return the count of response on current ExpressionScript Engine survey equal to a specific value
public
static statCountIf(string $qCode, string $comparaison[, bool $submitted = true ][, bool $self = true ]) : int|string
Parameters
- $qCode : string
-
: code of question, currently must be existing sgqa. Sample Q01.sgqa.
- $comparaison : string
-
: comparre with value. Can use < or > … see https://www.yiiframework.com/doc/api/1.1/CDbCriteria#compare-detail
- $submitted : bool = true
-
(or not) response
- $self : bool = true
-
include (or not) current response