ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTaxonomyExporter 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 ilTaxonomyExporter:
+ Collaboration diagram for ilTaxonomyExporter:

Public Member Functions

 init ()
 Initialisation. More...
 
 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...
 
 getXmlRepresentation (string $a_entity, string $a_schema_version, string $a_id)
 Get xml representation. More...
 
 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

ilTaxonomyDataSet $ds = null
 

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
string $dir_relative = ""
 
string $dir_absolute = ""
 
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 Export class for taxonomies

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

Definition at line 23 of file class.ilTaxonomyExporter.php.

Member Function Documentation

◆ getValidSchemaVersions()

ilTaxonomyExporter::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.

Parameters
string$a_entity
Returns
array

Definition at line 80 of file class.ilTaxonomyExporter.php.

80  : array
81  {
82  return array(
83  "4.3.0" => array(
84  "namespace" => "http://www.ilias.de/Services/Taxonomy/tax/4_3",
85  "xsd_file" => "ilias_tax_4_3.xsd",
86  "uses_dataset" => true,
87  "min" => "4.3.0",
88  "max" => ""
89  )
90  );
91  }

◆ getXmlExportHeadDependencies()

ilTaxonomyExporter::getXmlExportHeadDependencies ( string  $a_entity,
string  $a_target_release,
array  $a_ids 
)

Get head dependencies.

Parameters
stringentity
stringtarget release
arrayids
Returns
array array of array with keys "component", entity", "ids"

Definition at line 44 of file class.ilTaxonomyExporter.php.

44  : array
45  {
46  return array();
47  }

◆ getXmlExportTailDependencies()

ilTaxonomyExporter::getXmlExportTailDependencies ( string  $a_entity,
string  $a_target_release,
array  $a_ids 
)

Get tail dependencies.

Parameters
stringentity
stringtarget release
arrayids
Returns
array array of array with keys "component", entity", "ids"

Definition at line 56 of file class.ilTaxonomyExporter.php.

56  : array
57  {
58  return array();
59  }

◆ getXmlRepresentation()

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

Get xml representation.

Parameters
stringentity
stringschema version
stringid
Returns
string xml string

Definition at line 68 of file class.ilTaxonomyExporter.php.

68  : string
69  {
70  return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], "", true, true);
71  }

◆ init()

ilTaxonomyExporter::init ( )

Initialisation.

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

30  : void
31  {
32  $this->ds = new ilTaxonomyDataSet();
33  $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
34  $this->ds->setDSPrefix("ds");
35  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

Field Documentation

◆ $ds

ilTaxonomyDataSet ilTaxonomyExporter::$ds = null
private

Definition at line 25 of file class.ilTaxonomyExporter.php.


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