ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilTestExportFactory.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
30 {
31  public function __construct(
32  private ilObjTest $test_obj,
33  private ilLanguage $lng,
34  private ilLogger $logger,
35  private ilTree $tree,
36  private ilComponentRepository $component_repository,
37  private QuestionInfoService $questioninfo
38  ) {
39  }
40 
45  public function getExporter($mode = "xml")
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  }
60 }
Readable part of repository interface to ilComponentDataDB.
$lng
__construct(private ilObjTest $test_obj, private ilLanguage $lng, private ilLogger $logger, private ilTree $tree, private ilComponentRepository $component_repository, private QuestionInfoService $questioninfo)