ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 29 of file class.ilTestPlayerFactory.php.

Constructor & Destructor Documentation

◆ __construct()

ilTestPlayerFactory::__construct ( ilObjTest  $testOBJ)

constructor

Parameters
ilObjTest$testOBJ

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

References $testOBJ.

44  {
45  $this->testOBJ = $testOBJ;
46  }

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 52 of file class.ilTestPlayerFactory.php.

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

Field Documentation

◆ $testOBJ

ilTestPlayerFactory::$testOBJ = null
private

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

Referenced by __construct().


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