ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
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().
|
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().
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.
|
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().
Get grid data.
ilSurveyEvaluationResults | array | $a_results |
Reimplemented in SurveyMatrixQuestionEvaluation, SurveyMetricQuestionEvaluation, and SurveyTextQuestionEvaluation.
Definition at line 280 of file class.SurveyQuestionEvaluation.php.
References $lng.
|
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().
SurveyQuestionEvaluation::getSkippedValue | ( | ) |
Get caption for skipped value.
Definition at line 419 of file class.SurveyQuestionEvaluation.php.
References ilObjSurvey\getSurveySkippedValue().
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, getSurveyId(), ILIAS\Repository\int(), isSumScoreValid(), and supportsSumScore().
|
protected |
Definition at line 429 of file class.SurveyQuestionEvaluation.php.
References $ilDB.
Referenced by getSumScores().
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().
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().
|
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().
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().
|
protected |
Reimplemented in SurveyMatrixQuestionEvaluation, SurveyMultipleChoiceQuestionEvaluation, and SurveySingleChoiceQuestionEvaluation.
Definition at line 116 of file class.SurveyQuestionEvaluation.php.
Referenced by getSumScores().
|
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.