ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilPollExporter Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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
string $dir_relative = ""
 
string $dir_absolute = ""
 
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

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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 array(
46  "4.3.0" => array(
47  "namespace" => "http://www.ilias.de/Services/Modules/Poll/4_3",
48  "xsd_file" => "ilias_poll_4_3.xsd",
49  "uses_dataset" => true,
50  "min" => "4.3.0",
51  "max" => "4.4.99"),
52  "5.0.0" => array(
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" => "")
58  );
59  }

◆ 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->setExportDirectories($this->dir_relative, $this->dir_absolute);
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: