ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
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 "8.0" => array(
51 "namespace" => "http://www.ilias.de/Services/Style/8",
52 "xsd_file" => "ilias_style_8.xsd",
53 "uses_dataset" => true,
54 "min" => "8.0",
55 "max" => "9.99"),
56 "5.1.0" => array(
57 "namespace" => "http://www.ilias.de/Services/Style/5_1",
58 "xsd_file" => "ilias_style_5_1.xsd",
59 "uses_dataset" => true,
60 "min" => "5.1.0",
61 "max" => "7.99")
62 );
63 }
64}
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.