ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Survey question evaluation. More...
Public Member Functions | |
__construct (SurveyQuestion $a_question, array $a_finished_ids=null) | |
Constructor. More... | |
getResults () | |
Get results. More... | |
parseUserSpecificResults ($a_qres, $a_user_id) | |
getGrid ($a_results, $a_abs=true, $a_perc=true) | |
Get grid data. More... | |
getTextAnswers ($a_results) | |
Get text answers. More... | |
getChart ($a_results) | |
Get chart. More... | |
getSkippedValue () | |
Get caption for skipped value. More... | |
exportResults ($a_results, $a_do_title, $a_do_label) | |
getExportGrid ($a_results) | |
Get grid data. More... | |
getUserSpecificVariableTitles (array &$a_title_row, array &$a_title_row2, $a_do_title, $a_do_label) | |
Get title columns for user-specific export. More... | |
addUserSpecificResults (array &$a_row, $a_user_id, $a_results) | |
Protected Member Functions | |
parseResults (ilSurveyEvaluationResults $a_results, array $a_answers, SurveyCategories $a_categories=null) | |
Parse answer data into results instance. More... | |
getChartColors () | |
getSurveyId () | |
getNrOfParticipants () | |
Returns the number of participants for a survey. More... | |
getAnswerData () | |
Protected Attributes | |
$lng | |
$db | |
$question | |
$finished_ids | |
$chart_width = 400 | |
$chart_height = 300 | |
Survey question evaluation.
Definition at line 12 of file class.SurveyQuestionEvaluation.php.
SurveyQuestionEvaluation::__construct | ( | SurveyQuestion | $a_question, |
array | $a_finished_ids = null |
||
) |
Constructor.
SurveyQuestion | $a_question | |
array | $a_finished_ids |
Definition at line 36 of file class.SurveyQuestionEvaluation.php.
References $DIC.
|
abstract |
array | $a_row | |
int | $a_user_id | |
ilSurveyEvaluationResults | array | $a_results |
Referenced by getUserSpecificVariableTitles().
SurveyQuestionEvaluation::exportResults | ( | $a_results, | |
$a_do_title, | |||
$a_do_label | |||
) |
Definition at line 442 of file class.SurveyQuestionEvaluation.php.
References $question, $res, and SurveyQuestion\_getQuestionTypeName().
|
protected |
Definition at line 413 of file class.SurveyQuestionEvaluation.php.
References $db, $ilDB, $res, and $row.
Referenced by SurveyMatrixQuestionEvaluation\getResults(), and getResults().
SurveyQuestionEvaluation::getChart | ( | $a_results | ) |
Get chart.
ilSurveyEvaluationResults | array | $a_results |
Definition at line 321 of file class.SurveyQuestionEvaluation.php.
References $data, $legend, ilChartGrid\DATA_BARS, getChartColors(), ilChart\getInstanceByType(), and ilChart\TYPE_GRID.
Referenced by ilSurveyEvaluationGUI\renderDetails().
|
protected |
Definition at line 293 of file class.SurveyQuestionEvaluation.php.
Referenced by SurveyMetricQuestionEvaluation\getChart(), SurveyMatrixQuestionEvaluation\getChart(), and getChart().
SurveyQuestionEvaluation::getExportGrid | ( | $a_results | ) |
Get grid data.
ilSurveyEvaluationResults | array | $a_results |
Definition at line 483 of file class.SurveyQuestionEvaluation.php.
Referenced by ilSurveyEvaluationGUI\exportResultsDetailsExcel().
SurveyQuestionEvaluation::getGrid | ( | $a_results, | |
$a_abs = true , |
|||
$a_perc = true |
|||
) |
Get grid data.
ilSurveyEvaluationResults | array | $a_results | |
bool | $a_abs | |
bool | $a_perc |
Definition at line 228 of file class.SurveyQuestionEvaluation.php.
References $cols, $lng, and $res.
Referenced by ilSurveyEvaluationGUI\renderDetails().
|
protected |
Returns the number of participants for a survey.
Definition at line 400 of file class.SurveyQuestionEvaluation.php.
References $db, $finished_ids, and $ilDB.
Referenced by parseResults().
SurveyQuestionEvaluation::getResults | ( | ) |
Get results.
Definition at line 56 of file class.SurveyQuestionEvaluation.php.
References $results, getAnswerData(), and parseResults().
SurveyQuestionEvaluation::getSkippedValue | ( | ) |
Get caption for skipped value.
Definition at line 371 of file class.SurveyQuestionEvaluation.php.
References ilObjSurvey\getSurveySkippedValue().
Referenced by SurveyTextQuestionEvaluation\addUserSpecificResults(), SurveySingleChoiceQuestionEvaluation\addUserSpecificResults(), SurveyMultipleChoiceQuestionEvaluation\addUserSpecificResults(), SurveyMetricQuestionEvaluation\addUserSpecificResults(), and SurveyMatrixQuestionEvaluation\addUserSpecificResults().
|
protected |
SurveyQuestionEvaluation::getTextAnswers | ( | $a_results | ) |
Get text answers.
ilSurveyEvaluationResults | array | $a_results |
Definition at line 288 of file class.SurveyQuestionEvaluation.php.
Referenced by ilSurveyEvaluationGUI\exportResultsDetailsExcel(), and ilSurveyEvaluationGUI\renderDetails().
SurveyQuestionEvaluation::getUserSpecificVariableTitles | ( | array & | $a_title_row, |
array & | $a_title_row2, | ||
$a_do_title, | |||
$a_do_label | |||
) |
Get title columns for user-specific export.
array | $a_title_row | |
array | $a_title_row2 | |
bool | $a_do_title | |
bool | $a_do_label |
Definition at line 522 of file class.SurveyQuestionEvaluation.php.
References addUserSpecificResults().
|
protected |
Parse answer data into results instance.
ilSurveyEvaluationResults | $a_results | |
array | $a_answers | |
SurveyCategories | $a_categories |
Definition at line 79 of file class.SurveyQuestionEvaluation.php.
References $c, $i, $total, ilSurveyEvaluationResults\addAnswer(), ilSurveyEvaluationResults\addVariable(), getNrOfParticipants(), ilSurveyEvaluationResults\setMedian(), ilSurveyEvaluationResults\setMode(), ilSurveyEvaluationResults\setUsersAnswered(), and ilSurveyEvaluationResults\setUsersSkipped().
Referenced by SurveyMatrixQuestionEvaluation\getResults(), and getResults().
SurveyQuestionEvaluation::parseUserSpecificResults | ( | $a_qres, | |
$a_user_id | |||
) |
Definition at line 170 of file class.SurveyQuestionEvaluation.php.
|
protected |
Definition at line 27 of file class.SurveyQuestionEvaluation.php.
|
protected |
Definition at line 26 of file class.SurveyQuestionEvaluation.php.
|
protected |
Definition at line 22 of file class.SurveyQuestionEvaluation.php.
Referenced by getAnswerData(), getNrOfParticipants(), and getSurveyId().
|
protected |
Definition at line 25 of file class.SurveyQuestionEvaluation.php.
Referenced by getNrOfParticipants().
|
protected |
Definition at line 17 of file class.SurveyQuestionEvaluation.php.
Referenced by SurveyMetricQuestionEvaluation\getChart(), SurveyMatrixQuestionEvaluation\getChart(), SurveyMetricQuestionEvaluation\getExportGrid(), getExportGrid(), SurveyMetricQuestionEvaluation\getGrid(), SurveyMatrixQuestionEvaluation\getGrid(), getGrid(), SurveySingleChoiceQuestionEvaluation\getUserSpecificVariableTitles(), SurveyMultipleChoiceQuestionEvaluation\getUserSpecificVariableTitles(), and SurveyMatrixQuestionEvaluation\getUserSpecificVariableTitles().
|
protected |
Definition at line 24 of file class.SurveyQuestionEvaluation.php.
Referenced by SurveyMatrixQuestionEvaluation\exportResults(), and exportResults().