ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
class.ilTestPlayerFactory.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
29
class
ilTestPlayerFactory
30
{
36
private
$testOBJ
=
null
;
37
43
public
function
__construct
(
ilObjTest
$testOBJ
)
44
{
45
$this->testOBJ =
$testOBJ
;
46
}
47
52
public
function
getPlayerGUI
()
53
{
54
if
($this->testOBJ->isFixedTest()) {
55
return
new
ilTestPlayerFixedQuestionSetGUI
($this->testOBJ);
56
}
57
return
new
ilTestPlayerRandomQuestionSetGUI
($this->testOBJ);
58
}
59
}
ilObjTest
Definition:
class.ilObjTest.php:66
ilTestPlayerFactory
Definition:
class.ilTestPlayerFactory.php:30
ilTestPlayerFactory\__construct
__construct(ilObjTest $testOBJ)
constructor
Definition:
class.ilTestPlayerFactory.php:43
ilTestPlayerFactory\$testOBJ
$testOBJ
Definition:
class.ilTestPlayerFactory.php:36
ilTestPlayerFactory\getPlayerGUI
getPlayerGUI()
creates and returns an instance of a player gui that corresponds to the current test mode
Definition:
class.ilTestPlayerFactory.php:52
ilTestPlayerFixedQuestionSetGUI
Definition:
class.ilTestPlayerFixedQuestionSetGUI.php:33
ilTestPlayerRandomQuestionSetGUI
Definition:
class.ilTestPlayerRandomQuestionSetGUI.php:32
components
ILIAS
Test
classes
class.ilTestPlayerFactory.php
Generated on Sat Oct 18 2025 23:04:29 for ILIAS by
1.9.4 (using
Doxyfile
)