ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilLearningSequenceExporter Class Reference
+ 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
 
- Protected Attributes inherited from ilXmlExporter
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

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

63 : array
64 {
65 return [
66 "9.0.0" => [
67 "namespace" => "http://www.ilias.de/Modules/LearningSequence/lso/9_0",
68 "xsd_file" => "ilias_lso_9_0.xsd",
69 "uses_dataset" => false,
70 "min" => "9.0",
71 "max" => ""
72 ]
73 ];
74 }

◆ 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 76 of file class.ilLearningSequenceExporter.php.

76 : array
77 {
78 return [
79 [
80 'component' => 'components/ILIAS/Container',
81 'entity' => 'struct',
82 'ids' => $a_ids
83 ]
84 ];
85 }

◆ 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 90 of file class.ilLearningSequenceExporter.php.

90 : array
91 {
92 $res = [];
93 if ($a_entity == "lso") {
94 // service settings
95 $res[] = [
96 "component" => "components/ILIAS/ILIASObject",
97 "entity" => "common",
98 "ids" => $a_ids
99 ];
100 }
101
102 // container pages
103 foreach ($a_ids as $id) {
104 if (ilContainerPage::_exists(LSOPageType::INTRO->value, (int) $id)) {
105 $res[] = [
106 "component" => "components/ILIAS/COPage",
107 "entity" => "pg",
108 "ids" => [LSOPageType::INTRO->value . ":" . $id]
109 ];
110 }
111
113 $res[] = [
114 "component" => "components/ILIAS/COPage",
115 "entity" => "pg",
116 "ids" => [LSOPageType::EXTRO->value . ":" . $id]
117 ];
118 }
119 }
120
121 return $res;
122 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
@ EXTRO
Definition: LSOPageType.php:24
static _exists(string $a_parent_type, int $a_id, string $a_lang="", bool $a_no_cache=false)
Checks whether page exists.
$res
Definition: ltiservices.php:69

References $id, $res, ilPageObject\_exists(), and EXTRO.

+ Here is the call graph for this function:

◆ getXmlRepresentation()

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

Reimplemented from ilXmlExporter.

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

31 : string
32 {
33 $writer = $this->getWriter((int) $a_id);
34 $writer->start();
35
36 return $writer->getXml();
37 }

◆ init()

ilLearningSequenceExporter::init ( )

Reimplemented from ilXmlExporter.

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

25 : void
26 {
27 global $DIC;
28 $this->settings = $DIC["ilSetting"];
29 }
global $DIC
Definition: shib_login.php:26

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

+ Here is the call graph for this function:

Field Documentation

◆ $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: