ILIAS  release_8 Revision v8.24
class.ilSurveyQuestionPoolExporter.php
Go to the documentation of this file.
1<?php
2
25{
26 public function init(): void
27 {
28 }
29
30 public function getXmlRepresentation(
31 string $a_entity,
32 string $a_schema_version,
33 string $a_id
34 ): string {
35 $spl = new ilObjSurveyQuestionPool($a_id, false);
36 $spl->loadFromDb();
37
38 $spl_exp = new ilSurveyQuestionpoolExport($spl, 'xml');
39 $spl_exp->buildExportFile();
40 return "";
41 }
42
44 string $a_entity,
45 string $a_target_release,
46 array $a_ids
47 ): array {
48 $deps = [];
49
50 // service settings
51 $deps[] = [
52 "component" => "Services/Object",
53 "entity" => "common",
54 "ids" => $a_ids
55 ];
56
57 return $deps;
58 }
59
60 public function getValidSchemaVersions(string $a_entity): array
61 {
62 return array(
63 "4.1.0" => array(
64 "namespace" => "https://www.ilias.de/Modules/SurveyQuestionPool/htlm/4_1",
65 "xsd_file" => "ilias_spl_4_1.xsd",
66 "uses_dataset" => false,
67 "min" => "4.1.0",
68 "max" => "")
69 );
70 }
71}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
getXmlExportTailDependencies(string $a_entity, string $a_target_release, array $a_ids)
Get tail dependencies.
getValidSchemaVersions(string $a_entity)
Returns schema versions that the component can export to.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...