ILIAS  release_8 Revision v8.24
class.ilIndividualAssessmentExporter.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
25{
27
31 public function init(): void
32 {
33 $this->ds = new ilIndividualAssessmentDataSet();
34 }
35
39 public function getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id): string
40 {
42 $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
43
44 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], '', true, true);
45 }
46
50 public function getXmlExportTailDependencies(string $a_entity, string $a_target_release, array $a_ids): array
51 {
52 $res = [];
53
54 if ($a_entity == "iass") {
55 // service settings
56 $res[] = [
57 "component" => "Services/Object",
58 "entity" => "common",
59 "ids" => $a_ids
60 ];
61 }
62
63 return $res;
64 }
65
69 public function getValidSchemaVersions(string $a_entity): array
70 {
71 return [
72 "5.2.0" => [
73 "namespace" => "http://www.ilias.de/Services/User/iass/5_2",
74 "xsd_file" => "ilias_iass_5_2.xsd",
75 "uses_dataset" => true,
76 "min" => "5.2.0",
77 "max" => "5.2.99"
78 ],
79 "5.3.0" => [
80 "namespace" => "http://www.ilias.de/Services/User/iass/5_3",
81 "xsd_file" => "ilias_iass_5_3.xsd",
82 "uses_dataset" => true,
83 "min" => "5.3.0",
84 "max" => ""
85 ]
86 ];
87 }
88}
static makeDirParents(string $a_dir)
Create a new directory and all parent directories.
Individual Assessment dataset class.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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,...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$res
Definition: ltiservices.php:69