ILIAS  release_8 Revision v8.23
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 26 of file class.ilSkillExporter.php.

Member Function Documentation

◆ getValidSchemaVersions()

ilSkillExporter::getValidSchemaVersions ( string  $a_entity)

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

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

◆ getXmlRepresentation()

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

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

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

◆ init()

ilSkillExporter::init ( )

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

References ilXmlExporter\getExport().

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

Field Documentation

◆ $config

ilExportConfig ilSkillExporter::$config
protected

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

◆ $ds

ilSkillDataSet ilSkillExporter::$ds
private

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


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