ILIAS  release_8 Revision v8.24
ilTestPlayerFactory Class Reference
+ Collaboration diagram for ilTestPlayerFactory:

Public Member Functions

 __construct (ilObjTest $testOBJ)
 constructor More...
 
 getPlayerGUI ()
 creates and returns an instance of a player gui that corresponds to the current test mode More...
 

Private Attributes

 $testOBJ = null
 

Detailed Description

Definition at line 27 of file class.ilTestPlayerFactory.php.

Constructor & Destructor Documentation

◆ __construct()

ilTestPlayerFactory::__construct ( ilObjTest  $testOBJ)

constructor

Parameters
ilObjTest$testOBJ

Definition at line 41 of file class.ilTestPlayerFactory.php.

42 {
43 $this->testOBJ = $testOBJ;
44 }

References $testOBJ.

Member Function Documentation

◆ getPlayerGUI()

ilTestPlayerFactory::getPlayerGUI ( )

creates and returns an instance of a player gui that corresponds to the current test mode

Definition at line 50 of file class.ilTestPlayerFactory.php.

51 {
52 if ($this->testOBJ->isFixedTest()) {
53 return new ilTestPlayerFixedQuestionSetGUI($this->testOBJ);
54 }
55 return new ilTestPlayerRandomQuestionSetGUI($this->testOBJ);
56 }

Referenced by ilTestPlayerFactoryTest\testGetPlayerGUI().

+ Here is the caller graph for this function:

Field Documentation

◆ $testOBJ

ilTestPlayerFactory::$testOBJ = null
private

Definition at line 34 of file class.ilTestPlayerFactory.php.

Referenced by __construct().


The documentation for this class was generated from the following file: