ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilIndividualAssessmentExporter.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
3include_once("./Services/Export/classes/class.ilXmlExporter.php");
4require_once("Modules/IndividualAssessment/classes/class.ilIndividualAssessmentDataSet.php");
5
12
16 public function init() {
17 global $DIC;
18 $this->ds = new ilIndividualAssessmentDataSet();
19 }
20
24 public function getXmlRepresentation($a_entity, $a_schema_version, $a_id) {
26 $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
27
28 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id, '', true, true);
29 }
30
34 public function getValidSchemaVersions($a_entity) {
35 return array (
36 "5.2.0" => array(
37 "namespace" => "http://www.ilias.de/Modules/IndividualAssessment/iass/5_2",
38 "xsd_file" => "ilias_exc_5_2.xsd",
39 "uses_dataset" => true,
40 "min" => "5.2.0",
41 "max" => "")
42 );
43 }
44}
An exception for terminatinating execution or to throw for unit testing.
Individual Assessment dataset class.
static makeDirParents($a_dir)
Create a new directory and all parent directories.
Xml Exporter class.
getAbsoluteExportDirectory()
Get absolute export directory.
getValidSchemaVersions($a_entity)
Returns schema versions that the component can export to.ILIAS chooses the first one,...
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
Get xml representation.string xml string
global $DIC