ILIAS  release_8 Revision v8.24
ilLearningSequenceExporter 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 ilLearningSequenceExporter:
+ Collaboration diagram for ilLearningSequenceExporter:

Public Member Functions

 init ()
 
 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...
 
 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.
Returns
array array of array with keys "component", entity", "ids"
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)
 

Protected Attributes

ilSetting $settings
 
ilRbacReview $rbac_review
 
- Protected Attributes inherited from ilXmlExporter
string $dir_relative = ""
 
string $dir_absolute = ""
 
ilExport $exp
 

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

Definition at line 21 of file class.ilLearningSequenceExporter.php.

Member Function Documentation

◆ getValidSchemaVersions()

ilLearningSequenceExporter::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 67 of file class.ilLearningSequenceExporter.php.

67 : array
68 {
69 return array(
70 "5.4.0" => array(
71 "namespace" => "http://www.ilias.de/Modules/LearningSequence/lso/5_4",
72 "xsd_file" => "ilias_lso_5_4.xsd",
73 "uses_dataset" => false,
74 "min" => "5.4.0",
75 "max" => ""
76 )
77 );
78 }

◆ getXmlExportHeadDependencies()

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

Get head dependencies.

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

Reimplemented from ilXmlExporter.

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

80 : array
81 {
82 return array(
83 array(
84 'component' => 'Services/Container',
85 'entity' => 'struct',
86 'ids' => $a_ids
87 )
88 );
89 }

◆ getXmlExportTailDependencies()

ilLearningSequenceExporter::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 94 of file class.ilLearningSequenceExporter.php.

94 : array
95 {
96 $res = [];
97
98 if ($a_entity == "lso") {
99 // service settings
100 $res[] = array(
101 "component" => "Services/Object",
102 "entity" => "common",
103 "ids" => $a_ids
104 );
105 }
106
107 return $res;
108 }
$res
Definition: ltiservices.php:69

References $res.

◆ getXmlRepresentation()

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

Reimplemented from ilXmlExporter.

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

34 : string
35 {
36 $writer = $this->getWriter((int) $a_id);
37 $writer->start();
38
39 return $writer->getXml();
40 }

◆ init()

ilLearningSequenceExporter::init ( )

Reimplemented from ilXmlExporter.

Definition at line 26 of file class.ilLearningSequenceExporter.php.

26 : void
27 {
28 global $DIC;
29
30 $this->settings = $DIC["ilSetting"];
31 $this->rbac_review = $DIC["rbacreview"];
32 }
global $DIC
Definition: feed.php:28

References $DIC, and ILIAS\Repository\settings().

+ Here is the call graph for this function:

Field Documentation

◆ $rbac_review

ilRbacReview ilLearningSequenceExporter::$rbac_review
protected

Definition at line 24 of file class.ilLearningSequenceExporter.php.

◆ $settings

ilSetting ilLearningSequenceExporter::$settings
protected

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


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