package |
Default |
---|
_listcolumn( $surveyid, $column, $sortby = "", $sortmethod = "", $sorttype = "")
_showSpeaker( $hinttext)
buildOutputList(string $rt, mixed $language, mixed $surveyid, string $outputType, $sql, $oLanguage, boolean $browse = true) : array
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
array
displayResults(mixed $outputs, INT $results, mixed $rt, string $outputType, mixed $surveyid, mixed $sql, integer $usegraph, $browse, $sLanguage)
mixed
INT
The number of results being displayed overall
mixed
string
mixed
mixed
integer
displaySimpleResults( $outputs, $results, $rt, string $outputType, $surveyid, $sql, integer $usegraph, boolean $browse, $sLanguage) : array
string
integer
boolean
array
generate_html_chartjs_statistics( $surveyid, $allfields, $q2show = 'all', $usegraph, $outputType = 'pdf', $pdfOutput = 'I', $sLanguageCode = null, $browse = true)
generate_simple_statistics( $surveyid, array<mixed,string> $allfields, $q2show = 'all', $usegraph, $outputType = 'pdf', $pdfOutput = 'I', $sLanguageCode = null, $browse = true) : string
array<mixed,string>
string
generate_statistics(integer $surveyid, mixed $allfields, mixed $q2show = 'all', integer $usegraph, string $outputType = 'pdf', $outputTarget = 'I', $sLanguageCode = null, mixed $browse = true) : string
integer
The survey id
mixed
mixed
integer
string
Optional - Can be xls, html or pdf - Defaults to pdf
mixed
Show browse buttons
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 :
workbook : \Xlswriter
var |
---|
\Xlswriter
xlsRow : integer
var |
---|
integer