ILIAS  trunk Revision v11.0_alpha-1861-g09f3d197f78
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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)
 
 getXmlExportHeadDependencies (string $a_entity, string $a_target_release, array $a_ids)
 
 getXmlExportTailDependencies (string $a_entity, string $a_target_release, array $a_ids)
 
- 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)

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 
)

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 
)

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

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

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 
112  if (ilContainerPage::_exists(LSOPageType::EXTRO->value, (int) $id)) {
113  $res[] = [
114  "component" => "components/ILIAS/COPage",
115  "entity" => "pg",
116  "ids" => [LSOPageType::EXTRO->value . ":" . $id]
117  ];
118  }
119  }
120 
121  return $res;
122  }
$res
Definition: ltiservices.php:66
static _exists(string $a_parent_type, int $a_id, string $a_lang="", bool $a_no_cache=false)
Checks whether page exists.
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
+ Here is the call graph for this function:

◆ getXmlRepresentation()

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

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

References ilObject\_getAllReferences(), ilObject\_lookupType(), ilObjectFactory\getInstanceByRefId(), and ILIAS\Repository\settings().

31  : string
32  {
33  $writer = $this->getWriter((int) $a_id);
34  $writer->start();
35 
36  return $writer->getXml();
37  }
+ Here is the call graph for this function:

◆ init()

ilLearningSequenceExporter::init ( )

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

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

25  : void
26  {
27  global $DIC;
28  $this->settings = $DIC["ilSetting"];
29  }
global $DIC
Definition: shib_login.php:22
+ 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: