ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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 | |
$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 26 of file class.SurveyQuestionEvaluation.php.
|
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 477 of file class.SurveyQuestionEvaluation.php.
References $question, $res, SurveyQuestion\_getQuestionTypeName(), and array.
|
protected |
Definition at line 446 of file class.SurveyQuestionEvaluation.php.
References $ilDB, $res, $row, and array.
Referenced by SurveyMatrixQuestionEvaluation\getResults(), and getResults().
SurveyQuestionEvaluation::getChart | ( | $a_results | ) |
Get chart.
ilSurveyEvaluationResults | array | $a_results |
Definition at line 352 of file class.SurveyQuestionEvaluation.php.
References $chart, $data, $legend, array, ilChartGrid\DATA_BARS, getChartColors(), ilChart\getInstanceByType(), and ilChart\TYPE_GRID.
Referenced by ilSurveyEvaluationGUI\renderDetails().
|
protected |
Definition at line 324 of file class.SurveyQuestionEvaluation.php.
References array.
Referenced by SurveyMetricQuestionEvaluation\getChart(), SurveyMatrixQuestionEvaluation\getChart(), and getChart().
SurveyQuestionEvaluation::getExportGrid | ( | $a_results | ) |
Get grid data.
ilSurveyEvaluationResults | array | $a_results |
Definition at line 520 of file class.SurveyQuestionEvaluation.php.
References $lng, $res, and array.
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 247 of file class.SurveyQuestionEvaluation.php.
References $lng, $res, and array.
Referenced by ilSurveyEvaluationGUI\renderDetails().
|
protected |
Returns the number of participants for a survey.
Definition at line 432 of file class.SurveyQuestionEvaluation.php.
References $finished_ids, and $ilDB.
Referenced by parseResults().
SurveyQuestionEvaluation::getResults | ( | ) |
Get results.
Definition at line 42 of file class.SurveyQuestionEvaluation.php.
References $results, array, getAnswerData(), and parseResults().
SurveyQuestionEvaluation::getSkippedValue | ( | ) |
Get caption for skipped value.
Definition at line 403 of file class.SurveyQuestionEvaluation.php.
References ilObjSurvey\getSurveySkippedValue().
Referenced by SurveySingleChoiceQuestionEvaluation\addUserSpecificResults(), SurveyTextQuestionEvaluation\addUserSpecificResults(), SurveyMultipleChoiceQuestionEvaluation\addUserSpecificResults(), SurveyMetricQuestionEvaluation\addUserSpecificResults(), and SurveyMatrixQuestionEvaluation\addUserSpecificResults().
|
protected |
Definition at line 414 of file class.SurveyQuestionEvaluation.php.
SurveyQuestionEvaluation::getTextAnswers | ( | $a_results | ) |
Get text answers.
ilSurveyEvaluationResults | array | $a_results |
Definition at line 319 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 561 of file class.SurveyQuestionEvaluation.php.
References addUserSpecificResults(), and array.
|
protected |
Parse answer data into results instance.
ilSurveyEvaluationResults | $a_results | |
array | $a_answers | |
SurveyCategories | $a_categories |
Definition at line 65 of file class.SurveyQuestionEvaluation.php.
References $total, ilSurveyEvaluationResults\addAnswer(), ilSurveyEvaluationResults\addVariable(), array, getNrOfParticipants(), ilSurveyEvaluationResults\setMedian(), ilSurveyEvaluationResults\setMode(), ilSurveyEvaluationResults\setUsersAnswered(), and ilSurveyEvaluationResults\setUsersSkipped().
Referenced by SurveyMatrixQuestionEvaluation\getResults(), and getResults().
SurveyQuestionEvaluation::parseUserSpecificResults | ( | $a_qres, | |
$a_user_id | |||
) |
|
protected |
Definition at line 17 of file class.SurveyQuestionEvaluation.php.
|
protected |
Definition at line 16 of file class.SurveyQuestionEvaluation.php.
|
protected |
Definition at line 15 of file class.SurveyQuestionEvaluation.php.
Referenced by getNrOfParticipants().
|
protected |
Definition at line 14 of file class.SurveyQuestionEvaluation.php.
Referenced by SurveyMatrixQuestionEvaluation\exportResults(), and exportResults().