ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilTestScoring. More...
Public Member Functions | |
__construct (ilObjTest $test) | |
setPreserveManualScores ($preserve_manual_scores) | |
getPreserveManualScores () | |
getQuestionId () | |
setQuestionId (int $questionId) | |
recalculateSolutions () | |
recalculatePasses ($userdata, $active_id) | |
recalculatePass ($passdata, $active_id, $pass) | |
resetRecalculatedPassesByActives () | |
getRecalculatedPassesByActives () | |
addRecalculatedPassByActive ($activeId, $pass) | |
removeAllQuestionResults ($questionId) | |
updatePassAndTestResults ($activeIds) | |
getNumManualScorings () | |
Protected Attributes | |
$test | |
$preserve_manual_scores | |
$questionId = 0 | |
Private Attributes | |
$recalculatedPasses | |
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 23 of file class.ilTestScoring.php.
ilTestScoring::__construct | ( | ilObjTest | $test | ) |
ilTestScoring::addRecalculatedPassByActive | ( | $activeId, | |
$pass | |||
) |
Definition at line 185 of file class.ilTestScoring.php.
References $pass.
Referenced by recalculatePasses().
ilTestScoring::getNumManualScorings | ( | ) |
Definition at line 221 of file class.ilTestScoring.php.
References $DIC, $query, $res, $row, $values, getQuestionId(), and test().
ilTestScoring::getPreserveManualScores | ( | ) |
Definition at line 57 of file class.ilTestScoring.php.
References $preserve_manual_scores.
ilTestScoring::getQuestionId | ( | ) |
Definition at line 65 of file class.ilTestScoring.php.
References $questionId.
Referenced by getNumManualScorings(), and recalculatePass().
ilTestScoring::getRecalculatedPassesByActives | ( | ) |
ilTestScoring::recalculatePass | ( | $passdata, | |
$active_id, | |||
$pass | |||
) |
$passdata | |
$active_id | |
$pass |
Definition at line 112 of file class.ilTestScoring.php.
References $pass, assQuestion\_setReachedPoints(), getQuestionId(), assQuestion\setForcePassResultUpdateEnabled(), and test().
Referenced by recalculatePasses().
ilTestScoring::recalculatePasses | ( | $userdata, | |
$active_id | |||
) |
$userdata | |
$active_id |
Definition at line 96 of file class.ilTestScoring.php.
References $pass, addRecalculatedPassByActive(), and recalculatePass().
Referenced by recalculateSolutions().
ilTestScoring::recalculateSolutions | ( | ) |
Definition at line 78 of file class.ilTestScoring.php.
References assQuestion\_updateTestResultCache(), recalculatePasses(), and test().
ilTestScoring::removeAllQuestionResults | ( | $questionId | ) |
ilTestScoring::resetRecalculatedPassesByActives | ( | ) |
Definition at line 175 of file class.ilTestScoring.php.
ilTestScoring::setPreserveManualScores | ( | $preserve_manual_scores | ) |
boolean | $preserve_manual_scores |
Definition at line 49 of file class.ilTestScoring.php.
References $preserve_manual_scores.
ilTestScoring::setQuestionId | ( | int | $questionId | ) |
int | $questionId |
Definition at line 73 of file class.ilTestScoring.php.
References $questionId.
ilTestScoring::updatePassAndTestResults | ( | $activeIds | ) |
Definition at line 202 of file class.ilTestScoring.php.
References $DIC, $pass, $test, assQuestion\_updateTestResultCache(), ilTestPassesSelector\setActiveId(), and test().
|
protected |
Definition at line 29 of file class.ilTestScoring.php.
Referenced by getPreserveManualScores(), and setPreserveManualScores().
|
protected |
Definition at line 36 of file class.ilTestScoring.php.
Referenced by getQuestionId(), removeAllQuestionResults(), and setQuestionId().
|
private |
Definition at line 31 of file class.ilTestScoring.php.
Referenced by getRecalculatedPassesByActives().
|
protected |
Definition at line 26 of file class.ilTestScoring.php.
Referenced by __construct(), and updatePassAndTestResults().