package | Default |
---|
_listcolumn( $surveyid, $column, $sortby = "", $sortmethod = "", $sorttype = "")
buildOutputList(string $rt,mixed $language,mixed $surveyid,string $outputType, $sql, $oLanguage,boolean $browse = true)
output | array $output An array containing "alist"=>A list of answers to the question in the form of an array ($alist array contains an array for every field to be displayed - with the Actual Question Code/Title, The text (flattened) of the question, and the fieldname where the data is stored. "qtitle"=>The title of the question, "qquestion"=>The description of the question, "qtype"=>The question type code |
---|---|
string
The code passed from the statistics form listing the field/answer (SGQA) combination to be displayed
mixed
The language to present output in
mixed
The survey id
string
boolean
displayResults(mixed $outputs,INT $results,mixed $rt,string $outputType,mixed $surveyid,mixed $sql,integer $usegraph,boolean $browse, $sLanguage): array
mixed
INT
The number of results being displayed overall
mixed
string
mixed
mixed
integer
boolean
array
generate_statistics(integer $surveyid,mixed $allfields,mixed $q2show = 'all',integer $usegraph,string $outputType = 'pdf',string $pdfOutput = 'I', $sLanguageCode = null,boolean $browse = true): string|null
integer
The survey id
mixed
mixed
integer
string
Optional - Can be xls, html or pdf - Defaults to pdf
string
Sets the target for the PDF output: DD=File download , F=Save file to local disk
boolean
Show browse buttons
string|null
getLinefeed(string $outputType): string
string
string
getQuartile(integer $quartile,string $fieldname,integer $surveyid,string $sql,boolean $excludezeros): null|float
L=(1/4)(n+1), U=(3/4)(n+1) Minitab linear interpolation between the two closest data points. Minitab would let L = 2.5 and find the value half way between the 2nd and 3rd data points. In our example, that would be (4+9)/2 = 6.5. Similarly, the upper quartile value would be half way between the 7th and 8th data points, which would be (49+64)/2 = 56.5. If L were 2.25, Minitab would find the value one fourth of the way between the 2nd and 3rd data points and if L were 2.75, Minitab would find the value three fourths of the way between the 2nd and 3rd data points.
staticvar | null $sid int $recordCount null $field null $allRows |
---|
integer
use 0 for return of recordcount, otherwise will return Q1,Q2,Q3
string
integer
string
boolean
null|float
sheet :\Spreadsheet_Excel_Writer_Worksheet
var |
---|
\Spreadsheet_Excel_Writer_Worksheet
xlsPercents :
formatBold :
xlsRow :integer
var |
---|
integer