Used for container export with tests.
More...
|
| | init () |
| |
| | getXmlRepresentation (string $a_entity, string $a_schema_version, string $a_id) |
| |
| | getXmlExportTailDependencies (string $a_entity, string $a_target_release, array $a_ids) |
| |
| | getValidSchemaVersions (string $a_entity) |
| |
| | __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) |
| |
|
| static | lookupExportDirectory (string $a_obj_type, int $a_obj_id, string $a_export_type='xml', string $a_entity="") |
| |
Used for container export with tests.
- Author
- Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Definition at line 26 of file class.ilSurveyExporter.php.
◆ getValidSchemaVersions()
| ilSurveyExporter::getValidSchemaVersions |
( |
string |
$a_entity | ) |
|
Definition at line 96 of file class.ilSurveyExporter.php.
99 if ($a_entity ===
"svy") {
102 "namespace" =>
"https://www.ilias.de/Modules/Survey/htlm/4_1",
103 "xsd_file" =>
"ilias_svy_4_1.xsd",
104 "uses_dataset" =>
false,
111 "namespace" =>
"https://www.ilias.de/Modules/Survey/svy/5_1",
112 "xsd_file" =>
"ilias_svy_5_1.xsd",
113 "uses_dataset" =>
true,
◆ getXmlExportTailDependencies()
| ilSurveyExporter::getXmlExportTailDependencies |
( |
string |
$a_entity, |
|
|
string |
$a_target_release, |
|
|
array |
$a_ids |
|
) |
| |
Definition at line 72 of file class.ilSurveyExporter.php.
77 if ($a_entity ===
"svy") {
80 "component" =>
"Modules/Survey",
81 "entity" =>
"svy_quest_skill",
84 "component" =>
"Modules/Survey",
85 "entity" =>
"svy_skill_threshold",
88 "component" =>
"Services/Object",
◆ getXmlRepresentation()
| ilSurveyExporter::getXmlRepresentation |
( |
string |
$a_entity, |
|
|
string |
$a_schema_version, |
|
|
string |
$a_id |
|
) |
| |
Definition at line 41 of file class.ilSurveyExporter.php.
References $GLOBALS, and ilFileUtils\makeDirParents().
46 if ($a_entity ===
"svy") {
51 $zip = $svy_exp->buildExportFile();
54 $this->domain->resources()->zip()->unzipFile($zip);
58 $missing = $svy_exp->export_dir .
"/" . $svy_exp->subdir .
59 "/Modules/Survey/set_1";
65 $GLOBALS[
'ilLog']->write(__METHOD__ .
': Created zip file ' . $zip);
68 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id],
"",
true,
true);
static makeDirParents(string $a_dir)
Create a new directory and all parent directories.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ init()
| ilSurveyExporter::init |
( |
| ) |
|
Definition at line 31 of file class.ilSurveyExporter.php.
References $DIC.
35 $this->domain = $DIC->survey()->internal()->domain();
37 $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
38 $this->ds->setDSPrefix(
"ds");
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ $domain
◆ $ds
The documentation for this class was generated from the following file: