ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilRatingExporter.php
Go to the documentation of this file.
1<?php
2
25{
27
31 public function init(): void
32 {
33 $this->ds = new ilRatingDataSet();
34 $this->ds->initByExporter($this);
35 $this->ds->setDSPrefix("ds");
36 }
37
41 public function getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id): string
42 {
43 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], "", true, true);
44 }
45
53 public function getValidSchemaVersions(string $a_entity): array
54 {
55 return array(
56 "4.3.0" => array(
57 "namespace" => "https://www.ilias.de/Services/Rating/rating_category/4_3",
58 "xsd_file" => "ilias_rating_4_3.xsd",
59 "uses_dataset" => true,
60 "min" => "4.3.0",
61 "max" => "")
62 );
63 }
64}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getValidSchemaVersions(string $a_entity)
Returns schema versions that the component can export to.
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
@inheritDoc
Xml Exporter class.