ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilStyleExporter.php
Go to the documentation of this file.
1<?php
2
25{
27
28 public function init(): void
29 {
30 $this->ds = new ilStyleDataSet();
31 $this->ds->initByExporter($this);
32 $this->ds->setDSPrefix("ds");
33 }
34
35 public function getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id): string
36 {
38 $this->ds->initByExporter($this);
39 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], "", true, true);
40 }
41
42 public function getValidSchemaVersions(string $a_entity): array
43 {
44 return array(
45 "10.0" => array(
46 "namespace" => "http://www.ilias.de/Services/Style/10_0",
47 "xsd_file" => "ilias_style_10.xsd",
48 "uses_dataset" => true,
49 "min" => "10.0",
50 "max" => "10.99"),
51 "8.0" => array(
52 "namespace" => "http://www.ilias.de/Services/Style/8",
53 "xsd_file" => "ilias_style_8.xsd",
54 "uses_dataset" => true,
55 "min" => "8.0",
56 "max" => "9.99"),
57 "5.1.0" => array(
58 "namespace" => "http://www.ilias.de/Services/Style/5_1",
59 "xsd_file" => "ilias_style_5_1.xsd",
60 "uses_dataset" => true,
61 "min" => "5.1.0",
62 "max" => "7.99")
63 );
64 }
65}
static makeDirParents(string $a_dir)
Create a new directory and all parent directories.
Style Data set class.
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)
getValidSchemaVersions(string $a_entity)
Returns schema versions that the component can export to.
Xml Exporter class.