|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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 | |
| $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 |
Reimplemented in SurveyMatrixQuestionEvaluation, SurveyMetricQuestionEvaluation, SurveyMultipleChoiceQuestionEvaluation, SurveySingleChoiceQuestionEvaluation, and SurveyTextQuestionEvaluation.
| SurveyQuestionEvaluation::exportResults | ( | $a_results, | |
| $a_do_title, | |||
| $a_do_label | |||
| ) |
Reimplemented in SurveyMatrixQuestionEvaluation.
Definition at line 477 of file class.SurveyQuestionEvaluation.php.
References $question, $res, and SurveyQuestion\_getQuestionTypeName().
Here is the call graph for this function:
|
protected |
Definition at line 446 of file class.SurveyQuestionEvaluation.php.
References $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 352 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 324 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 520 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 247 of file class.SurveyQuestionEvaluation.php.
References $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 432 of file class.SurveyQuestionEvaluation.php.
References $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 42 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 403 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 414 of file class.SurveyQuestionEvaluation.php.
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 319 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 561 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 65 of file class.SurveyQuestionEvaluation.php.
References $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 172 of file class.SurveyQuestionEvaluation.php.
|
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().