|
ILIAS
Release_4_0_x_branch Revision 61816
|
Test session handler. More...
Collaboration diagram for ilTestSession:Public Member Functions | |
| ilTestSession ($active_id="") | |
| ilTestSession constructor | |
| 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 | |
| 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 282 of file class.ilTestSession.php.
References $active_id.
Referenced by increaseTestPass(), and saveToDb().
Here is the caller graph for this function:| ilTestSession::getAnonymousId | ( | ) |
Definition at line 312 of file class.ilTestSession.php.
References $anonymous_id.
Referenced by increaseTestPass(), and saveToDb().
Here is the caller graph for this function:| ilTestSession::getLastSequence | ( | ) |
Definition at line 322 of file class.ilTestSession.php.
References $lastsequence.
Referenced by increaseTestPass(), and saveToDb().
Here is the caller graph for this function:| ilTestSession::getPass | ( | ) |
Definition at line 332 of file class.ilTestSession.php.
References $pass.
Referenced by increaseTestPass(), and saveToDb().
Here is the caller graph for this function:| ilTestSession::getSubmittedTimestamp | ( | ) |
Definition at line 352 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 302 of file class.ilTestSession.php.
References $test_id.
Referenced by increaseTestPass(), and saveToDb().
Here is the caller graph for this function:| ilTestSession::getUserId | ( | ) |
Definition at line 292 of file class.ilTestSession.php.
References $user_id.
Referenced by increaseTestPass(), and saveToDb().
Here is the caller graph for this function:| ilTestSession::ilTestSession | ( | $active_id = "" | ) |
ilTestSession constructor
The constructor takes possible arguments an creates an instance of the ilTestSession object.
public
Definition at line 99 of file class.ilTestSession.php.
References $active_id, and loadFromDb().
Here is the call graph for this function:| ilTestSession::increasePass | ( | ) |
Definition at line 337 of file class.ilTestSession.php.
Referenced by increaseTestPass().
Here is the caller graph for this function:| ilTestSession::increaseTestPass | ( | ) |
Definition at line 116 of file class.ilTestSession.php.
References $anonymous_id, $ilDB, $ilLog, $submitted, getActiveId(), getAnonymousId(), getLastSequence(), getPass(), getSubmittedTimestamp(), getTestId(), getUserId(), increasePass(), isSubmitted(), and setLastSequence().
Here is the call graph for this function:| ilTestSession::isSubmitted | ( | ) |
Definition at line 342 of file class.ilTestSession.php.
References $submitted.
Referenced by increaseTestPass(), and saveToDb().
Here is the caller graph for this function:
|
private |
Loads the session data for a given active id.
| integer | $active_id | The database id of the test session private |
Definition at line 260 of file class.ilTestSession.php.
References $active_id, $ilDB, $result, and $row.
Referenced by ilTestSession().
Here is the caller graph for this function:| ilTestSession::loadTestSession | ( | $test_id, | |
$user_id = "", |
|||
$anonymous_id = "" |
|||
| ) |
Definition at line 205 of file class.ilTestSession.php.
References $_SESSION, $anonymous_id, $ilDB, $result, $row, $test_id, and $user_id.
| ilTestSession::saveToDb | ( | ) |
Definition at line 164 of file class.ilTestSession.php.
References $anonymous_id, $ilDB, $ilLog, $submitted, getActiveId(), getAnonymousId(), getLastSequence(), getPass(), getSubmittedTimestamp(), getTestId(), getUserId(), and isSubmitted().
Here is the call graph for this function:| ilTestSession::setAnonymousId | ( | $anonymous_id | ) |
Definition at line 307 of file class.ilTestSession.php.
References $anonymous_id.
| ilTestSession::setLastSequence | ( | $lastsequence | ) |
Definition at line 317 of file class.ilTestSession.php.
References $lastsequence.
Referenced by increaseTestPass().
Here is the caller graph for this function:| ilTestSession::setPass | ( | $pass | ) |
| ilTestSession::setSubmitted | ( | ) |
Definition at line 347 of file class.ilTestSession.php.
| ilTestSession::setSubmittedTimestamp | ( | ) |
Definition at line 357 of file class.ilTestSession.php.
| ilTestSession::setTestId | ( | $test_id | ) |
Definition at line 297 of file class.ilTestSession.php.
References $test_id.
| ilTestSession::setUserId | ( | $user_id | ) |
Definition at line 287 of file class.ilTestSession.php.
References $user_id.
| ilTestSession::$active_id |
Definition at line 40 of file class.ilTestSession.php.
Referenced by getActiveId(), ilTestSession(), and loadFromDb().
| ilTestSession::$anonymous_id |
Definition at line 54 of file class.ilTestSession.php.
Referenced by getAnonymousId(), increaseTestPass(), loadTestSession(), saveToDb(), and setAnonymousId().
| ilTestSession::$lastsequence |
Definition at line 68 of file class.ilTestSession.php.
Referenced by getLastSequence(), and setLastSequence().
| ilTestSession::$submitted |
Definition at line 75 of file class.ilTestSession.php.
Referenced by increaseTestPass(), isSubmitted(), and saveToDb().
| ilTestSession::$submittedTimestamp |
Definition at line 89 of file class.ilTestSession.php.
Referenced by getSubmittedTimestamp().
| ilTestSession::$test_id |
Definition at line 61 of file class.ilTestSession.php.
Referenced by getTestId(), loadTestSession(), and setTestId().
| ilTestSession::$tstamp |
Definition at line 82 of file class.ilTestSession.php.
| ilTestSession::$user_id |
Definition at line 47 of file class.ilTestSession.php.
Referenced by getUserId(), loadTestSession(), and setUserId().