ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
class.ilTestExportFactory.php
Go to the documentation of this file.
1
<?php
2
25
class
ilTestExportFactory
26
{
30
protected
$testOBJ
;
31
32
public
function
__construct
(
ilObjTest
$testOBJ
)
33
{
34
$this->testOBJ =
$testOBJ
;
35
}
36
41
public
function
getExporter
($mode =
"xml"
)
42
{
43
if
($this->testOBJ->isFixedTest()) {
44
return
new
ilTestExportFixedQuestionSet
($this->testOBJ, $mode);
45
} elseif ($this->testOBJ->isRandomTest()) {
46
return
new
ilTestExportRandomQuestionSet
($this->testOBJ, $mode);
47
}
48
return
new
ilTestExportDynamicQuestionSet
($this->testOBJ, $mode);
49
}
50
}
ilTestExportFactory\$testOBJ
$testOBJ
Definition:
class.ilTestExportFactory.php:30
ilTestExportRandomQuestionSet
Definition:
class.ilTestExportRandomQuestionSet.php:25
ilTestExportFactory
Definition:
class.ilTestExportFactory.php:25
ilTestExportDynamicQuestionSet
Definition:
class.ilTestExportDynamicQuestionSet.php:25
ilObjTest
ilTestExportFixedQuestionSet
Definition:
class.ilTestExportFixedQuestionSet.php:25
ilTestExportFactory\__construct
__construct(ilObjTest $testOBJ)
Definition:
class.ilTestExportFactory.php:32
ilTestExportFactory\getExporter
getExporter($mode="xml")
Definition:
class.ilTestExportFactory.php:41
Modules
Test
classes
class.ilTestExportFactory.php
Generated on Sun Aug 31 2025 22:01:36 for ILIAS by
1.8.13 (using
Doxyfile
)