ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilTestExportFactory.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
12{
16 protected $testOBJ;
17
19 {
20 $this->testOBJ = $testOBJ;
21 }
22
27 public function getExporter($mode = "xml")
28 {
29 switch($this->testOBJ->getQuestionSetType())
30 {
32
33 require_once 'Modules/Test/classes/class.ilTestExportFixedQuestionSet.php';
34 return new ilTestExportFixedQuestionSet($this->testOBJ, $mode);
35
37
38 require_once 'Modules/Test/classes/class.ilTestExportRandomQuestionSet.php';
39 return new ilTestExportRandomQuestionSet($this->testOBJ, $mode);
40
42
43 require_once 'Modules/Test/classes/class.ilTestExportDynamicQuestionSet.php';
44 return new ilTestExportDynamicQuestionSet($this->testOBJ, $mode);
45 }
46 }
47}
An exception for terminatinating execution or to throw for unit testing.
const QUESTION_SET_TYPE_DYNAMIC
type setting value for dynamic question set (continues testing mode)
const QUESTION_SET_TYPE_RANDOM
type setting value for random question set
const QUESTION_SET_TYPE_FIXED
type setting value for fixed question set
__construct(ilObjTest $testOBJ)