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

Public Member Functions

 init ()
 
 getXmlExportHeadDependencies (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)
 

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 Folder export

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

Definition at line 22 of file class.ilFolderExporter.php.

Member Function Documentation

◆ getValidSchemaVersions()

ilFolderExporter::getValidSchemaVersions ( string  $a_entity)

Definition at line 54 of file class.ilFolderExporter.php.

54  : array
55  {
56  return [
57  "4.1.0" => [
58  "namespace" => "https://www.ilias.de/Modules/Folder/fold/4_1",
59  "xsd_file" => "ilias_fold_4_1.xsd",
60  "uses_dataset" => false,
61  "min" => "4.1.0",
62  "max" => ""
63  ]
64  ];
65  }

◆ getXmlExportHeadDependencies()

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

Definition at line 28 of file class.ilFolderExporter.php.

28  : array
29  {
30  // always trigger container because of co-page(s)
31  return [
32  [
33  'component' => 'Services/Container',
34  'entity' => 'struct',
35  'ids' => $a_ids
36  ]
37  ];
38  }

◆ getXmlRepresentation()

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

Definition at line 40 of file class.ilFolderExporter.php.

References Vendor\Package\$e, and $GLOBALS.

40  : string
41  {
42  try {
43  $writer = null;
44  $writer = new ilFolderXmlWriter(false);
45  $writer->setObjId((int) $a_id);
46  $writer->write();
47  return $writer->xmlDumpMem(false);
48  } catch (UnexpectedValueException $e) {
49  $GLOBALS['ilLog']->write("Caught error: " . $e->getMessage());
50  return '';
51  }
52  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64

◆ init()

ilFolderExporter::init ( )

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

24  : void
25  {
26  }

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