ILIAS
trunk Revision v11.0_alpha-1861-g09f3d197f78
|
Data Fields | |
const | ACCESS_CODE_SESSION_INDEX = "tst_access_code" |
const | ACCESS_CODE_CHAR_DOMAIN = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" |
const | ACCESS_CODE_LENGTH = 5 |
int | $active_id = 0 |
int | $user_id = 0 |
string | $anonymous_id = '' |
int | $test_id = 0 |
int | $lastsequence = 0 |
bool | $submitted = false |
int | $tstamp = 0 |
string | $submittedTimestamp = '' |
Protected Member Functions | |
activeIDExists (int $user_id, int $test_id) | |
Protected Attributes | |
string | $lastPresentationMode = null |
Private Member Functions | |
buildAccessCode () | |
Private Attributes | |
int | $ref_id = 0 |
int | $pass = 0 |
int | $objectiveOrientedContainerId = null |
int | $lastFinishedPass = null |
int | $lastStartedPass = null |
bool | $reportable_results_available = null |
Test session handler.
This class manages the test session for a participant
Definition at line 30 of file class.ilTestSession.php.
ilTestSession::__construct | ( | protected ilDBInterface | $db, |
protected ilObjUser | $user | ||
) |
ilTestSession constructor
The constructor takes possible arguments an creates an instance of the ilTestSession object.
public
Definition at line 61 of file class.ilTestSession.php.
|
protected |
Definition at line 77 of file class.ilTestSession.php.
References ANONYMOUS_USER_ID, ILIAS\Repository\int(), and ILIAS\Repository\user().
Referenced by saveToDb().
|
private |
Definition at line 470 of file class.ilTestSession.php.
Referenced by createNewAccessCode().
ilTestSession::createNewAccessCode | ( | ) |
Definition at line 448 of file class.ilTestSession.php.
References buildAccessCode(), and isAccessCodeUsed().
ilTestSession::doesAccessCodeInSessionExists | ( | ) |
Definition at line 443 of file class.ilTestSession.php.
References ilSession\get(), and getTestId().
Referenced by ilTestPlayerAbstractGUI\ensureExistingTestSession(), and loadTestSession().
ilTestSession::getAccessCodeFromSession | ( | ) |
Definition at line 430 of file class.ilTestSession.php.
References ilSession\get(), getTestId(), and null.
Referenced by ilTestPlayerAbstractGUI\ensureExistingTestSession(), and loadTestSession().
ilTestSession::getActiveId | ( | ) |
Definition at line 271 of file class.ilTestSession.php.
References $active_id.
Referenced by ilTestService\buildVirtualSequence(), ilObjTest\canShowTestResults(), ilTestPlayerAbstractGUI\ensureExistingTestSession(), ilTestServiceGUI\getPassOverviewTableData(), ilTestArchiver\getResultsOfUserOutput(), ilTestPlayerAbstractGUI\handleSkillTriggering(), ilObjTest\hasAnyTestResult(), hasSinglePassReportable(), increaseTestPass(), lookupTestStartLock(), persistTestStartLock(), reportableResultsAvailable(), saveToDb(), ilTestRandomQuestionSetBuilder\storeQuestion(), and ilLOTestQuestionAdapter\updateQuestionResult().
ilTestSession::getAnonymousId | ( | ) |
Definition at line 301 of file class.ilTestSession.php.
References $anonymous_id.
Referenced by saveToDb().
ilTestSession::getLastFinishedPass | ( | ) |
Definition at line 356 of file class.ilTestSession.php.
References $lastFinishedPass.
Referenced by ilObjTest\canShowTestResults(), ilObjTest\hasAnyTestResult(), hasSinglePassReportable(), increaseTestPass(), and saveToDb().
ilTestSession::getLastSequence | ( | ) |
Definition at line 311 of file class.ilTestSession.php.
References $lastsequence.
Referenced by ilTestSequence\hasStarted(), increaseTestPass(), and saveToDb().
ilTestSession::getLastStartedPass | ( | ) |
Definition at line 374 of file class.ilTestSession.php.
References $lastStartedPass.
Referenced by increaseTestPass().
ilTestSession::getObjectiveOrientedContainerId | ( | ) |
Definition at line 366 of file class.ilTestSession.php.
Referenced by ilLOTestQuestionAdapter\getInstance(), increaseTestPass(), isObjectiveOriented(), ilLOTestQuestionAdapter\notifyTestStart(), and saveToDb().
ilTestSession::getPass | ( | ) |
Definition at line 321 of file class.ilTestSession.php.
References $pass.
Referenced by ilTestPlayerAbstractGUI\handleSkillTriggering(), increaseTestPass(), saveToDb(), ilTestRandomQuestionSetBuilder\storeQuestion(), and ilLOTestQuestionAdapter\updateQuestionResult().
ilTestSession::getRefId | ( | ) |
Definition at line 72 of file class.ilTestSession.php.
References $ref_id.
Referenced by ilLOTestQuestionAdapter\getInstance(), ilLOTestQuestionAdapter\initTestRun(), ilLOTestQuestionAdapter\initUserResult(), ilLOTestQuestionAdapter\isQualifiedStartRun(), ilLOTestQuestionAdapter\notifyTestStart(), ilLOTestQuestionAdapter\updateFixedQuestions(), ilLOTestQuestionAdapter\updateQuestionResult(), ilLOTestQuestionAdapter\updateQuestions(), and ilLOTestQuestionAdapter\updateRandomQuestions().
ilTestSession::getSubmittedTimestamp | ( | ) |
Definition at line 341 of file class.ilTestSession.php.
References $submittedTimestamp.
Referenced by increaseTestPass(), and saveToDb().
ilTestSession::getTestId | ( | ) |
Definition at line 291 of file class.ilTestSession.php.
References $test_id.
Referenced by doesAccessCodeInSessionExists(), getAccessCodeFromSession(), isAccessCodeUsed(), saveToDb(), setAccessCodeToSession(), and unsetAccessCodeInSession().
ilTestSession::getUserId | ( | ) |
Definition at line 281 of file class.ilTestSession.php.
References $user_id.
Referenced by ilTestPlayerAbstractGUI\checkTestSessionUser(), ilLOTestQuestionAdapter\getInstance(), ilTestPlayerAbstractGUI\handleSkillTriggering(), isAnonymousUser(), ilLOTestQuestionAdapter\notifyTestStart(), and saveToDb().
ilTestSession::hasSinglePassReportable | ( | ilObjTest | $testObj | ) |
Definition at line 524 of file class.ilTestSession.php.
References getActiveId(), and getLastFinishedPass().
ilTestSession::increasePass | ( | ) |
Definition at line 326 of file class.ilTestSession.php.
Referenced by increaseTestPass().
ilTestSession::increaseTestPass | ( | ) |
Definition at line 109 of file class.ilTestSession.php.
References ilSession\get(), getActiveId(), getLastFinishedPass(), getLastSequence(), getLastStartedPass(), getObjectiveOrientedContainerId(), getPass(), getSubmittedTimestamp(), increasePass(), isSubmitted(), null, and setLastSequence().
ilTestSession::isAccessCodeUsed | ( | string | $code | ) |
Definition at line 457 of file class.ilTestSession.php.
References getTestId().
Referenced by createNewAccessCode().
ilTestSession::isAnonymousUser | ( | ) |
Definition at line 487 of file class.ilTestSession.php.
References ANONYMOUS_USER_ID, and getUserId().
Referenced by ilTestPlayerAbstractGUI\ensureExistingTestSession().
ilTestSession::isObjectiveOriented | ( | ) |
Definition at line 384 of file class.ilTestSession.php.
References getObjectiveOrientedContainerId().
ilTestSession::isPasswordChecked | ( | ) |
Definition at line 492 of file class.ilTestSession.php.
References ilSession\get(), and null.
ilTestSession::isSubmitted | ( | ) |
Definition at line 331 of file class.ilTestSession.php.
References $submitted.
Referenced by increaseTestPass(), and saveToDb().
ilTestSession::loadFromDb | ( | int | $active_id | ) |
Definition at line 246 of file class.ilTestSession.php.
References setObjectiveOrientedContainerId().
ilTestSession::loadTestSession | ( | int | $test_id, |
int | $user_id = 0 , |
||
?string | $anonymous_id = null |
||
) |
Definition at line 196 of file class.ilTestSession.php.
References $user_id, ANONYMOUS_USER_ID, doesAccessCodeInSessionExists(), getAccessCodeFromSession(), null, setObjectiveOrientedContainerId(), unsetAccessCodeInSession(), and ILIAS\Repository\user().
ilTestSession::lookupTestStartLock | ( | ) |
Definition at line 398 of file class.ilTestSession.php.
References $res, getActiveId(), and null.
ilTestSession::persistTestStartLock | ( | string | $testStartLock | ) |
Definition at line 389 of file class.ilTestSession.php.
References getActiveId().
ilTestSession::reportableResultsAvailable | ( | ilObjTest | $test_obj | ) |
Definition at line 507 of file class.ilTestSession.php.
References $reportable_results_available, ilObjTest\canShowTestResults(), getActiveId(), and null.
ilTestSession::saveToDb | ( | ) |
Definition at line 147 of file class.ilTestSession.php.
References activeIDExists(), getActiveId(), getAnonymousId(), getLastFinishedPass(), getLastSequence(), getObjectiveOrientedContainerId(), getPass(), getSubmittedTimestamp(), getTestId(), getUserId(), isSubmitted(), and null.
Referenced by ilTestPlayerAbstractGUI\ensureExistingTestSession().
ilTestSession::setAccessCodeToSession | ( | string | $access_code | ) |
Definition at line 413 of file class.ilTestSession.php.
References ilSession\get(), getTestId(), and ilSession\set().
ilTestSession::setAnonymousId | ( | string | $anonymous_id | ) |
Definition at line 296 of file class.ilTestSession.php.
References $anonymous_id.
Referenced by ilTestPlayerAbstractGUI\ensureExistingTestSession().
ilTestSession::setLastFinishedPass | ( | int | $lastFinishedPass | ) |
ilTestSession::setLastSequence | ( | int | $lastsequence | ) |
Definition at line 306 of file class.ilTestSession.php.
References $lastsequence.
Referenced by increaseTestPass().
ilTestSession::setLastStartedPass | ( | int | $lastStartedPass | ) |
ilTestSession::setObjectiveOrientedContainerId | ( | int | $objectiveOriented | ) |
Definition at line 361 of file class.ilTestSession.php.
Referenced by loadFromDb(), and loadTestSession().
ilTestSession::setPass | ( | int | $pass | ) |
ilTestSession::setPasswordChecked | ( | bool | $value | ) |
Definition at line 500 of file class.ilTestSession.php.
References ilSession\set().
ilTestSession::setRefId | ( | int | $ref_id | ) |
ilTestSession::setSubmitted | ( | ) |
Definition at line 336 of file class.ilTestSession.php.
ilTestSession::setSubmittedTimestamp | ( | ) |
Definition at line 346 of file class.ilTestSession.php.
ilTestSession::setTestId | ( | int | $test_id | ) |
ilTestSession::setUserId | ( | int | $user_id | ) |
Definition at line 276 of file class.ilTestSession.php.
References $user_id.
Referenced by ilTestPlayerAbstractGUI\ensureExistingTestSession().
ilTestSession::unsetAccessCodeInSession | ( | ) |
Definition at line 423 of file class.ilTestSession.php.
References ilSession\get(), getTestId(), and ilSession\set().
Referenced by loadTestSession().
int ilTestSession::$active_id = 0 |
Definition at line 38 of file class.ilTestSession.php.
Referenced by getActiveId().
string ilTestSession::$anonymous_id = '' |
Definition at line 40 of file class.ilTestSession.php.
Referenced by getAnonymousId(), and setAnonymousId().
|
private |
Definition at line 49 of file class.ilTestSession.php.
Referenced by getLastFinishedPass(), and setLastFinishedPass().
|
protected |
Definition at line 43 of file class.ilTestSession.php.
int ilTestSession::$lastsequence = 0 |
Definition at line 42 of file class.ilTestSession.php.
Referenced by getLastSequence(), and setLastSequence().
|
private |
Definition at line 50 of file class.ilTestSession.php.
Referenced by getLastStartedPass(), and setLastStartedPass().
|
private |
Definition at line 47 of file class.ilTestSession.php.
|
private |
Definition at line 37 of file class.ilTestSession.php.
|
private |
Definition at line 36 of file class.ilTestSession.php.
Referenced by getRefId(), and setRefId().
|
private |
Definition at line 505 of file class.ilTestSession.php.
Referenced by reportableResultsAvailable().
bool ilTestSession::$submitted = false |
Definition at line 44 of file class.ilTestSession.php.
Referenced by isSubmitted().
string ilTestSession::$submittedTimestamp = '' |
Definition at line 46 of file class.ilTestSession.php.
Referenced by getSubmittedTimestamp().
int ilTestSession::$test_id = 0 |
Definition at line 41 of file class.ilTestSession.php.
Referenced by getTestId(), and setTestId().
int ilTestSession::$tstamp = 0 |
Definition at line 45 of file class.ilTestSession.php.
int ilTestSession::$user_id = 0 |
Definition at line 39 of file class.ilTestSession.php.
Referenced by getUserId(), loadTestSession(), and setUserId().
const ilTestSession::ACCESS_CODE_CHAR_DOMAIN = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" |
Definition at line 33 of file class.ilTestSession.php.
const ilTestSession::ACCESS_CODE_LENGTH = 5 |
Definition at line 34 of file class.ilTestSession.php.
const ilTestSession::ACCESS_CODE_SESSION_INDEX = "tst_access_code" |
Definition at line 32 of file class.ilTestSession.php.
Referenced by ILIAS\Test\Access\AccessFileUploadAnswer\accessCodeOk(), ILIAS\Style\Content\Access\test\AccessFileUploadAnswerTest\testAnonymousWithInvalidAccessCode(), ILIAS\Style\Content\Access\test\AccessFileUploadAnswerTest\testAnonymousWithoutAccessCode(), ILIAS\Style\Content\Access\test\AccessFileUploadAnswerTest\testAnonymousWithValidAccessCode(), ilTestSessionTest\testSetAccessCodeToSession(), ilTestSessionTest\testUnsetAccessCodeInSession(), and ILIAS\Style\Content\Access\test\AccessFileUploadAnswerTest\testUserWhichCanAccessTheTestResults().