ILIAS
Release_3_10_x_branch Revision 61812
|
Test session handler. More...
Public Member Functions | |
ilTestSession ($active_id="") | |
ilTestSession constructor | |
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 | |
$submittedTimestamp |
Private Member Functions | |
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 33 of file class.ilTestSession.php.
ilTestSession::getActiveId | ( | ) |
Definition at line 236 of file class.ilTestSession.php.
References $active_id.
Referenced by saveToDb().
ilTestSession::getAnonymousId | ( | ) |
Definition at line 266 of file class.ilTestSession.php.
References $anonymous_id.
Referenced by saveToDb().
ilTestSession::getLastSequence | ( | ) |
Definition at line 276 of file class.ilTestSession.php.
References $lastsequence.
ilTestSession::getPass | ( | ) |
ilTestSession::getSubmittedTimestamp | ( | ) |
Definition at line 306 of file class.ilTestSession.php.
References $submittedTimestamp.
Referenced by saveToDb().
ilTestSession::getTestId | ( | ) |
Definition at line 256 of file class.ilTestSession.php.
References $test_id.
ilTestSession::getUserId | ( | ) |
Definition at line 246 of file class.ilTestSession.php.
References $user_id.
ilTestSession::ilTestSession | ( | $active_id = "" | ) |
ilTestSession constructor
The constructor takes possible arguments an creates an instance of the ilTestSession object.
public
Definition at line 106 of file class.ilTestSession.php.
References $active_id, and loadFromDb().
ilTestSession::increasePass | ( | ) |
Definition at line 291 of file class.ilTestSession.php.
ilTestSession::isSubmitted | ( | ) |
Definition at line 296 of file class.ilTestSession.php.
References $submitted.
Referenced by saveToDb().
|
private |
Loads the session data for a given active id.
Loads the session data for a given active id
integer | $active_id | The database id of the test session private |
Definition at line 215 of file class.ilTestSession.php.
References $active_id, and $result.
Referenced by ilTestSession().
ilTestSession::loadTestSession | ( | $test_id, | |
$user_id = "" , |
|||
$anonymous_id = "" |
|||
) |
Definition at line 156 of file class.ilTestSession.php.
References $_SESSION, $anonymous_id, $result, $test_id, and $user_id.
ilTestSession::saveToDb | ( | ) |
Definition at line 122 of file class.ilTestSession.php.
References $anonymous_id, $ilLog, $result, $submitted, $submittedTimestamp, getActiveId(), getAnonymousId(), getSubmittedTimestamp(), and isSubmitted().
ilTestSession::setAnonymousId | ( | $anonymous_id | ) |
Definition at line 261 of file class.ilTestSession.php.
References $anonymous_id.
ilTestSession::setLastSequence | ( | $lastsequence | ) |
Definition at line 271 of file class.ilTestSession.php.
References $lastsequence.
ilTestSession::setPass | ( | $pass | ) |
ilTestSession::setSubmitted | ( | ) |
Definition at line 301 of file class.ilTestSession.php.
ilTestSession::setSubmittedTimestamp | ( | ) |
Definition at line 311 of file class.ilTestSession.php.
ilTestSession::setTestId | ( | $test_id | ) |
Definition at line 251 of file class.ilTestSession.php.
References $test_id.
ilTestSession::setUserId | ( | $user_id | ) |
Definition at line 241 of file class.ilTestSession.php.
References $user_id.
ilTestSession::$active_id |
Definition at line 42 of file class.ilTestSession.php.
Referenced by getActiveId(), ilTestSession(), and loadFromDb().
ilTestSession::$anonymous_id |
Definition at line 60 of file class.ilTestSession.php.
Referenced by getAnonymousId(), loadTestSession(), saveToDb(), and setAnonymousId().
ilTestSession::$lastsequence |
Definition at line 78 of file class.ilTestSession.php.
Referenced by getLastSequence(), and setLastSequence().
ilTestSession::$submitted |
Definition at line 87 of file class.ilTestSession.php.
Referenced by isSubmitted(), and saveToDb().
ilTestSession::$submittedTimestamp |
Definition at line 96 of file class.ilTestSession.php.
Referenced by getSubmittedTimestamp(), and saveToDb().
ilTestSession::$test_id |
Definition at line 69 of file class.ilTestSession.php.
Referenced by getTestId(), loadTestSession(), and setTestId().
ilTestSession::$user_id |
Definition at line 51 of file class.ilTestSession.php.
Referenced by getUserId(), loadTestSession(), and setUserId().