ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
class.ilPollExporter.php
Go to the documentation of this file.
1
<?php
2
20
declare(strict_types=1);
21
27
class
ilPollExporter
extends
ilXmlExporter
28
{
29
protected
ilPollDataSet
$ds
;
30
31
public
function
init
(): void
32
{
33
$this->ds =
new
ilPollDataSet
();
34
$this->ds->setDSPrefix(
"ds"
);
35
}
36
37
public
function
getXmlRepresentation
(
string
$a_entity,
string
$a_schema_version,
string
$a_id): string
38
{
39
$this->ds->initByExporter($this);
40
return
$this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id],
""
,
true
,
true
);
41
}
42
43
public
function
getValidSchemaVersions
(
string
$a_entity): array
44
{
45
return
[
46
"10.0"
=> [
47
"namespace"
=>
"http://www.ilias.de/Services/Modules/Poll/10_0"
,
48
"xsd_file"
=>
"ilias_poll_10_0.xsd"
,
49
"uses_dataset"
=>
true
,
50
"min"
=>
"10.0"
,
51
"max"
=>
""
52
],
53
"5.0.0"
=> [
54
"namespace"
=>
"http://www.ilias.de/Services/Modules/Poll/5_0"
,
55
"xsd_file"
=>
"ilias_poll_5_0.xsd"
,
56
"uses_dataset"
=>
true
,
57
"min"
=>
"5.0.0"
,
58
"max"
=>
"9.99"
59
],
60
"4.3.0"
=> [
61
"namespace"
=>
"http://www.ilias.de/Services/Modules/Poll/4_3"
,
62
"xsd_file"
=>
"ilias_poll_4_3.xsd"
,
63
"uses_dataset"
=>
true
,
64
"min"
=>
"4.3.0"
,
65
"max"
=>
"4.4.99"
66
]
67
];
68
}
69
}
ilXmlExporter
ilPollExporter\getValidSchemaVersions
getValidSchemaVersions(string $a_entity)
Definition:
class.ilPollExporter.php:43
ilPollExporter\getXmlRepresentation
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
Definition:
class.ilPollExporter.php:37
ilPollExporter
Poll export definition.
Definition:
class.ilPollExporter.php:27
ilPollExporter\$ds
ilPollDataSet $ds
Definition:
class.ilPollExporter.php:29
ilPollExporter\init
init()
Definition:
class.ilPollExporter.php:31
ilPollDataSet
Poll Dataset class.
Definition:
class.ilPollDataSet.php:35
components
ILIAS
Poll
classes
class.ilPollExporter.php
Generated on Wed Sep 10 2025 15:16:08 for ILIAS by
1.8.13 (using
Doxyfile
)