ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
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  return $spl->toXmlForExport();
38  }
39 
41  string $a_entity,
42  string $a_target_release,
43  array $a_ids
44  ): array {
45  $dependencies = [];
46 
47  // service settings
48  $deps[] = [
49  "component" => "components/ILIAS/ILIASObject",
50  "entity" => "common",
51  "ids" => $a_ids
52  ];
53 
54 
55  $md_ids = [];
56  foreach ($a_ids as $spl_id) {
57  $md_ids[] = $spl_id . ":0:spl";
58  }
59  if ($md_ids !== []) {
60  $dependencies[] = [
61  "component" => "components/ILIAS/MetaData",
62  "entity" => "md",
63  "ids" => $md_ids
64  ];
65  }
66  return $dependencies;
67  }
68 
69  public function getValidSchemaVersions(string $a_entity): array
70  {
71  return array(
72  "4.1.0" => array(
73  "namespace" => "https://www.ilias.de/Modules/SurveyQuestionPool/htlm/4_1",
74  "xsd_file" => "ilias_spl_4_1.xsd",
75  "uses_dataset" => false,
76  "min" => "4.1.0",
77  "max" => "")
78  );
79  }
80 }
Class ilObjSurveyQuestionPool.
getXmlExportTailDependencies(string $a_entity, string $a_target_release, array $a_ids)
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)