| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
 Collaboration diagram for ilTestSession: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().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 470 of file class.ilTestSession.php.
Referenced by createNewAccessCode().
 Here is the caller graph for this function:| ilTestSession::createNewAccessCode | ( | ) | 
Definition at line 448 of file class.ilTestSession.php.
References buildAccessCode(), and isAccessCodeUsed().
 Here is the call graph for this function:| ilTestSession::doesAccessCodeInSessionExists | ( | ) | 
Definition at line 443 of file class.ilTestSession.php.
References ilSession\get(), and getTestId().
Referenced by ilTestPlayerAbstractGUI\ensureExistingTestSession(), and loadTestSession().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilTestSession::getAccessCodeFromSession | ( | ) | 
Definition at line 430 of file class.ilTestSession.php.
References ilSession\get(), and getTestId().
Referenced by ilTestPlayerAbstractGUI\ensureExistingTestSession(), and loadTestSession().
 Here is the call graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:| ilTestSession::getAnonymousId | ( | ) | 
Definition at line 301 of file class.ilTestSession.php.
References $anonymous_id.
Referenced by saveToDb().
 Here is the caller graph for this function:| ilTestSession::getLastFinishedPass | ( | ) | 
Definition at line 356 of file class.ilTestSession.php.
References $lastFinishedPass.
Referenced by ilObjTest\canShowTestResults(), ilObjTest\hasAnyTestResult(), hasSinglePassReportable(), increaseTestPass(), and saveToDb().
 Here is the caller graph for this function:| ilTestSession::getLastSequence | ( | ) | 
Definition at line 311 of file class.ilTestSession.php.
References $lastsequence.
Referenced by ilTestSequence\hasStarted(), increaseTestPass(), and saveToDb().
 Here is the caller graph for this function:| ilTestSession::getLastStartedPass | ( | ) | 
Definition at line 374 of file class.ilTestSession.php.
References $lastStartedPass.
Referenced by increaseTestPass().
 Here is the caller graph for this function:| ilTestSession::getObjectiveOrientedContainerId | ( | ) | 
Definition at line 366 of file class.ilTestSession.php.
Referenced by ilLOTestQuestionAdapter\getInstance(), increaseTestPass(), isObjectiveOriented(), ilLOTestQuestionAdapter\notifyTestStart(), and saveToDb().
 Here is the caller graph for this function:| ilTestSession::getPass | ( | ) | 
Definition at line 321 of file class.ilTestSession.php.
References $pass.
Referenced by ilTestPlayerAbstractGUI\handleSkillTriggering(), increaseTestPass(), saveToDb(), ilTestRandomQuestionSetBuilder\storeQuestion(), and ilLOTestQuestionAdapter\updateQuestionResult().
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:| ilTestSession::getSubmittedTimestamp | ( | ) | 
Definition at line 341 of file class.ilTestSession.php.
References $submittedTimestamp.
Referenced by increaseTestPass(), and saveToDb().
 Here is the caller graph for this function:| ilTestSession::getTestId | ( | ) | 
Definition at line 291 of file class.ilTestSession.php.
References $test_id.
Referenced by doesAccessCodeInSessionExists(), getAccessCodeFromSession(), isAccessCodeUsed(), saveToDb(), setAccessCodeToSession(), and unsetAccessCodeInSession().
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:| ilTestSession::hasSinglePassReportable | ( | ilObjTest | $testObj | ) | 
Definition at line 524 of file class.ilTestSession.php.
References getActiveId(), and getLastFinishedPass().
 Here is the call graph for this function:| ilTestSession::increasePass | ( | ) | 
Definition at line 326 of file class.ilTestSession.php.
Referenced by increaseTestPass().
 Here is the caller graph for this function:| ilTestSession::increaseTestPass | ( | ) | 
Definition at line 109 of file class.ilTestSession.php.
References ilSession\get(), getActiveId(), getLastFinishedPass(), getLastSequence(), getLastStartedPass(), getObjectiveOrientedContainerId(), getPass(), getSubmittedTimestamp(), increasePass(), isSubmitted(), and setLastSequence().
 Here is the call graph for this function:| ilTestSession::isAccessCodeUsed | ( | string | $code | ) | 
