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 34 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 191 of file class.ilTestExporter.php.
195 'namespace' =>
'http://www.ilias.de/Modules/Test/htlm/4_1',
196 'xsd_file' =>
'ilias_tst_4_1.xsd',
197 'uses_dataset' =>
false,
◆ getXmlExportHeadDependencies()
ilTestExporter::getXmlExportHeadDependencies |
( |
string |
$entity, |
|
|
string |
$target_release, |
|
|
array |
$ids |
|
) |
| |
Definition at line 84 of file class.ilTestExporter.php.
References $id, ilObjMediaObject\_getMobsOfObject(), and null.
86 if ($entity ===
'tst') {
89 foreach ($ids as
$id) {
93 $intro_page_id = $tst->getMainSettings()->getIntroductionSettings()->getIntroductionPageId();
94 if ($intro_page_id !==
null) {
96 $files = array_merge($files, ilObjFile::_getFilesOfObject(
'tst:pg', $intro_page_id));
99 $concluding_remarks_page_id = $tst->getMainSettings()->getFinishingSettings()->getConcludingRemarksPageId();
100 if ($concluding_remarks_page_id !==
null) {
102 $files = array_merge($files, ilObjFile::_getFilesOfObject(
'tst:pg', $concluding_remarks_page_id));
108 'component' =>
'components/ILIAS/MediaObjects',
113 'component' =>
'components/ILIAS/File',
120 return parent::getXmlExportTailDependencies($entity, $target_release, $ids);
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
$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 127 of file class.ilTestExporter.php.
References $id, and getDependingTaxonomyIds().
129 if ($a_entity ==
'tst') {
134 if (count($tax_ids)) {
136 'component' =>
'components/ILIAS/Taxonomy',
143 'component' =>
'components/ILIAS/ILIASObject',
144 'entity' =>
'common',
150 foreach ($a_ids as
$id) {
151 $md_ids[] = $id .
':0:tst';
153 if ($md_ids !== []) {
155 'component' =>
'components/ILIAS/MetaData',
164 return parent::getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids);
getDependingTaxonomyIds(array $test_obj_ids)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
◆ getXmlRepresentation()
ilTestExporter::getXmlRepresentation |
( |
string |
$a_entity, |
|
|
string |
$a_schema_version, |
|
|
string |
$id |
|
) |
| |
Definition at line 66 of file class.ilTestExporter.php.
References ILIAS\Repository\ctrl(), ilXmlExporter\getAbsoluteExportDirectory(), and ILIAS\Repository\logger().
68 $parameters = $this->
ctrl->getParameterArrayByClass(ilTestExportGUI::class);
69 $export_type = ExportImportTypes::XML;
70 if (!empty($parameters[
'export_results'])) {
71 $export_type = ExportImportTypes::XML_WITH_RESULTS;
72 $this->
ctrl->clearParameterByClass(ilTestExportGUI::class,
'export_results');
76 $zip = $this->export_factory->getExporter($tst, $export_type)
80 $this->
logger->info(__METHOD__ .
': Created zip file ' . $zip);
getAbsoluteExportDirectory()
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
◆ init()
◆ $component_repository
◆ $ctrl
readonly ilCtrl ilTestExporter::$ctrl |
|
private |
◆ $export_factory
readonly ExportImportFactory ilTestExporter::$export_factory |
|
private |
◆ $lng
◆ $logger
◆ $questionrepository
◆ $tree
readonly ilTree ilTestExporter::$tree |
|
private |
The documentation for this class was generated from the following file: