ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
Public Member Functions | |
__construct ($userId, $questionId) | |
init () | |
getUserId () | |
getQuestionId () | |
setInstantResponseActive ($instantResponseActive) | |
isInstantResponseActive () | |
setParticipantsSolution ($participantSolution) | |
getParticipantsSolution () | |
hasParticipantSolution () | |
setRandomizerSeed ($seed) | |
getRandomizerSeed () | |
randomizerSeedExists () | |
Data Fields | |
const | SESSION_BASEINDEX = 'ilAssQuestionPreviewSessions' |
const | SESSION_SUBINDEX_INSTANT_RESPONSE_ACTIVE = 'instantResponseActive' |
const | SESSION_SUBINDEX_PARTICIPANT_SOLUTION = 'participantSolution' |
const | SESSION_SUBINDEX_RANDOMIZER_SEED = 'randomizerSeed' |
Private Member Functions | |
getSessionContextIndex () | |
saveSessionValue ($subIndex, $value) | |
issetSessionValue ($subIndex) | |
readSessionValue ($subIndex) | |
ensureSessionStructureExists () | |
Private Attributes | |
$userId | |
$questionId | |
Definition at line 25 of file class.ilAssQuestionPreviewSession.php.
ilAssQuestionPreviewSession::__construct | ( | $userId, | |
$questionId | |||
) |
Definition at line 36 of file class.ilAssQuestionPreviewSession.php.
References $questionId, and $userId.
|
private |
Definition at line 122 of file class.ilAssQuestionPreviewSession.php.
References ilSession\get(), getSessionContextIndex(), null, and ilSession\set().
Referenced by init().
ilAssQuestionPreviewSession::getParticipantsSolution | ( | ) |
Definition at line 96 of file class.ilAssQuestionPreviewSession.php.
References null, and readSessionValue().
Referenced by assNumeric\calculateReachedPointsFromPreviewSession(), assErrorText\calculateReachedPointsFromPreviewSession(), assSingleChoice\calculateReachedPointsFromPreviewSession(), assOrderingQuestion\calculateReachedPointsFromPreviewSession(), assFormulaQuestion\calculateReachedPointsFromPreviewSession(), assClozeTest\calculateReachedPointsFromPreviewSession(), assQuestion\calculateReachedPointsFromPreviewSession(), assFileUpload\getPreviewFileUploads(), assFileUpload\savePreviewData(), and assFormulaQuestion\savePreviewData().
ilAssQuestionPreviewSession::getQuestionId | ( | ) |
Definition at line 52 of file class.ilAssQuestionPreviewSession.php.
References $questionId.
ilAssQuestionPreviewSession::getRandomizerSeed | ( | ) |
Definition at line 111 of file class.ilAssQuestionPreviewSession.php.
References null, and readSessionValue().
Referenced by randomizerSeedExists().
|
private |
Definition at line 57 of file class.ilAssQuestionPreviewSession.php.
Referenced by ensureSessionStructureExists(), issetSessionValue(), readSessionValue(), and saveSessionValue().
ilAssQuestionPreviewSession::getUserId | ( | ) |
Definition at line 47 of file class.ilAssQuestionPreviewSession.php.
References $userId.
Referenced by assFileUpload\savePreviewData().
ilAssQuestionPreviewSession::hasParticipantSolution | ( | ) |
Definition at line 101 of file class.ilAssQuestionPreviewSession.php.
References issetSessionValue().
Referenced by assOrderingQuestion\calculateReachedPointsFromPreviewSession().
ilAssQuestionPreviewSession::init | ( | ) |
Definition at line 42 of file class.ilAssQuestionPreviewSession.php.
References ensureSessionStructureExists().
ilAssQuestionPreviewSession::isInstantResponseActive | ( | ) |
Definition at line 86 of file class.ilAssQuestionPreviewSession.php.
References readSessionValue().
|
private |
Definition at line 69 of file class.ilAssQuestionPreviewSession.php.
References ilSession\get(), and getSessionContextIndex().
Referenced by hasParticipantSolution().
ilAssQuestionPreviewSession::randomizerSeedExists | ( | ) |
Definition at line 117 of file class.ilAssQuestionPreviewSession.php.
References getRandomizerSeed(), and null.
|
private |
Definition at line 75 of file class.ilAssQuestionPreviewSession.php.
References ilSession\get(), and getSessionContextIndex().
Referenced by getParticipantsSolution(), getRandomizerSeed(), and isInstantResponseActive().
|
private |
Definition at line 62 of file class.ilAssQuestionPreviewSession.php.
References ilSession\get(), getSessionContextIndex(), and ilSession\set().
Referenced by setInstantResponseActive(), setParticipantsSolution(), and setRandomizerSeed().
ilAssQuestionPreviewSession::setInstantResponseActive | ( | $instantResponseActive | ) |
Definition at line 81 of file class.ilAssQuestionPreviewSession.php.
References saveSessionValue().
ilAssQuestionPreviewSession::setParticipantsSolution | ( | $participantSolution | ) |
Definition at line 91 of file class.ilAssQuestionPreviewSession.php.
References saveSessionValue().
Referenced by assNumeric\savePreviewData(), assErrorText\savePreviewData(), assSingleChoice\savePreviewData(), assLongMenu\savePreviewData(), assQuestion\savePreviewData(), assOrderingQuestion\savePreviewData(), assFileUpload\savePreviewData(), assMatchingQuestion\savePreviewData(), and assFormulaQuestion\savePreviewData().
ilAssQuestionPreviewSession::setRandomizerSeed | ( | $seed | ) |
Definition at line 106 of file class.ilAssQuestionPreviewSession.php.
References saveSessionValue().
|
private |
Definition at line 34 of file class.ilAssQuestionPreviewSession.php.
Referenced by __construct(), and getQuestionId().
|
private |
Definition at line 33 of file class.ilAssQuestionPreviewSession.php.
Referenced by __construct(), and getUserId().
const ilAssQuestionPreviewSession::SESSION_BASEINDEX = 'ilAssQuestionPreviewSessions' |
Definition at line 27 of file class.ilAssQuestionPreviewSession.php.
const ilAssQuestionPreviewSession::SESSION_SUBINDEX_INSTANT_RESPONSE_ACTIVE = 'instantResponseActive' |
Definition at line 29 of file class.ilAssQuestionPreviewSession.php.
const ilAssQuestionPreviewSession::SESSION_SUBINDEX_PARTICIPANT_SOLUTION = 'participantSolution' |
Definition at line 30 of file class.ilAssQuestionPreviewSession.php.
const ilAssQuestionPreviewSession::SESSION_SUBINDEX_RANDOMIZER_SEED = 'randomizerSeed' |
Definition at line 31 of file class.ilAssQuestionPreviewSession.php.