ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilItemGroupExporter 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 ilItemGroupExporter:
+ Collaboration diagram for ilItemGroupExporter:

Public Member Functions

 init ()
 
 getXmlRepresentation (string $a_entity, string $a_schema_version, string $a_id)
 
 getValidSchemaVersions (string $a_entity)
 Returns schema versions that the component can export to. More...
 
- 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)
 

Private Attributes

ilItemGroupDataSet $ds
 

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="")
 
- Protected Attributes inherited from ilXmlExporter
ilExport $exp
 

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 Exporter class for item groups

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 24 of file class.ilItemGroupExporter.php.

Member Function Documentation

◆ getValidSchemaVersions()

ilItemGroupExporter::getValidSchemaVersions ( string  $a_entity)

Returns schema versions that the component can export to.

ILIAS chooses the first one, that has min/max constraints which fit to the target release. Please put the newest on top. Example: return array ( "4.1.0" => array( "namespace" => "http://www.ilias.de/Services/MetaData/md/4_1", "xsd_file" => "ilias_md_4_1.xsd", "min" => "4.1.0", "max" => "") );

Reimplemented from ilXmlExporter.

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

43 : array
44 {
45 return array(
46 "5.3.0" => array(
47 "namespace" => "https://www.ilias.de/Modules/ItemGroup/itgr/5_3",
48 "xsd_file" => "ilias_itgr_5_3.xsd",
49 "uses_dataset" => true,
50 "min" => "5.3.0",
51 "max" => ""),
52 "4.3.0" => array(
53 "namespace" => "https://www.ilias.de/Modules/ItemGroup/itgr/4_3",
54 "xsd_file" => "ilias_itgr_4_3.xsd",
55 "uses_dataset" => true,
56 "min" => "4.3.0",
57 "max" => "")
58 );
59 }

◆ getXmlRepresentation()

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

Reimplemented from ilXmlExporter.

Definition at line 35 of file class.ilItemGroupExporter.php.

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

◆ init()

ilItemGroupExporter::init ( )

Reimplemented from ilXmlExporter.

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

28 : void
29 {
30 $this->ds = new ilItemGroupDataSet();
31 $this->ds->initByExporter($this);
32 $this->ds->setDSPrefix("ds");
33 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

Field Documentation

◆ $ds

ilItemGroupDataSet ilItemGroupExporter::$ds
private

Definition at line 26 of file class.ilItemGroupExporter.php.


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