41 $this->testSession = array();
56 if ($activeId === null || $this->testSession[$activeId] === null) {
70 $this->testOBJ->getTestId(),
79 return $this->testSession[$activeId];
89 if (!isset($this->testSession[$this->
buildCacheKey($userId)])) {
95 $testSession->loadTestSession($this->testOBJ->getTestId(), $userId);
108 switch ($this->testOBJ->getQuestionSetType()) {
112 require_once
'Modules/Test/classes/class.ilTestSession.php';
118 require_once
'Modules/Test/classes/class.ilTestSessionDynamicQuestionSet.php';
132 return "{$this->testOBJ->getTestId()}::{$userId}";
const QUESTION_SET_TYPE_RANDOM
type setting value for random question set
getSessionByUserId($userId)
getNewTestSessionObject()
__construct(ilObjTest $testOBJ)
constructor
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 ...
getSession($activeId=null)
Creates and returns an instance of a test sequence that corresponds to the current test mode...
const QUESTION_SET_TYPE_DYNAMIC
type setting value for dynamic question set (continues testing mode)