19 declare(strict_types=1);
48 string $a_export_type =
'xml',
51 $ent = ($a_entity ==
"")
55 if ($a_export_type ==
'xml') {
56 return ilFileUtils::getDataDir() .
"/" . $a_obj_type . $ent .
"_data" .
"/" . $a_obj_type .
"_" . $a_obj_id .
"/export";
58 return ilFileUtils::getDataDir() .
"/" . $a_obj_type . $ent .
"_data" .
"/" . $a_obj_type .
"_" . $a_obj_id .
"/export_" . $a_export_type;
63 string $a_schema_version,
67 abstract public function init(): void;
71 $this->exp->setExportDirectories($a_dir_relative, $a_dir_absolute);
76 return $this->exp->getRelativeExportDirectory();
81 return $this->exp->getAbsoluteExportDirectory();
90 string $a_target_release,
102 string $a_target_release,
124 string $a_target_release
128 foreach ($svs as $k => $sv) {
129 $min_version = $sv[
"min"] ??
"";
130 $max_version = $sv[
"max"] ??
"";
136 $rsv[
"schema_version"] = $k;
getRelativeExportDirectory()
determineSchemaVersion(string $a_entity, string $a_target_release)
getXmlExportHeadDependencies(string $a_entity, string $a_target_release, array $a_ids)
Get head dependencies.
setExport(ilExport $a_exp)
static lookupExportDirectory(string $a_obj_type, int $a_obj_id, string $a_export_type='xml', string $a_entity="")
const ILIAS_VERSION_NUMERIC
setExportDirectories(string $a_dir_relative, string $a_dir_absolute)
getAbsoluteExportDirectory()
static getDataDir()
get data directory (outside webspace)
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.
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)