ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 */
3 include_once("./Services/Export/classes/class.ilXmlExporter.php");
4 require_once("Modules/IndividualAssessment/classes/class.ilIndividualAssessmentDataSet.php");
5 
12 {
13 
17  public function init()
18  {
19  $this->ds = new ilIndividualAssessmentDataSet();
20  }
21 
25  public function getXmlRepresentation($a_entity, $a_schema_version, $a_id)
26  {
28  $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
29 
30  return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id, '', true, true);
31  }
32 
36  public function getValidSchemaVersions($a_entity)
37  {
38  return array(
39  "5.2.0" => array(
40  "namespace" => "http://www.ilias.de/Services/User/iass/5_2",
41  "xsd_file" => "ilias_iass_5_2.xsd",
42  "uses_dataset" => true,
43  "min" => "5.2.0",
44  "max" => "5.2.99"),
45  "5.3.0" => array(
46  "namespace" => "http://www.ilias.de/Services/User/iass/5_3",
47  "xsd_file" => "ilias_iass_5_3.xsd",
48  "uses_dataset" => true,
49  "min" => "5.3.0",
50  "max" => "")
51  );
52  }
53 }
static makeDirParents($a_dir)
Create a new directory and all parent directories.
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
Individual Assessment dataset class.
Xml Exporter class.
getAbsoluteExportDirectory()
Get absolute export directory.
Create styles array
The data for the language used.