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