ILIAS
trunk Revision v11.0_alpha-1715-g7fc467680fb
|
Public Member Functions | |
__construct (private ilObjTest $test_obj, private ilDBInterface $db, private ilObjUser $user) | |
reset () | |
temporarily bugfix for resetting the state of this singleton smeyer –> BH: not required anymore More... | |
getSession (?int $active_id=null) | |
Creates and returns an instance of a test sequence that corresponds to the current test mode. More... | |
getSessionByUserId (int $user_id) | |
Private Member Functions | |
getNewTestSessionObject () | |
buildCacheKey (int $user_id) | |
Private Attributes | |
$testSession = [] | |
Definition at line 27 of file class.ilTestSessionFactory.php.
ilTestSessionFactory::__construct | ( | private ilObjTest | $test_obj, |
private ilDBInterface | $db, | ||
private ilObjUser | $user | ||
) |
Definition at line 36 of file class.ilTestSessionFactory.php.
|
private |
$userId |
Definition at line 116 of file class.ilTestSessionFactory.php.
Referenced by getSessionByUserId().
|
private |
Definition at line 107 of file class.ilTestSessionFactory.php.
References ILIAS\Repository\user().
Referenced by getSession(), and getSessionByUserId().
ilTestSessionFactory::getSession | ( | ?int | $active_id = null | ) |
Creates and returns an instance of a test sequence that corresponds to the current test mode.
Definition at line 57 of file class.ilTestSessionFactory.php.
References $testSession, getNewTestSessionObject(), null, and ILIAS\Repository\user().
ilTestSessionFactory::getSessionByUserId | ( | int | $user_id | ) |
integer | $userId |
Definition at line 91 of file class.ilTestSessionFactory.php.
References $testSession, $user_id, buildCacheKey(), and getNewTestSessionObject().
ilTestSessionFactory::reset | ( | ) |
temporarily bugfix for resetting the state of this singleton smeyer –> BH: not required anymore
Definition at line 48 of file class.ilTestSessionFactory.php.
|
private |
Definition at line 34 of file class.ilTestSessionFactory.php.
Referenced by getSession(), and getSessionByUserId().