Used for container export with tests.
More...
|
| | __construct () |
| |
| | init () |
| | Initialisation. More...
|
| |
| | getXmlRepresentation (string $a_entity, string $a_schema_version, string $id) |
| |
| | getXmlExportHeadDependencies (string $entity, string $target_release, array $ids) |
| |
| | getXmlExportTailDependencies (string $a_entity, string $a_target_release, array $a_ids) |
| |
| | getValidSchemaVersions (string $a_entity) |
| | Returns schema versions that the component can export to. More...
|
| |
| | __construct () |
| |
| | setExport (ilExport $a_exp) |
| |
| | getExport () |
| |
| | getXmlRepresentation (string $a_entity, string $a_schema_version, string $a_id) |
| |
| | init () |
| |
| | setExportDirectories (string $a_dir_relative, string $a_dir_absolute) |
| |
| | getRelativeExportDirectory () |
| |
| | getAbsoluteExportDirectory () |
| |
| | getXmlExportHeadDependencies (string $a_entity, string $a_target_release, array $a_ids) |
| | Get head dependencies. More...
|
| |
| | getXmlExportTailDependencies (string $a_entity, string $a_target_release, array $a_ids) |
| | Get tail dependencies. More...
|
| |
| | getValidSchemaVersions (string $a_entity) |
| | Returns schema versions that the component can export to. More...
|
| |
| | determineSchemaVersion (string $a_entity, string $a_target_release) |
| |
Used for container export with tests.
- Author
- Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
- Version
- $Id$
Definition at line 30 of file class.ilTestExporter.php.
◆ __construct()
| ilTestExporter::__construct |
( |
| ) |
|
◆ getDependingTaxonomyIds()
| ilTestExporter::getDependingTaxonomyIds |
( |
array |
$test_obj_ids | ) |
|
|
private |
◆ getValidSchemaVersions()
| ilTestExporter::getValidSchemaVersions |
( |
string |
$a_entity | ) |
|
Returns schema versions that the component can export to.
ILIAS chooses the first one, that has min/max constraints which fit to the target release. Please put the newest on top.
- Parameters
-
- Returns
- array
Definition at line 177 of file class.ilTestExporter.php.
181 'namespace' =>
'http://www.ilias.de/Modules/Test/htlm/4_1',
182 'xsd_file' =>
'ilias_tst_4_1.xsd',
183 'uses_dataset' =>
false,
◆ getXmlExportHeadDependencies()
| ilTestExporter::getXmlExportHeadDependencies |
( |
string |
$entity, |
|
|
string |
$target_release, |
|
|
array |
$ids |
|
) |
| |
Definition at line 84 of file class.ilTestExporter.php.
References $id, and ilObjMediaObject\_getMobsOfObject().
86 if ($entity ===
'tst') {
89 foreach ($ids as
$id) {
92 $intro_page_id = $tst->getMainSettings()->getIntroductionSettings()->getIntroductionPageId();
93 if ($intro_page_id !== null) {
95 $files = array_merge($files, ilObjFile::_getFilesOfObject(
'tst:pg', $intro_page_id));
98 $concluding_remarks_page_id = $tst->getMainSettings()->getFinishingSettings()->getConcludingRemarksPageId();
99 if ($concluding_remarks_page_id !== null) {
101 $files = array_merge($files, ilObjFile::_getFilesOfObject(
'tst:pg', $concluding_remarks_page_id));
107 'component' =>
'Services/MediaObjects',
112 'component' =>
'Modules/File',
119 return parent::getXmlExportTailDependencies($entity, $target_release, $ids);
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
◆ getXmlExportTailDependencies()
| ilTestExporter::getXmlExportTailDependencies |
( |
string |
$a_entity, |
|
|
string |
$a_target_release, |
|
|
array |
$a_ids |
|
) |
| |
- Parameters
-
- Returns
- array<array> array of array with keys 'component', 'entity', 'ids'
Definition at line 126 of file class.ilTestExporter.php.
References getDependingTaxonomyIds().
128 if ($a_entity ==
'tst') {
133 if (count($tax_ids)) {
135 'component' =>
'Services/Taxonomy',
142 'component' =>
'Services/Object',
143 'entity' =>
'common',
150 return parent::getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids);
getDependingTaxonomyIds(array $test_obj_ids)
◆ getXmlRepresentation()
| ilTestExporter::getXmlRepresentation |
( |
string |
$a_entity, |
|
|
string |
$a_schema_version, |
|
|
string |
$id |
|
) |
| |
Definition at line 59 of file class.ilTestExporter.php.
References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
68 $this->component_repository,
71 $test_export = $test_export_factory->getExporter(
'xml');
73 $parameters = $this->
ctrl->getParameterArrayByClass(ilTestExportGUI::class);
74 if (!empty($parameters[
'export_results'])) {
75 $test_export->setResultExportingEnabledForTestExport(
true);
76 $this->
ctrl->clearParameterByClass(ilTestExportGUI::class,
'export_results');
78 $zip = $test_export->buildExportFile();
80 $this->log->write(__METHOD__ .
': Created zip file ' . $zip);
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
◆ init()
◆ $component_repository
◆ $ctrl
◆ $lng
◆ $log
◆ $questioninfo
◆ $tree
The documentation for this class was generated from the following file: