ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilSkillExporter 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 ilSkillExporter:
+ Collaboration diagram for ilSkillExporter:

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

ilExportConfig $config
 
- Protected Attributes inherited from ilXmlExporter
string $dir_relative = ""
 
string $dir_absolute = ""
 
ilExport $exp
 

Private Attributes

ilSkillDataSet $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="")
 

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 skills

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e

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

Member Function Documentation

◆ getValidSchemaVersions()

ilSkillExporter::getValidSchemaVersions ( string  $a_entity)

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

56  : array
57  {
58  return array(
59  "8.0" => array(
60  "namespace" => "http://www.ilias.de/Services/Skill/skll/8_0",
61  "xsd_file" => "ilias_skll_8_0.xsd",
62  "uses_dataset" => true,
63  "min" => "8.0",
64  "max" => ""),
65  "7.0" => array(
66  "namespace" => "http://www.ilias.de/Services/Skill/skll/7_0",
67  "xsd_file" => "ilias_skll_7_0.xsd",
68  "uses_dataset" => true,
69  "min" => "7.0",
70  "max" => ""),
71  "5.1.0" => array(
72  "namespace" => "http://www.ilias.de/Services/Skill/skll/5_1",
73  "xsd_file" => "ilias_skll_5_1.xsd",
74  "uses_dataset" => true,
75  "min" => "5.1.0",
76  "max" => "")
77  );
78  }

◆ getXmlRepresentation()

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

Definition at line 48 of file class.ilSkillExporter.php.

48  : string
49  {
50  return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], "", true, true);
51  }

◆ init()

ilSkillExporter::init ( )

Definition at line 33 of file class.ilSkillExporter.php.

References ilXmlExporter\getExport().

33  : void
34  {
35  $this->ds = new ilSkillDataSet();
36  $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
37  $this->ds->setDSPrefix("ds");
38  $this->config = $this->getExport()->getConfig("Services/Skill");
39  $this->ds->setSelectedNodes($this->config->getSelectedNodes());
40  $this->ds->setSelectedProfiles($this->config->getSelectedProfiles());
41  $this->ds->setMode($this->config->getMode());
42  $this->ds->setSkillTreeId($this->config->getSkillTreeId());
43  }
Skill Data set class.
+ Here is the call graph for this function:

Field Documentation

◆ $config

ilExportConfig ilSkillExporter::$config
protected

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

◆ $ds

ilSkillDataSet ilSkillExporter::$ds
private

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


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