|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Inheritance diagram for SurveyQuestionEvaluation:
Collaboration diagram for SurveyQuestionEvaluation:Public Member Functions | |
| __construct (SurveyQuestion $a_question, array $a_finished_ids=[]) | |
| getResults () | |
| Get results. More... | |
| getSumScores () | |
| Get sum score for this question for all active ids of run. More... | |
| parseUserSpecificResults ($a_qres, int $a_user_id) | |
| getGrid ( $a_results, bool $a_abs=true, bool $a_perc=true) | |
| Get grid data. More... | |
| getTextAnswers ($a_results) | |
| Get text answers. More... | |
| getChart ($a_results) | |
| getSkippedValue () | |
| Get caption for skipped value. More... | |
| exportResults ( $a_results, bool $a_do_title, bool $a_do_label) | |
| getExportGrid ($a_results) | |
| Get grid data. More... | |
| getUserSpecificVariableTitles (array &$a_title_row, array &$a_title_row2, bool $a_do_title, bool $a_do_label) | |
| Get title columns for user-specific export. More... | |
| addUserSpecificResults (array &$a_row, int $a_user_id, $a_results) | |
Protected Member Functions | |
| isSumScoreValid (int $nr_answer_records) | |
| Is sum score ok (question needs to be fully answered) More... | |
| supportsSumScore () | |
| 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 | |
| ilLanguage | $lng |
| ilDBInterface | $db |
| SurveyQuestion | $question |
| array | $finished_ids |
| int | $chart_width = 400 |
| int | $chart_height = 300 |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Survey question evaluation
Definition at line 24 of file class.SurveyQuestionEvaluation.php.
| SurveyQuestionEvaluation::__construct | ( | SurveyQuestion | $a_question, |
| array | $a_finished_ids = [] |
||
| ) |
Definition at line 33 of file class.SurveyQuestionEvaluation.php.
References $DIC, and ILIAS\Repository\lng().
Here is the call graph for this function:
|
abstract |
| array | $a_row | (called by reference) |
| int | $a_user_id | |
| ilSurveyEvaluationResults | array | $a_results |
Reimplemented in SurveyMatrixQuestionEvaluation, SurveyMetricQuestionEvaluation, SurveyMultipleChoiceQuestionEvaluation, SurveySingleChoiceQuestionEvaluation, and SurveyTextQuestionEvaluation.
| SurveyQuestionEvaluation::exportResults | ( | $a_results, | |
| bool | $a_do_title, | ||
| bool | $a_do_label | ||
| ) |
| ilSurveyEvaluationResults | array | $a_results |
Reimplemented in SurveyMatrixQuestionEvaluation.
Definition at line 491 of file class.SurveyQuestionEvaluation.php.
|
protected |
Definition at line 458 of file class.SurveyQuestionEvaluation.php.
References $ilDB, $res, and ILIAS\Repository\int().
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 | ) |
| ilSurveyEvaluationResults | array | $a_results |
Reimplemented in SurveyMatrixQuestionEvaluation, SurveyMetricQuestionEvaluation, and SurveyTextQuestionEvaluation.
Definition at line 372 of file class.SurveyQuestionEvaluation.php.
References $data, ilChartGrid\DATA_BARS, ilChart\getInstanceByType(), ilSurveyEvaluationResults\getQuestion(), ilSurveyEvaluationResults\getVariables(), and ilChart\TYPE_GRID.
Here is the call graph for this function:
|
protected |
Definition at line 347 of file class.SurveyQuestionEvaluation.php.
| SurveyQuestionEvaluation::getExportGrid | ( | $a_results | ) |
Get grid data.
| ilSurveyEvaluationResults | array | $a_results |
Reimplemented in SurveyMetricQuestionEvaluation, and SurveyTextQuestionEvaluation.
Definition at line 533 of file class.SurveyQuestionEvaluation.php.
References $lng, $res, and ilSurveyEvaluationResults\getVariables().
Here is the call graph for this function:Get grid data.
| ilSurveyEvaluationResults | array | $a_results |
Reimplemented in SurveyMatrixQuestionEvaluation, SurveyMetricQuestionEvaluation, and SurveyTextQuestionEvaluation.
Definition at line 280 of file class.SurveyQuestionEvaluation.php.
|
protected |
Returns the number of participants for a survey.
Definition at line 445 of file class.SurveyQuestionEvaluation.php.
References $ilDB.
| SurveyQuestionEvaluation::getResults | ( | ) |
Get results.
Reimplemented in SurveyMatrixQuestionEvaluation.
Definition at line 55 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 419 of file class.SurveyQuestionEvaluation.php.
References ilObjSurvey\getSurveySkippedValue().
Here is the call graph for this function:| SurveyQuestionEvaluation::getSumScores | ( | ) |
Get sum score for this question for all active ids of run.
Definition at line 75 of file class.SurveyQuestionEvaluation.php.
References $db, $ilDB, ILIAS\LTI\ToolProvider\$key, $res, getSurveyId(), ILIAS\Repository\int(), isSumScoreValid(), and supportsSumScore().
Here is the call graph for this function:
|
protected |
Definition at line 429 of file class.SurveyQuestionEvaluation.php.
References $ilDB.
Referenced by getSumScores().
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 342 of file class.SurveyQuestionEvaluation.php.
References ilSurveyEvaluationResults\getMappedTextAnswers().
Here is the call graph for this function:| SurveyQuestionEvaluation::getUserSpecificVariableTitles | ( | array & | $a_title_row, |
| array & | $a_title_row2, | ||
| bool | $a_do_title, | ||
| bool | $a_do_label | ||
| ) |
Get title columns for user-specific export.
| array | $a_title_row | (called by reference) |
| array | $a_title_row2 | (called by reference) |
| bool | $a_do_title | |
| bool | $a_do_label |
Reimplemented in SurveyMatrixQuestionEvaluation, SurveyMultipleChoiceQuestionEvaluation, and SurveySingleChoiceQuestionEvaluation.
Definition at line 571 of file class.SurveyQuestionEvaluation.php.
|
protected |
Is sum score ok (question needs to be fully answered)
Reimplemented in SurveyMatrixQuestionEvaluation.
Definition at line 111 of file class.SurveyQuestionEvaluation.php.
Referenced by getSumScores().
Here is the caller graph for this function:
|
protected |
Parse answer data into results instance.
Reimplemented in SurveyMetricQuestionEvaluation.
Definition at line 124 of file class.SurveyQuestionEvaluation.php.
Referenced by SurveyMatrixQuestionEvaluation\getResults(), and getResults().
Here is the caller graph for this function:| SurveyQuestionEvaluation::parseUserSpecificResults | ( | $a_qres, | |
| int | $a_user_id | ||
| ) |
| $a_qres | ilSurveyEvaluationResults|array |
Definition at line 226 of file class.SurveyQuestionEvaluation.php.
|
protected |
Reimplemented in SurveyMatrixQuestionEvaluation, SurveyMultipleChoiceQuestionEvaluation, and SurveySingleChoiceQuestionEvaluation.
Definition at line 116 of file class.SurveyQuestionEvaluation.php.
Referenced by getSumScores().
Here is the caller graph for this function:
|
protected |
Definition at line 31 of file class.SurveyQuestionEvaluation.php.
|
protected |
Definition at line 30 of file class.SurveyQuestionEvaluation.php.
|
protected |
Definition at line 27 of file class.SurveyQuestionEvaluation.php.
Referenced by getSumScores().
|
protected |
Definition at line 29 of file class.SurveyQuestionEvaluation.php.
|
protected |
Definition at line 26 of file class.SurveyQuestionEvaluation.php.
Referenced by SurveyMultipleChoiceQuestionEvaluation\getUserSpecificVariableTitles(), and SurveySingleChoiceQuestionEvaluation\getUserSpecificVariableTitles().
|
protected |
Definition at line 28 of file class.SurveyQuestionEvaluation.php.