ILIAS  release_8 Revision v8.24
class.ilTestPlayerFactory.php
Go to the documentation of this file.
1<?php
2
28{
34 private $testOBJ = null;
35
42 {
43 $this->testOBJ = $testOBJ;
44 }
45
50 public function getPlayerGUI()
51 {
52 if ($this->testOBJ->isFixedTest()) {
53 return new ilTestPlayerFixedQuestionSetGUI($this->testOBJ);
54 }
55 return new ilTestPlayerRandomQuestionSetGUI($this->testOBJ);
56 }
57}
__construct(ilObjTest $testOBJ)
constructor
getPlayerGUI()
creates and returns an instance of a player gui that corresponds to the current test mode