ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Test session handler. More...
Data Fields | |
const | ACCESS_CODE_SESSION_INDEX = "tst_access_code" |
const | ACCESS_CODE_CHAR_DOMAIN = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" |
const | ACCESS_CODE_LENGTH = 5 |
$active_id | |
$user_id | |
$anonymous_id | |
$test_id | |
$lastsequence | |
$submitted | |
$tstamp | |
$submittedTimestamp | |
Protected Member Functions | |
activeIDExists ($user_id, $test_id) | |
Protected Attributes | |
$lastPresentationMode | |
Private Member Functions | |
buildAccessCode () | |
Private Attributes | |
$lastFinishedPass | |
$lastStartedPass | |
$objectiveOrientedContainerId | |
$reportableResultsAvailable = null | |
Test session handler.
This class manages the test session for a participant
Definition at line 13 of file class.ilTestSession.php.
ilTestSession::__construct | ( | ) |
ilTestSession constructor
The constructor takes possible arguments an creates an instance of the ilTestSession object.
public
Definition at line 96 of file class.ilTestSession.php.
|
protected |
Definition at line 135 of file class.ilTestSession.php.
References $DIC, $GLOBALS, $ilDB, $result, $row, $test_id, $user_id, setLastFinishedPass(), setLastStartedPass(), and setObjectiveOrientedContainerId().
Referenced by ilTestSessionDynamicQuestionSet\saveToDb(), and saveToDb().
|
private |
Definition at line 560 of file class.ilTestSession.php.
References $code, $i, and $index.
Referenced by createNewAccessCode().
ilTestSession::createNewAccessCode | ( | ) |
Definition at line 535 of file class.ilTestSession.php.
References $code, buildAccessCode(), and isAccessCodeUsed().
ilTestSession::doesAccessCodeInSessionExists | ( | ) |
Definition at line 526 of file class.ilTestSession.php.
References $_SESSION, and getTestId().
Referenced by ilTestPlayerAbstractGUI\ensureExistingTestSession(), ilTestSessionDynamicQuestionSet\loadTestSession(), and loadTestSession().
ilTestSession::getAccessCodeFromSession | ( | ) |
Definition at line 513 of file class.ilTestSession.php.
References $_SESSION, and getTestId().
Referenced by ilTestPlayerAbstractGUI\ensureExistingTestSession(), ilTestSessionDynamicQuestionSet\loadTestSession(), and loadTestSession().
ilTestSession::getActiveId | ( | ) |
Definition at line 348 of file class.ilTestSession.php.
References $active_id.
Referenced by ilTestService\buildVirtualSequence(), ilObjTest\canShowTestResults(), ilTestPlayerAbstractGUI\ensureExistingTestSession(), ilTestServiceGUI\getPassOverviewTableData(), ilTestPlayerAbstractGUI\handleSkillTriggering(), ilObjTest\hasAnyTestResult(), hasSinglePassReportable(), increaseTestPass(), lookupTestStartLock(), persistTestStartLock(), reportableResultsAvailable(), ilTestSessionDynamicQuestionSet\saveToDb(), saveToDb(), ilTestRandomQuestionSetBuilder\storeQuestion(), and ilLOTestQuestionAdapter\updateQuestionResult().
ilTestSession::getAnonymousId | ( | ) |
Definition at line 378 of file class.ilTestSession.php.
References $anonymous_id.
Referenced by ilTestSessionDynamicQuestionSet\saveToDb(), and saveToDb().
ilTestSession::getLastFinishedPass | ( | ) |
Definition at line 433 of file class.ilTestSession.php.
References $lastFinishedPass.
Referenced by ilObjTest\canShowTestResults(), ilObjTest\hasAnyTestResult(), hasSinglePassReportable(), increaseTestPass(), and saveToDb().
ilTestSession::getLastSequence | ( | ) |
Definition at line 388 of file class.ilTestSession.php.
References $lastsequence.
Referenced by ilTestSessionDynamicQuestionSet\getCurrentQuestionId(), ilTestSequence\hasStarted(), increaseTestPass(), ilTestSessionDynamicQuestionSet\saveToDb(), and saveToDb().
ilTestSession::getLastStartedPass | ( | ) |
Definition at line 451 of file class.ilTestSession.php.
References $lastStartedPass.
Referenced by increaseTestPass().
ilTestSession::getObjectiveOrientedContainerId | ( | ) |
Definition at line 443 of file class.ilTestSession.php.
References $objectiveOrientedContainerId.
Referenced by ilLOTestQuestionAdapter\getInstance(), increaseTestPass(), isObjectiveOriented(), ilLOTestQuestionAdapter\notifyTestStart(), and saveToDb().
ilTestSession::getPass | ( | ) |
Definition at line 398 of file class.ilTestSession.php.
References $pass.
Referenced by ilTestPlayerAbstractGUI\handleSkillTriggering(), increaseTestPass(), ilTestSessionDynamicQuestionSet\saveToDb(), saveToDb(), ilTestRandomQuestionSetBuilder\storeQuestion(), and ilLOTestQuestionAdapter\updateQuestionResult().
ilTestSession::getRefId | ( | ) |
Get Ref id.
Definition at line 130 of file class.ilTestSession.php.
Referenced by ilLOTestQuestionAdapter\getInstance(), ilLOTestQuestionAdapter\initTestRun(), ilLOTestQuestionAdapter\initUserResult(), ilLOTestQuestionAdapter\isQualifiedStartRun(), ilLOTestQuestionAdapter\notifyTestStart(), ilTestSessionDynamicQuestionSet\saveToDb(), ilLOTestQuestionAdapter\updateFixedQuestions(), ilLOTestQuestionAdapter\updateQuestionResult(), ilLOTestQuestionAdapter\updateQuestions(), and ilLOTestQuestionAdapter\updateRandomQuestions().
ilTestSession::getSubmittedTimestamp | ( | ) |
Definition at line 418 of file class.ilTestSession.php.
References $submittedTimestamp.
Referenced by increaseTestPass(), ilTestSessionDynamicQuestionSet\saveToDb(), and saveToDb().
ilTestSession::getTestId | ( | ) |
Definition at line 368 of file class.ilTestSession.php.
References $test_id.
Referenced by doesAccessCodeInSessionExists(), getAccessCodeFromSession(), isAccessCodeUsed(), ilTestSessionDynamicQuestionSet\saveToDb(), saveToDb(), setAccessCodeToSession(), and unsetAccessCodeInSession().
ilTestSession::getUserId | ( | ) |
Definition at line 358 of file class.ilTestSession.php.
References $user_id.
Referenced by ilTestPlayerAbstractGUI\checkTestSessionUser(), ilLOTestQuestionAdapter\getInstance(), ilTestPlayerAbstractGUI\handleSkillTriggering(), isAnonymousUser(), ilLOTestQuestionAdapter\notifyTestStart(), ilTestSessionDynamicQuestionSet\saveToDb(), and saveToDb().
ilTestSession::hasSinglePassReportable | ( | ilObjTest | $testObj | ) |
Definition at line 611 of file class.ilTestSession.php.
References $DIC, getActiveId(), getLastFinishedPass(), and ilTestPassesSelector\setActiveId().
ilTestSession::increasePass | ( | ) |
Definition at line 403 of file class.ilTestSession.php.
Referenced by increaseTestPass().
ilTestSession::increaseTestPass | ( | ) |
Definition at line 168 of file class.ilTestSession.php.
References $_SESSION, $active_id, $DIC, $ilDB, $ilLog, $submitted, getActiveId(), getLastFinishedPass(), getLastSequence(), getLastStartedPass(), getObjectiveOrientedContainerId(), getPass(), getSubmittedTimestamp(), increasePass(), isSubmitted(), and setLastSequence().
ilTestSession::isAccessCodeUsed | ( | $code | ) |
Definition at line 544 of file class.ilTestSession.php.
References $code, $DIC, $ilDB, $query, $result, and getTestId().
Referenced by createNewAccessCode().
ilTestSession::isAnonymousUser | ( | ) |
Definition at line 577 of file class.ilTestSession.php.
References getUserId().
Referenced by ilTestPlayerAbstractGUI\ensureExistingTestSession().
ilTestSession::isObjectiveOriented | ( | ) |
Definition at line 464 of file class.ilTestSession.php.
References getObjectiveOrientedContainerId().
ilTestSession::isSubmitted | ( | ) |
Definition at line 408 of file class.ilTestSession.php.
References $submitted.
Referenced by increaseTestPass(), ilTestSessionDynamicQuestionSet\saveToDb(), and saveToDb().
ilTestSession::loadFromDb | ( | $active_id | ) |
Loads the session data for a given active id.
integer | $active_id | The database id of the test session |
Definition at line 321 of file class.ilTestSession.php.
References $active_id, $DIC, $ilDB, $result, $row, setLastFinishedPass(), setLastStartedPass(), and setObjectiveOrientedContainerId().
ilTestSession::loadTestSession | ( | $test_id, | |
$user_id = "" , |
|||
$anonymous_id = "" |
|||
) |
Definition at line 261 of file class.ilTestSession.php.
References $anonymous_id, $DIC, $GLOBALS, $ilDB, $ilUser, $result, $row, $test_id, $user_id, doesAccessCodeInSessionExists(), getAccessCodeFromSession(), setLastFinishedPass(), setLastStartedPass(), setObjectiveOrientedContainerId(), and unsetAccessCodeInSession().
ilTestSession::lookupTestStartLock | ( | ) |
Definition at line 481 of file class.ilTestSession.php.
References $DIC, $ilDB, $res, $row, and getActiveId().
ilTestSession::persistTestStartLock | ( | $testStartLock | ) |
Definition at line 469 of file class.ilTestSession.php.
References $DIC, $ilDB, and getActiveId().
ilTestSession::reportableResultsAvailable | ( | ilObjTest | $testOBJ | ) |
ilObjTest | $testOBJ |
Definition at line 591 of file class.ilTestSession.php.
References $reportableResultsAvailable, ilObjTest\canShowTestResults(), and getActiveId().
ilTestSession::saveToDb | ( | ) |
Definition at line 210 of file class.ilTestSession.php.
References $anonymous_id, $DIC, $ilDB, $ilLog, $submitted, activeIDExists(), getActiveId(), getAnonymousId(), getLastFinishedPass(), getLastSequence(), getObjectiveOrientedContainerId(), getPass(), getSubmittedTimestamp(), getTestId(), getUserId(), and isSubmitted().
Referenced by ilTestPlayerAbstractGUI\ensureExistingTestSession().
ilTestSession::setAccessCodeToSession | ( | $access_code | ) |
Definition at line 499 of file class.ilTestSession.php.
References $_SESSION, and getTestId().
ilTestSession::setAnonymousId | ( | $anonymous_id | ) |
Definition at line 373 of file class.ilTestSession.php.
References $anonymous_id.
Referenced by ilTestPlayerAbstractGUI\ensureExistingTestSession().
ilTestSession::setLastFinishedPass | ( | $lastFinishedPass | ) |
Definition at line 428 of file class.ilTestSession.php.
References $lastFinishedPass.
Referenced by activeIDExists(), loadFromDb(), and loadTestSession().
ilTestSession::setLastSequence | ( | $lastsequence | ) |
Definition at line 383 of file class.ilTestSession.php.
References $lastsequence.
Referenced by increaseTestPass(), and ilTestSessionDynamicQuestionSet\setCurrentQuestionId().
ilTestSession::setLastStartedPass | ( | $lastStartedPass | ) |
int | $lastStartedPass |
Definition at line 459 of file class.ilTestSession.php.
References $lastStartedPass.
Referenced by activeIDExists(), loadFromDb(), and loadTestSession().
ilTestSession::setObjectiveOrientedContainerId | ( | $objectiveOriented | ) |
Definition at line 438 of file class.ilTestSession.php.
Referenced by activeIDExists(), loadFromDb(), and loadTestSession().
ilTestSession::setPass | ( | $pass | ) |
Definition at line 393 of file class.ilTestSession.php.
References $pass.
ilTestSession::setRefId | ( | $a_val | ) |
ilTestSession::setSubmitted | ( | ) |
Definition at line 413 of file class.ilTestSession.php.
ilTestSession::setSubmittedTimestamp | ( | ) |
Definition at line 423 of file class.ilTestSession.php.
ilTestSession::setTestId | ( | $test_id | ) |
ilTestSession::setUserId | ( | $user_id | ) |
Definition at line 353 of file class.ilTestSession.php.
References $user_id.
Referenced by ilTestPlayerAbstractGUI\ensureExistingTestSession().
ilTestSession::unsetAccessCodeInSession | ( | ) |
Definition at line 508 of file class.ilTestSession.php.
References $_SESSION, and getTestId().
Referenced by ilTestSessionDynamicQuestionSet\loadTestSession(), and loadTestSession().
ilTestSession::$active_id |
Definition at line 26 of file class.ilTestSession.php.
Referenced by getActiveId(), increaseTestPass(), ilTestSessionDynamicQuestionSet\loadFromDb(), and loadFromDb().
ilTestSession::$anonymous_id |
Definition at line 40 of file class.ilTestSession.php.
Referenced by getAnonymousId(), ilTestSessionDynamicQuestionSet\loadTestSession(), loadTestSession(), ilTestSessionDynamicQuestionSet\saveToDb(), saveToDb(), and setAnonymousId().
|
private |
Definition at line 82 of file class.ilTestSession.php.
Referenced by getLastFinishedPass(), and setLastFinishedPass().
|
protected |
Definition at line 59 of file class.ilTestSession.php.
ilTestSession::$lastsequence |
Definition at line 54 of file class.ilTestSession.php.
Referenced by getLastSequence(), and setLastSequence().
|
private |
Definition at line 84 of file class.ilTestSession.php.
Referenced by getLastStartedPass(), and setLastStartedPass().
|
private |
Definition at line 86 of file class.ilTestSession.php.
Referenced by getObjectiveOrientedContainerId().
|
private |
Definition at line 585 of file class.ilTestSession.php.
Referenced by reportableResultsAvailable().
ilTestSession::$submitted |
Definition at line 66 of file class.ilTestSession.php.
Referenced by increaseTestPass(), isSubmitted(), ilTestSessionDynamicQuestionSet\saveToDb(), and saveToDb().
ilTestSession::$submittedTimestamp |
Definition at line 80 of file class.ilTestSession.php.
Referenced by getSubmittedTimestamp().
ilTestSession::$test_id |
Definition at line 47 of file class.ilTestSession.php.
Referenced by activeIDExists(), getTestId(), ilTestSessionDynamicQuestionSet\loadTestSession(), loadTestSession(), and setTestId().
ilTestSession::$tstamp |
Definition at line 73 of file class.ilTestSession.php.
ilTestSession::$user_id |
Definition at line 33 of file class.ilTestSession.php.
Referenced by activeIDExists(), getUserId(), ilTestSessionDynamicQuestionSet\loadTestSession(), loadTestSession(), and setUserId().
const ilTestSession::ACCESS_CODE_CHAR_DOMAIN = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" |
Definition at line 17 of file class.ilTestSession.php.
const ilTestSession::ACCESS_CODE_LENGTH = 5 |
Definition at line 19 of file class.ilTestSession.php.
const ilTestSession::ACCESS_CODE_SESSION_INDEX = "tst_access_code" |
Definition at line 15 of file class.ilTestSession.php.