Definition at line 457 of file class.ilTestSession.php.
References getTestId().
Referenced by createNewAccessCode().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilTestSession::isAnonymousUser | ( | ) | 
Definition at line 487 of file class.ilTestSession.php.
References ANONYMOUS_USER_ID, and getUserId().
Referenced by ilTestPlayerAbstractGUI\ensureExistingTestSession().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilTestSession::isObjectiveOriented | ( | ) | 
Definition at line 384 of file class.ilTestSession.php.
References getObjectiveOrientedContainerId().
 Here is the call graph for this function:| ilTestSession::isPasswordChecked | ( | ) | 
Definition at line 492 of file class.ilTestSession.php.
References ilSession\get().
 Here is the call graph for this function:| ilTestSession::isSubmitted | ( | ) | 
Definition at line 331 of file class.ilTestSession.php.
References $submitted.
Referenced by increaseTestPass(), and saveToDb().
 Here is the caller graph for this function:| ilTestSession::loadFromDb | ( | int | $active_id | ) | 
Definition at line 246 of file class.ilTestSession.php.
References setObjectiveOrientedContainerId().
 Here is the call graph for this function:| 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(), setObjectiveOrientedContainerId(), unsetAccessCodeInSession(), and ILIAS\Repository\user().
 Here is the call graph for this function:| ilTestSession::lookupTestStartLock | ( | ) | 
Definition at line 398 of file class.ilTestSession.php.
References $res, and getActiveId().
 Here is the call graph for this function:| ilTestSession::persistTestStartLock | ( | string | $testStartLock | ) | 
Definition at line 389 of file class.ilTestSession.php.
References getActiveId().
 Here is the call graph for this function:| ilTestSession::reportableResultsAvailable | ( | ilObjTest | $test_obj | ) | 
Definition at line 507 of file class.ilTestSession.php.
References $reportable_results_available, ilObjTest\canShowTestResults(), and getActiveId().
 Here is the call graph for this function:| ilTestSession::saveToDb | ( | ) | 
Definition at line 147 of file class.ilTestSession.php.
References activeIDExists(), getActiveId(), getAnonymousId(), getLastFinishedPass(), getLastSequence(), getObjectiveOrientedContainerId(), getPass(), getSubmittedTimestamp(), getTestId(), getUserId(), and isSubmitted().
Referenced by ilTestPlayerAbstractGUI\ensureExistingTestSession().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilTestSession::setAccessCodeToSession | ( | string | $access_code | ) | 
Definition at line 413 of file class.ilTestSession.php.
References ilSession\get(), getTestId(), and ilSession\set().
 Here is the call graph for this function:| ilTestSession::setAnonymousId | ( | string | $anonymous_id | ) | 
Definition at line 296 of file class.ilTestSession.php.
References $anonymous_id.
Referenced by ilTestPlayerAbstractGUI\ensureExistingTestSession().
 Here is the caller graph for this function:| ilTestSession::setLastFinishedPass | ( | int | $lastFinishedPass | ) | 
| ilTestSession::setLastSequence | ( | int | $lastsequence | ) | 
Definition at line 306 of file class.ilTestSession.php.
References $lastsequence.
Referenced by increaseTestPass().
 Here is the caller graph for this function:| ilTestSession::setLastStartedPass | ( | int | $lastStartedPass | ) | 
| ilTestSession::setObjectiveOrientedContainerId | ( | int | $objectiveOriented | ) | 
Definition at line 361 of file class.ilTestSession.php.
Referenced by loadFromDb(), and loadTestSession().
 Here is the caller graph for this function:| ilTestSession::setPass | ( | int | $pass | ) | 
| ilTestSession::setPasswordChecked | ( | bool | $value | ) | 
Definition at line 500 of file class.ilTestSession.php.
References ilSession\set().
 Here is the call graph for this function:| 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().
 Here is the caller graph for this function:| ilTestSession::unsetAccessCodeInSession | ( | ) | 
Definition at line 423 of file class.ilTestSession.php.
References ilSession\get(), getTestId(), and ilSession\set().
Referenced by loadTestSession().
 Here is the call graph for this function:
 Here is the caller graph for this function:| 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().