|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Survey question evaluation. More...
Inheritance diagram for SurveyQuestionEvaluation:
Collaboration diagram for SurveyQuestionEvaluation: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 |
Reimplemented in SurveyMatrixQuestionEvaluation, SurveyMetricQuestionEvaluation, SurveyMultipleChoiceQuestionEvaluation, SurveySingleChoiceQuestionEvaluation, and SurveyTextQuestionEvaluation.
| SurveyQuestionEvaluation::exportResults | ( | $a_results, | |
| $a_do_title, | |||
| $a_do_label | |||
| ) |
Reimplemented in SurveyMatrixQuestionEvaluation.
Definition at line 442 of file class.SurveyQuestionEvaluation.php.
References $question, $res, and SurveyQuestion\_getQuestionTypeName().
Here is the call graph for this function:
|
protected |
Definition at line 413 of file class.SurveyQuestionEvaluation.php.
References $db, $ilDB, $res, $row, and getSurveyId().
Referenced by SurveyMatrixQuestionEvaluation\getResults(), and getResults().
Here is the call graph for this function:
Here is the caller graph for this function:| SurveyQuestionEvaluation::getChart | ( | $a_results | ) |
Get chart.
| ilSurveyEvaluationResults | array | $a_results |
Reimplemented in SurveyMatrixQuestionEvaluation, SurveyMetricQuestionEvaluation, and SurveyTextQuestionEvaluation.
Definition at line 321 of file class.SurveyQuestionEvaluation.php.
References $chart, $data, $legend, ilChartGrid\DATA_BARS, getChartColors(), ilChart\getInstanceByType(), and ilChart\TYPE_GRID.
Referenced by ilSurveyEvaluationGUI\renderDetails().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 293 of file class.SurveyQuestionEvaluation.php.
Referenced by SurveyMatrixQuestionEvaluation\getChart(), SurveyMetricQuestionEvaluation\getChart(), and getChart().
Here is the caller graph for this function:| SurveyQuestionEvaluation::getExportGrid | ( | $a_results | ) |
Get grid data.
| ilSurveyEvaluationResults | array | $a_results |
Reimplemented in SurveyMetricQuestionEvaluation, and SurveyTextQuestionEvaluation.
Definition at line 483 of file class.SurveyQuestionEvaluation.php.
References $lng, $res, and sprintf.
Referenced by ilSurveyEvaluationGUI\exportResultsDetailsExcel().
Here is the caller graph for this function:| SurveyQuestionEvaluation::getGrid | ( | $a_results, | |
$a_abs = true, |
|||
$a_perc = true |
|||
| ) |
Get grid data.
| ilSurveyEvaluationResults | array | $a_results | |
| bool | $a_abs | |
| bool | $a_perc |
Reimplemented in SurveyMatrixQuestionEvaluation, SurveyMetricQuestionEvaluation, and SurveyTextQuestionEvaluation.
Definition at line 228 of file class.SurveyQuestionEvaluation.php.
References $cols, $lng, $res, and sprintf.
Referenced by ilSurveyEvaluationGUI\renderDetails().
Here is the caller graph for this function:
|
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().
Here is the caller graph for this function:| SurveyQuestionEvaluation::getResults | ( | ) |
Get results.
Reimplemented in SurveyMatrixQuestionEvaluation.
Definition at line 56 of file class.SurveyQuestionEvaluation.php.
References $results, getAnswerData(), and parseResults().
Here is the call graph for this function:| SurveyQuestionEvaluation::getSkippedValue | ( | ) |
Get caption for skipped value.
Definition at line 371 of file class.SurveyQuestionEvaluation.php.
References ilObjSurvey\getSurveySkippedValue().
Referenced by SurveyMatrixQuestionEvaluation\addUserSpecificResults(), SurveyMetricQuestionEvaluation\addUserSpecificResults(), SurveyMultipleChoiceQuestionEvaluation\addUserSpecificResults(), SurveySingleChoiceQuestionEvaluation\addUserSpecificResults(), and SurveyTextQuestionEvaluation\addUserSpecificResults().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 382 of file class.SurveyQuestionEvaluation.php.
References $db, $ilDB, and $row.
Referenced by getAnswerData().
Here is the caller graph for this function:| SurveyQuestionEvaluation::getTextAnswers | ( | $a_results | ) |
Get text answers.
| ilSurveyEvaluationResults | array | $a_results |
Reimplemented in SurveyMatrixQuestionEvaluation.
Definition at line 288 of file class.SurveyQuestionEvaluation.php.
Referenced by ilSurveyEvaluationGUI\exportResultsDetailsExcel(), and ilSurveyEvaluationGUI\renderDetails().
Here is the caller graph for this function:| 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 |
Reimplemented in SurveyMatrixQuestionEvaluation, SurveyMultipleChoiceQuestionEvaluation, and SurveySingleChoiceQuestionEvaluation.
Definition at line 522 of file class.SurveyQuestionEvaluation.php.
|
protected |
Parse answer data into results instance.
| ilSurveyEvaluationResults | $a_results | |
| array | $a_answers | |
| SurveyCategories | $a_categories |
Reimplemented in SurveyMetricQuestionEvaluation.
Definition at line 79 of file class.SurveyQuestionEvaluation.php.
References $i, $total, ilSurveyEvaluationResults\addAnswer(), ilSurveyEvaluationResults\addVariable(), getNrOfParticipants(), ilSurveyEvaluationResults\setMedian(), ilSurveyEvaluationResults\setMode(), ilSurveyEvaluationResults\setUsersAnswered(), and ilSurveyEvaluationResults\setUsersSkipped().
Referenced by SurveyMatrixQuestionEvaluation\getResults(), and getResults().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 SurveyMatrixQuestionEvaluation\getChart(), SurveyMetricQuestionEvaluation\getChart(), SurveyMetricQuestionEvaluation\getExportGrid(), getExportGrid(), SurveyMatrixQuestionEvaluation\getGrid(), SurveyMetricQuestionEvaluation\getGrid(), getGrid(), SurveyMatrixQuestionEvaluation\getUserSpecificVariableTitles(), SurveyMultipleChoiceQuestionEvaluation\getUserSpecificVariableTitles(), and SurveySingleChoiceQuestionEvaluation\getUserSpecificVariableTitles().
|
protected |
Definition at line 24 of file class.SurveyQuestionEvaluation.php.
Referenced by SurveyMatrixQuestionEvaluation\exportResults(), and exportResults().