ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ilPollExporter Class Reference

Poll export definition. More...

+ Inheritance diagram for ilPollExporter:
+ Collaboration diagram for ilPollExporter:

Public Member Functions

 init ()
 
 getXmlRepresentation (string $a_entity, string $a_schema_version, string $a_id)
 
 getValidSchemaVersions (string $a_entity)
 
- Public Member Functions inherited from ilXmlExporter
 __construct ()
 
 setExport (ilExport $a_exp)
 
 getExport ()
 
 getXmlRepresentation (string $a_entity, string $a_schema_version, string $a_id)
 
 init ()
 
 setExportDirectories (string $a_dir_relative, string $a_dir_absolute)
 
 getRelativeExportDirectory ()
 
 getAbsoluteExportDirectory ()
 
 getXmlExportHeadDependencies (string $a_entity, string $a_target_release, array $a_ids)
 Get head dependencies. More...
 
 getXmlExportTailDependencies (string $a_entity, string $a_target_release, array $a_ids)
 Get tail dependencies. More...
 
 getValidSchemaVersions (string $a_entity)
 Returns schema versions that the component can export to. More...
 
 determineSchemaVersion (string $a_entity, string $a_target_release)
 

Protected Attributes

ilPollDataSet $ds
 
- Protected Attributes inherited from ilXmlExporter
ilExport $exp
 

Additional Inherited Members

- Static Public Member Functions inherited from ilXmlExporter
static lookupExportDirectory (string $a_obj_type, int $a_obj_id, string $a_export_type='xml', string $a_entity="")
 

Detailed Description

Poll export definition.

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

Definition at line 27 of file class.ilPollExporter.php.

Member Function Documentation

◆ getValidSchemaVersions()

ilPollExporter::getValidSchemaVersions ( string  $a_entity)

Definition at line 43 of file class.ilPollExporter.php.

43  : 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  }

◆ getXmlRepresentation()

ilPollExporter::getXmlRepresentation ( string  $a_entity,
string  $a_schema_version,
string  $a_id 
)

Definition at line 37 of file class.ilPollExporter.php.

37  : string
38  {
39  $this->ds->initByExporter($this);
40  return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], "", true, true);
41  }

◆ init()

ilPollExporter::init ( )

Definition at line 31 of file class.ilPollExporter.php.

31  : void
32  {
33  $this->ds = new ilPollDataSet();
34  $this->ds->setDSPrefix("ds");
35  }
Poll Dataset class.

Field Documentation

◆ $ds

ilPollDataSet ilPollExporter::$ds
protected

Definition at line 29 of file class.ilPollExporter.php.


The documentation for this class was generated from the following file: