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

Public Member Functions

 init ()
 
 getXmlExportTailDependencies (string $a_entity, string $a_target_release, array $a_ids)
 
 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)
 

Private Attributes

ilHTMLLearningModuleDataSet $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
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 Exporter class for html learning modules

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

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

Member Function Documentation

◆ getValidSchemaVersions()

ilHTMLLearningModuleExporter::getValidSchemaVersions ( string  $a_entity)

Definition at line 64 of file class.ilHTMLLearningModuleExporter.php.

64  : array
65  {
66  return array(
67  "4.1.0" => array(
68  "namespace" => "https://www.ilias.de/Modules/HTMLLearningModule/htlm/4_1",
69  "xsd_file" => "ilias_htlm_4_1.xsd",
70  "uses_dataset" => true,
71  "min" => "4.1.0",
72  "max" => "")
73  );
74  }

◆ getXmlExportTailDependencies()

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

Definition at line 34 of file class.ilHTMLLearningModuleExporter.php.

References $id.

34  : array
35  {
36  $deps = [];
37  $md_ids = [];
38  foreach ($a_ids as $id) {
39  $md_ids[] = $id . ":0:htlm";
40  }
41 
42  $deps[] = [
43  "component" => "Services/MetaData",
44  "entity" => "md",
45  "ids" => $md_ids
46  ];
47 
48  // service settings
49  $deps[] = [
50  "component" => "Services/Object",
51  "entity" => "common",
52  "ids" => $a_ids
53  ];
54 
55  return $deps;
56  }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

◆ getXmlRepresentation()

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

Definition at line 58 of file class.ilHTMLLearningModuleExporter.php.

58  : string
59  {
60  $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
61  return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], "", true, true);
62  }

◆ init()

ilHTMLLearningModuleExporter::init ( )

Definition at line 27 of file class.ilHTMLLearningModuleExporter.php.

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

Field Documentation

◆ $ds

ilHTMLLearningModuleDataSet ilHTMLLearningModuleExporter::$ds
private

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


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