ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilTestExportFactory Class Reference
+ Collaboration diagram for ilTestExportFactory:

Public Member Functions

 __construct (private ilObjTest $test_obj, private ilLanguage $lng, private ilLogger $logger, private ilTree $tree, private ilComponentRepository $component_repository, private QuestionInfoService $questioninfo)
 
 getExporter ($mode="xml")
 

Detailed Description

Definition at line 29 of file class.ilTestExportFactory.php.

Constructor & Destructor Documentation

◆ __construct()

ilTestExportFactory::__construct ( private ilObjTest  $test_obj,
private ilLanguage  $lng,
private ilLogger  $logger,
private ilTree  $tree,
private ilComponentRepository  $component_repository,
private QuestionInfoService  $questioninfo 
)

Definition at line 31 of file class.ilTestExportFactory.php.

38  {
39  }

Member Function Documentation

◆ getExporter()

ilTestExportFactory::getExporter (   $mode = "xml")
Parameters
string$mode
Returns
ilTestExportFixedQuestionSet|ilTestExportRandomQuestionSet

Definition at line 45 of file class.ilTestExportFactory.php.

References ILIAS\Repository\lng(), and ILIAS\Repository\logger().

46  {
47  if ($this->test_obj->isFixedTest()) {
48  return new ilTestExportFixedQuestionSet($this->test_obj, $mode);
49  }
51  $this->test_obj,
52  $this->lng,
53  $this->logger,
54  $this->tree,
55  $this->component_repository,
56  $this->questioninfo,
57  $mode
58  );
59  }
+ Here is the call graph for this function:

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