ILIAS
trunk Revision v11.0_alpha-1866-gfa368f7776e
|
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 |
Referenced by getUserSpecificVariableTitles().
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().
|
protected |
Definition at line 458 of file class.SurveyQuestionEvaluation.php.
References $db, $ilDB, $res, and ILIAS\Repository\int().
Referenced by SurveyMatrixQuestionEvaluation\getResults(), and getResults().
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().
|
protected |
Definition at line 347 of file class.SurveyQuestionEvaluation.php.
Referenced by SurveyMetricQuestionEvaluation\getChart(), SurveyMatrixQuestionEvaluation\getChart(), and getChart().
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().
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().
|
protected |
Returns the number of participants for a survey.
Definition at line 445 of file class.SurveyQuestionEvaluation.php.
Referenced by parseResults().
SurveyQuestionEvaluation::getResults | ( | ) |
Get results.
Definition at line 55 of file class.SurveyQuestionEvaluation.php.
References $results, getAnswerData(), null, 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().
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().
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(), null, and supportsSumScore().
|
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().
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().
|
protected |
Is sum score ok (question needs to be fully answered)
Definition at line 111 of file class.SurveyQuestionEvaluation.php.
Referenced by getSumScores().
|
protected |
Parse answer data into results instance.
Definition at line 124 of file class.SurveyQuestionEvaluation.php.
References $c, ilSurveyEvaluationResults\addAnswer(), ilSurveyEvaluationResults\addVariable(), getNrOfParticipants(), null, ilSurveyEvaluationResults\setMedian(), ilSurveyEvaluationResults\setMode(), ilSurveyEvaluationResults\setUsersAnswered(), and ilSurveyEvaluationResults\setUsersSkipped().
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 |
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 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().