|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Class ilTestScoring. More...
Collaboration diagram for ilTestScoring:Public Member Functions | |
| __construct (private ilObjTest $test, private ilDBInterface $db) | |
| setPreserveManualScores (bool $preserve_manual_scores) | |
| getPreserveManualScores () | |
| getQuestionId () | |
| setQuestionId (int $question_id) | |
| recalculateSolutions () | |
| recalculateSolution (int $active_id, int $pass) | |
| recalculatePasses (ilTestEvaluationUserData $userdata, int $active_id) | |
| recalculatePass (ilTestEvaluationPassData $passdata, int $active_id, int $pass) | |
| recalculateQuestionScore (int $q_id, int $active_id, int $pass, array $questiondata) | |
| updateReachedPoints (int $active_id, int $question_id, float $old_points, float $points, float $max_points, int $pass) | |
| This is an optimized version of ::_setReachedPoints that only executes updates in the database if necessary. More... | |
| resetRecalculatedPassesByActives () | |
| getRecalculatedPassesByActives () | |
| addRecalculatedPassByActive (int $active_id, int $pass) | |
| removeAllQuestionResults ($question_id) | |
| updatePassAndTestResults (array $active_ids) | |
| getNumManualScorings () | |
Protected Attributes | |
| ilLanguage | $lng |
| array | $question_cache = [] |
| array | $participants = [] |
| string | $initiator_name |
| int | $initiator_id |
Private Attributes | |
| bool | $preserve_manual_scores = false |
| array | $recalculated_passes = [] |
| int | $question_id = 0 |
Class ilTestScoring.
This class holds a mechanism to get the scoring for
Warning: Please use carefully, this is one of the classes that may cause funny spikes on your servers load graph on large datasets in the test.
Definition at line 40 of file class.ilTestScoring.php.
| ilTestScoring::__construct | ( | private ilObjTest | $test, |
| private ilDBInterface | $db | ||
| ) |
Definition at line 61 of file class.ilTestScoring.php.
References $DIC, and ILIAS\Repository\lng().
Here is the call graph for this function:| ilTestScoring::addRecalculatedPassByActive | ( | int | $active_id, |
| int | $pass | ||
| ) |
Definition at line 272 of file class.ilTestScoring.php.
Referenced by recalculatePasses().
Here is the caller graph for this function:| ilTestScoring::getNumManualScorings | ( | ) |
Definition at line 307 of file class.ilTestScoring.php.
References $res, and getQuestionId().
Here is the call graph for this function:| ilTestScoring::getPreserveManualScores | ( | ) |
Definition at line 76 of file class.ilTestScoring.php.
References $preserve_manual_scores.
| ilTestScoring::getQuestionId | ( | ) |
Definition at line 81 of file class.ilTestScoring.php.
References $question_id.
Referenced by getNumManualScorings(), and recalculatePass().
Here is the caller graph for this function:| ilTestScoring::getRecalculatedPassesByActives | ( | ) |
| ilTestScoring::recalculatePass | ( | ilTestEvaluationPassData | $passdata, |
| int | $active_id, | ||
| int | $pass | ||
| ) |
Definition at line 136 of file class.ilTestScoring.php.
References ilTestEvaluationPassData\getAnsweredQuestions(), getQuestionId(), and recalculateQuestionScore().
Referenced by recalculatePasses(), and recalculateSolution().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestScoring::recalculatePasses | ( | ilTestEvaluationUserData | $userdata, |
| int | $active_id | ||
| ) |
Definition at line 124 of file class.ilTestScoring.php.
References addRecalculatedPassByActive(), ilTestEvaluationUserData\getPasses(), and recalculatePass().
Referenced by recalculateSolutions().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestScoring::recalculateQuestionScore | ( | int | $q_id, |
| int | $active_id, | ||
| int | $pass, | ||
| array | $questiondata | ||
| ) |
Definition at line 149 of file class.ilTestScoring.php.
References updateReachedPoints().
Referenced by recalculatePass().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestScoring::recalculateSolution | ( | int | $active_id, |
| int | $pass | ||
| ) |
Definition at line 112 of file class.ilTestScoring.php.
References recalculatePass().
Here is the call graph for this function:| ilTestScoring::recalculateSolutions | ( | ) |
Definition at line 94 of file class.ilTestScoring.php.
References $participants, ilLPStatusWrapper\_updateStatus(), and recalculatePasses().
Here is the call graph for this function:| ilTestScoring::removeAllQuestionResults | ( | $question_id | ) |
Definition at line 283 of file class.ilTestScoring.php.
| ilTestScoring::resetRecalculatedPassesByActives | ( | ) |
Definition at line 262 of file class.ilTestScoring.php.
| ilTestScoring::setPreserveManualScores | ( | bool | $preserve_manual_scores | ) |
Definition at line 71 of file class.ilTestScoring.php.
References $preserve_manual_scores.
| ilTestScoring::setQuestionId | ( | int | $question_id | ) |
| ilTestScoring::updatePassAndTestResults | ( | array | $active_ids | ) |
| ilTestScoring::updateReachedPoints | ( | int | $active_id, |
| int | $question_id, | ||
| float | $old_points, | ||
| float | $points, | ||
| float | $max_points, | ||
| int | $pass | ||
| ) |
This is an optimized version of ::_setReachedPoints that only executes updates in the database if necessary.
In addition, unlike the original, this method does NOT update the test cache, so this must also be called afterward.
Definition at line 184 of file class.ilTestScoring.php.
References $data, $question_id, ilObjAssessmentFolder\_addLog(), ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), ilObjTest\_getQuestionCountAndPointsForPassOfParticipant(), ilObjTest\_getUserIdFromActiveId(), ilCourseObjectiveResult\_updateObjectiveResult(), and ILIAS\Repository\lng().
Referenced by recalculateQuestionScore().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 59 of file class.ilTestScoring.php.
|
protected |
Definition at line 58 of file class.ilTestScoring.php.
|
protected |
Definition at line 46 of file class.ilTestScoring.php.
|
protected |
Definition at line 56 of file class.ilTestScoring.php.
Referenced by recalculateSolutions().
|
private |
Definition at line 42 of file class.ilTestScoring.php.
Referenced by getPreserveManualScores(), and setPreserveManualScores().
|
protected |
Definition at line 51 of file class.ilTestScoring.php.
|
private |
Definition at line 44 of file class.ilTestScoring.php.
Referenced by getQuestionId(), setQuestionId(), and updateReachedPoints().
|
private |
Definition at line 43 of file class.ilTestScoring.php.
Referenced by getRecalculatedPassesByActives().