ILIAS
release_4-3 Revision
|
Test session handler. More...
Public Member Functions | |
ilTestSession ($active_id="") | |
ilTestSession constructor | |
setRefId ($a_val) | |
Set Ref id. | |
getRefId () | |
Get Ref id. | |
increaseTestPass () | |
saveToDb () | |
loadTestSession ($test_id, $user_id="", $anonymous_id="") | |
getActiveId () | |
setUserId ($user_id) | |
getUserId () | |
setTestId ($test_id) | |
getTestId () | |
setAnonymousId ($anonymous_id) | |
getAnonymousId () | |
setLastSequence ($lastsequence) | |
getLastSequence () | |
setPass ($pass) | |
getPass () | |
increasePass () | |
isSubmitted () | |
setSubmitted () | |
getSubmittedTimestamp () | |
setSubmittedTimestamp () |
Data Fields | |
$active_id | |
$user_id | |
$anonymous_id | |
$test_id | |
$lastsequence | |
$submitted | |
$tstamp | |
$submittedTimestamp |
Private Member Functions | |
activeIDExists ($user_id, $test_id) | |
loadFromDb ($active_id) | |
Loads the session data for a given active id. |
Test session handler.
This class manages the test session for a participant
Definition at line 14 of file class.ilTestSession.php.
|
private |
Definition at line 118 of file class.ilTestSession.php.
References $_SESSION, $result, $row, $test_id, and $user_id.
Referenced by increaseTestPass(), and saveToDb().
ilTestSession::getActiveId | ( | ) |
Definition at line 350 of file class.ilTestSession.php.
References $active_id.
Referenced by increaseTestPass(), and saveToDb().
ilTestSession::getAnonymousId | ( | ) |
Definition at line 380 of file class.ilTestSession.php.
References $anonymous_id.
Referenced by increaseTestPass(), and saveToDb().
ilTestSession::getLastSequence | ( | ) |
Definition at line 390 of file class.ilTestSession.php.
References $lastsequence.
Referenced by increaseTestPass(), and saveToDb().
ilTestSession::getPass | ( | ) |
Definition at line 400 of file class.ilTestSession.php.
References $pass.
Referenced by increaseTestPass(), and saveToDb().
ilTestSession::getRefId | ( | ) |
Get Ref id.
Definition at line 113 of file class.ilTestSession.php.
References $ref_id.
Referenced by saveToDb().
ilTestSession::getSubmittedTimestamp | ( | ) |
Definition at line 420 of file class.ilTestSession.php.
References $submittedTimestamp.
Referenced by increaseTestPass(), and saveToDb().
ilTestSession::getTestId | ( | ) |
Definition at line 370 of file class.ilTestSession.php.
References $test_id.
Referenced by increaseTestPass(), and saveToDb().
ilTestSession::getUserId | ( | ) |
Definition at line 360 of file class.ilTestSession.php.
References $user_id.
Referenced by increaseTestPass(), and saveToDb().
ilTestSession::ilTestSession | ( | $active_id = "" | ) |
ilTestSession constructor
The constructor takes possible arguments an creates an instance of the ilTestSession object.
public
Definition at line 80 of file class.ilTestSession.php.
References $active_id, and loadFromDb().
ilTestSession::increasePass | ( | ) |
Definition at line 405 of file class.ilTestSession.php.
Referenced by increaseTestPass().
ilTestSession::increaseTestPass | ( | ) |
Definition at line 147 of file class.ilTestSession.php.
References $_SESSION, $anonymous_id, $ilLog, $submitted, ilObjTestAccess\_getParticipantId(), ilObjTestAccess\_lookupObjIdForTestId(), ilLPStatusWrapper\_updateStatus(), activeIDExists(), getActiveId(), getAnonymousId(), getLastSequence(), getPass(), getSubmittedTimestamp(), getTestId(), getUserId(), increasePass(), isSubmitted(), and setLastSequence().
ilTestSession::isSubmitted | ( | ) |
Definition at line 410 of file class.ilTestSession.php.
References $submitted.
Referenced by increaseTestPass(), and saveToDb().
|
private |
Loads the session data for a given active id.
integer | $active_id | The database id of the test session private |
Definition at line 328 of file class.ilTestSession.php.
References $active_id, $result, and $row.
Referenced by ilTestSession().
ilTestSession::loadTestSession | ( | $test_id, | |
$user_id = "" , |
|||
$anonymous_id = "" |
|||
) |
Definition at line 273 of file class.ilTestSession.php.
References $_SESSION, $anonymous_id, $ilUser, $result, $row, $test_id, and $user_id.
ilTestSession::saveToDb | ( | ) |
Definition at line 211 of file class.ilTestSession.php.
References $anonymous_id, $ilLog, $submitted, ilObjTestAccess\_getParticipantId(), ilObjTestAccess\_lookupObjIdForTestId(), ilLearningProgress\_tracProgress(), ilLPStatusWrapper\_updateStatus(), activeIDExists(), getActiveId(), getAnonymousId(), getLastSequence(), getPass(), getRefId(), getSubmittedTimestamp(), getTestId(), getUserId(), and isSubmitted().
ilTestSession::setAnonymousId | ( | $anonymous_id | ) |
Definition at line 375 of file class.ilTestSession.php.
References $anonymous_id.
ilTestSession::setLastSequence | ( | $lastsequence | ) |
Definition at line 385 of file class.ilTestSession.php.
References $lastsequence.
Referenced by increaseTestPass().
ilTestSession::setPass | ( | $pass | ) |
ilTestSession::setRefId | ( | $a_val | ) |
Set Ref id.
integer | Ref id |
Definition at line 103 of file class.ilTestSession.php.
ilTestSession::setSubmitted | ( | ) |
Definition at line 415 of file class.ilTestSession.php.
ilTestSession::setSubmittedTimestamp | ( | ) |
Definition at line 425 of file class.ilTestSession.php.
ilTestSession::setTestId | ( | $test_id | ) |
Definition at line 365 of file class.ilTestSession.php.
References $test_id.
ilTestSession::setUserId | ( | $user_id | ) |
Definition at line 355 of file class.ilTestSession.php.
References $user_id.
ilTestSession::$active_id |
Definition at line 21 of file class.ilTestSession.php.
Referenced by getActiveId(), ilTestSession(), and loadFromDb().
ilTestSession::$anonymous_id |
Definition at line 35 of file class.ilTestSession.php.
Referenced by getAnonymousId(), increaseTestPass(), loadTestSession(), saveToDb(), and setAnonymousId().
ilTestSession::$lastsequence |
Definition at line 49 of file class.ilTestSession.php.
Referenced by getLastSequence(), and setLastSequence().
ilTestSession::$submitted |
Definition at line 56 of file class.ilTestSession.php.
Referenced by increaseTestPass(), isSubmitted(), and saveToDb().
ilTestSession::$submittedTimestamp |
Definition at line 70 of file class.ilTestSession.php.
Referenced by getSubmittedTimestamp().
ilTestSession::$test_id |
Definition at line 42 of file class.ilTestSession.php.
Referenced by activeIDExists(), getTestId(), loadTestSession(), and setTestId().
ilTestSession::$tstamp |
Definition at line 63 of file class.ilTestSession.php.
ilTestSession::$user_id |
Definition at line 28 of file class.ilTestSession.php.
Referenced by activeIDExists(), getUserId(), loadTestSession(), and setUserId().