|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
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 |
Referenced by getUserSpecificVariableTitles().
Here is the caller graph for this function:| SurveyQuestionEvaluation::exportResults | ( | $a_results, | |
| bool | $a_do_title, | ||
| bool | $a_do_label | ||
| ) |
| ilSurveyEvaluationResults | array | $a_results |
Definition at line 491 of file class.SurveyQuestionEvaluation.php.
References $res, SurveyQuestion\_getQuestionTypeName(), SurveyQuestion\getQuestiontext(), SurveyQuestion\getQuestionType(), SurveyQuestion\getTitle(), and ILIAS\Repository\int().
Here is the call graph for this function:
|
protected |
Definition at line 458 of file class.SurveyQuestionEvaluation.php.
References $db, $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 |
Definition at line 372 of file class.SurveyQuestionEvaluation.php.
References $data, ilChartGrid\DATA_BARS, getChartColors(), ilChart\getInstanceByType(), and ilChart\TYPE_GRID.
Referenced by ILIAS\Survey\Mode\AbstractUIModifier\getPanelChart().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 347 of file class.SurveyQuestionEvaluation.php.
Referenced by SurveyMetricQuestionEvaluation\getChart(), SurveyMatrixQuestionEvaluation\getChart(), and getChart().
Here is the caller graph for this function:| SurveyQuestionEvaluation::getExportGrid | ( | $a_results | ) |
Get grid data.
| ilSurveyEvaluationResults | array | $a_results |
Definition at line 533 of file class.SurveyQuestionEvaluation.php.
References $lng, $res, and ilLanguage\txt().
Referenced by ilSurveyEvaluationGUI\exportResultsDetailsExcel().
Here is the call graph for this function:
Here is the caller graph for this function:| SurveyQuestionEvaluation::getGrid | ( | $a_results, | |
| bool | $a_abs = true, |
||
| bool | $a_perc = true |
||
| ) |
Get grid data.
| ilSurveyEvaluationResults | array | $a_results |
Definition at line 280 of file class.SurveyQuestionEvaluation.php.
References $lng, $res, and ilLanguage\txt().
Referenced by ILIAS\Survey\Mode\AbstractUIModifier\getPanelTable().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Returns the number of participants for a survey.
Definition at line 445 of file class.SurveyQuestionEvaluation.php.
Referenced by parseResults().
Here is the caller graph for this function:| SurveyQuestionEvaluation::getResults | ( | ) |
Get results.
Definition at line 55 of file class.SurveyQuestionEvaluation.php.
References $results, getAnswerData(), and parseResults().
Referenced by ILIAS\Survey\Mode\AbstractUIModifier\getDetailPanels(), ILIAS\Survey\Mode\AbstractUIModifier\getPanelChart(), ILIAS\Survey\Mode\AbstractUIModifier\getPanelTable(), ILIAS\Survey\Mode\IndividualFeedback\UIModifier\getPanelText(), and ILIAS\Survey\Mode\AbstractUIModifier\getPanelText().
Here is the call graph for this function:
Here is the caller graph for this function:| SurveyQuestionEvaluation::getSkippedValue | ( | ) |
Get caption for skipped value.
Definition at line 419 of file class.SurveyQuestionEvaluation.php.
References ilObjSurvey\getSurveySkippedValue().
Referenced by SurveyMultipleChoiceQuestionEvaluation\addUserSpecificResults(), SurveySingleChoiceQuestionEvaluation\addUserSpecificResults(), SurveyTextQuestionEvaluation\addUserSpecificResults(), SurveyMetricQuestionEvaluation\addUserSpecificResults(), and SurveyMatrixQuestionEvaluation\addUserSpecificResults().
Here is the call graph for this function:
Here is the caller 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, $res, ILIAS\Repository\int(), isSumScoreValid(), and supportsSumScore().
Here is the call graph for this function:
|
protected |
Definition at line 429 of file class.SurveyQuestionEvaluation.php.
| SurveyQuestionEvaluation::getTextAnswers | ( | $a_results | ) |
Get text answers.
| ilSurveyEvaluationResults | array | $a_results |
Definition at line 342 of file class.SurveyQuestionEvaluation.php.
Referenced by ilSurveyEvaluationGUI\exportResultsDetailsExcel(), and ILIAS\Survey\Mode\AbstractUIModifier\getPanelText().
Here is the caller 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 |
Definition at line 571 of file class.SurveyQuestionEvaluation.php.
References addUserSpecificResults().
Here is the call graph for this function:
|
protected |
Is sum score ok (question needs to be fully answered)
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.
Definition at line 124 of file class.SurveyQuestionEvaluation.php.
References $c, 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, | |
| int | $a_user_id | ||
| ) |
| $a_qres | ilSurveyEvaluationResults|array |
Definition at line 226 of file class.SurveyQuestionEvaluation.php.
References ILIAS\Repository\int().
Here is the call graph for this function:
|
protected |
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 getAnswerData(), getNrOfParticipants(), getSumScores(), and getSurveyId().
|
protected |
Definition at line 29 of file class.SurveyQuestionEvaluation.php.
|
protected |
Definition at line 26 of file class.SurveyQuestionEvaluation.php.
Referenced by SurveyMetricQuestionEvaluation\getChart(), SurveyMetricQuestionEvaluation\getExportGrid(), getExportGrid(), SurveyMetricQuestionEvaluation\getGrid(), getGrid(), SurveySingleChoiceQuestionEvaluation\getUserSpecificVariableTitles(), SurveyMultipleChoiceQuestionEvaluation\getUserSpecificVariableTitles(), and SurveyMatrixQuestionEvaluation\getUserSpecificVariableTitles().
|
protected |
Definition at line 28 of file class.SurveyQuestionEvaluation.php.
Referenced by SurveyMatrixQuestionEvaluation\exportResults().