ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilIndividualAssessmentExporter.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
25{
27
31 public function init(): void
32 {
33 $this->ds = new ilIndividualAssessmentDataSet();
34 $this->ds->setDSPrefix("ds");
35 }
36
40 public function getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id): string
41 {
43 $this->ds->initByExporter($this);
44
45 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], '', true, true);
46 }
47
51 public function getXmlExportTailDependencies(string $a_entity, string $a_target_release, array $a_ids): array
52 {
53 $res = [];
54
55 if ($a_entity == "iass") {
56 // service settings
57 $res[] = [
58 "component" => "components/ILIAS/ILIASObject",
59 "entity" => "common",
60 "ids" => $a_ids
61 ];
62 }
63
64 return $res;
65 }
66
70 public function getValidSchemaVersions(string $a_entity): array
71 {
72 return [
73 "5.2.0" => [
74 "namespace" => "http://www.ilias.de/Services/User/iass/5_2",
75 "xsd_file" => "ilias_iass_5_2.xsd",
76 "uses_dataset" => true,
77 "min" => "5.2.0",
78 "max" => "5.2.99"
79 ],
80 "5.3.0" => [
81 "namespace" => "http://www.ilias.de/Services/User/iass/5_3",
82 "xsd_file" => "ilias_iass_5_3.xsd",
83 "uses_dataset" => true,
84 "min" => "5.3.0",
85 "max" => "8"
86 ],
87 "9.0" => [
88 "namespace" => "http://www.ilias.de/xml/Modules/IndividualAssessment/iass",
89 "xsd_file" => "ilias_iass_9_0.xsd",
90 "uses_dataset" => true,
91 "min" => "9.0",
92 "max" => ""
93 ]
94 ];
95 }
96}
static makeDirParents(string $a_dir)
Create a new directory and all parent directories.
Individual Assessment dataset class.
getXmlExportTailDependencies(string $a_entity, string $a_target_release, array $a_ids)
Get tail dependencies.array array of array with keys "component", entity", "ids"
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
getValidSchemaVersions(string $a_entity)
Returns schema versions that the component can export to.ILIAS chooses the first one,...
Xml Exporter class.
$res
Definition: ltiservices.php:69