19 declare(strict_types=1);
33 public function init(): void
48 foreach ($a_ids as $file_id) {
49 $md_ids[] = $file_id .
":0:file";
54 "component" =>
"components/ILIAS/MetaData",
59 "component" =>
"components/ILIAS/ILIASObject",
77 $file =
new ilObjFile((
int) $a_id,
false);
79 $writer->setFile($file);
80 $writer->setOmitHeader(
true);
84 $xml = $writer->getXml();
92 $path = str_replace(
'\\',
'/', $this->exp->getExportDirInContainer());
93 $segments = explode(
'/',
$path);
94 array_shift($segments);
95 $target_dir_relative = implode(
'/', $segments) .
'/expDir_1';
113 "namespace" =>
"http://www.ilias.de/Modules/File/file/4_1",
114 "xsd_file" =>
"ilias_file_4_1.xsd",
Exporter class for files.
prepareExportDirectories(ilFileXMLWriter $writer)
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
Get xml representation.
static makeDirParents(string $a_dir)
Create a new directory and all parent directories.
getAbsoluteExportDirectory()
static int $CONTENT_ATTACH_COPY
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getValidSchemaVersions(string $a_entity)
Returns schema versions that the component can export to.
getXmlExportTailDependencies(string $a_entity, string $a_target_release, array $a_ids)
Get tail dependencies.
static _lookupType(int $id, bool $reference=false)
setFileTargetDirectories(?string $a_rel, ?string $a_abs)
Set file target directories.