41 $this->testSession = array();
56 if ($activeId ===
null || $this->testSession[$activeId] ===
null) {
69 $this->testOBJ->getTestId(),
78 return $this->testSession[$activeId];
88 if (!isset($this->testSession[$this->
buildCacheKey($userId)])) {
94 $testSession->loadTestSession($this->testOBJ->getTestId(), $userId);
107 switch ($this->testOBJ->getQuestionSetType()) {
111 require_once
'Modules/Test/classes/class.ilTestSession.php';
117 require_once
'Modules/Test/classes/class.ilTestSessionDynamicQuestionSet.php';
131 return "{$this->testOBJ->getTestId()}::{$userId}";
An exception for terminatinating execution or to throw for unit testing.
const QUESTION_SET_TYPE_DYNAMIC
type setting value for dynamic question set (continues testing mode)
const QUESTION_SET_TYPE_RANDOM
type setting value for random question set
const QUESTION_SET_TYPE_FIXED
type setting value for fixed question set
reset()
temporarily bugfix for resetting the state of this singleton smeyer --> BH: not required anymore
getSessionByUserId($userId)
__construct(ilObjTest $testOBJ)
constructor
getNewTestSessionObject()
getSession($activeId=null)
Creates and returns an instance of a test sequence that corresponds to the current test mode.