ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
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 26 of file class.ilPollExporter.php.

Member Function Documentation

◆ getValidSchemaVersions()

ilPollExporter::getValidSchemaVersions ( string  $a_entity)

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

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

◆ getXmlRepresentation()

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

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

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

◆ init()

ilPollExporter::init ( )

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

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

Field Documentation

◆ $ds

ilPollDataSet ilPollExporter::$ds
protected

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


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