ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilTestPlayerFactory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
30{
36 private $testOBJ = null;
37
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}
__construct(ilObjTest $testOBJ)
constructor
getPlayerGUI()
creates and returns an instance of a player gui that corresponds to the current test mode