ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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)
 Get tail dependencies. More...
 
 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

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
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)

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 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 
)

Get tail dependencies.

Returns
array array of array with keys "component", entity", "ids"

Reimplemented from ilXmlExporter.

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

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" => "components/ILIAS/MetaData",
44 "entity" => "md",
45 "ids" => $md_ids
46 ];
47
48 // service settings
49 $deps[] = [
50 "component" => "components/ILIAS/ILIASObject",
51 "entity" => "common",
52 "ids" => $a_ids
53 ];
54
55 return $deps;
56 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

References $id.

◆ getXmlRepresentation()

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

Reimplemented from ilXmlExporter.

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

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

◆ init()

ilHTMLLearningModuleExporter::init ( )

Reimplemented from ilXmlExporter.

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

27 : void
28 {
29 $this->ds = new ilHTMLLearningModuleDataSet();
30 $this->ds->initByExporter($this);
31 $this->ds->setDSPrefix("ds");
32 }
HTML learning module data set class.

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: