Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion components/ILIAS/CmiXapi/classes/class.ilCmiXapiExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ public function getXmlExportTailDependencies(
"ids" => $md_ids
];
}

$dependencies[] = [
"component" => "components/ILIAS/Tracking",
"entity" => "lpsettings",
"ids" => $a_ids
];
return $dependencies;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public function importXmlRepresentation(string $a_entity, string $a_id, string $
$this->prepareLocalSourceStorage();
$this->parseXmlFileProperties();
$this->updateNewObj();
$a_mapping->addMapping("components/ILIAS/Tracking", "obj", $a_id, (string) $this->_cmixObj->getId());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ public function getXmlExportHeadDependencies(string $a_entity, string $a_target_
return [];
}

public function getXmlExportTailDependencies(string $a_entity, string $a_target_release, array $a_ids): array
{
$dependencies[] = [
"component" => "components/ILIAS/Tracking",
"entity" => "lpsettings",
"ids" => $a_ids
];
return $dependencies;
}

abstract protected function initWriter(ilContainerReference $ref): ilContainerReferenceXmlWriter;

public function getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id): string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ public function importXmlRepresentation(
$a_id,
(string) $this->getReference()->getId()
);
$a_mapping->addMapping(
"components/ILIAS/Tracking",
"obj",
$a_id,
(string) $this->getReference()->getId()
);
} catch (ilSaxParserException | Exception $e) {
$log->error(__METHOD__ . ': Parsing failed with message, "' . $e->getMessage() . '".');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,12 @@ public function importRecord(
$a_rec['id'] . ':0:' . self::OBJ_TYPE,
$newObject->getId() . ':0:' . self::OBJ_TYPE
);
$a_mapping->addMapping(
"components/ILIAS/Tracking",
"obj",
$a_rec['id'],
(string) $newObject->getId()
);
$a_mapping->addMapping(
"components/ILIAS/ILIASObject",
"obj",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ public function getXmlExportTailDependencies(string $a_entity, string $a_target_
];
}

$deps[] = [
"component" => "components/ILIAS/Tracking",
"entity" => "lpsettings",
"ids" => $a_ids
];

return $deps;
}
}
5 changes: 5 additions & 0 deletions components/ILIAS/Course/classes/class.ilCourseExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ public function getXmlExportTailDependencies(string $a_entity, string $a_target_
"ids" => $md_ids
];
}
$dependencies[] = [
"component" => "components/ILIAS/Tracking",
"entity" => "lpsettings",
"ids" => $a_ids
];
return $dependencies;
}

Expand Down
6 changes: 6 additions & 0 deletions components/ILIAS/Course/classes/class.ilCourseImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ public function importXmlRepresentation(
$a_id . ':0:crs',
$this->course->getId() . ':0:crs'
);
$a_mapping->addMapping(
"components/ILIAS/Tracking",
"obj",
$a_id,
(string) $this->course->getId()
);
} catch (ilSaxParserException|Exception $e) {
$this->logger->error('Parsing failed with message, "' . $e->getMessage() . '".');
}
Expand Down
6 changes: 6 additions & 0 deletions components/ILIAS/Exercise/classes/class.ilExerciseDataSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,12 @@ public function importRecord(
$a_rec["Id"] . ":0:exc",
$newObj->getId() . ":0:exc"
);
$a_mapping->addMapping(
"components/ILIAS/Tracking",
"obj",
(string) $a_rec["Id"],
(string) $newObj->getId()
);
break;

case "exc_assignment":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ public function getXmlExportTailDependencies(string $a_entity, string $a_target_
);
}

$deps[] = [
"component" => "components/ILIAS/Tracking",
"entity" => "lpsettings",
"ids" => $a_ids
];

return $deps;
}

Expand Down
5 changes: 5 additions & 0 deletions components/ILIAS/File/classes/class.ilFileExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ public function getXmlExportTailDependencies(string $a_entity, string $a_target_
"component" => "components/ILIAS/ILIASObject",
"entity" => "common",
"ids" => $a_ids
],
[
"component" => "components/ILIAS/Tracking",
"entity" => "lpsettings",
"ids" => $a_ids
]
];
}
Expand Down
6 changes: 6 additions & 0 deletions components/ILIAS/File/classes/class.ilFileImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,11 @@ public function importXmlRepresentation(
$a_id . ":0:file",
$newObj->getId() . ":0:file"
);
$a_mapping->addMapping(
"components/ILIAS/Tracking",
"obj",
$a_id,
(string) $newObj->getId()
);
}
}
11 changes: 11 additions & 0 deletions components/ILIAS/Folder/classes/class.ilFolderExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ public function init(): void
{
}

public function getXmlExportTailDependencies(string $a_entity, string $a_target_release, array $a_ids): array
{
return [
[
"component" => "components/ILIAS/Tracking",
"entity" => "lpsettings",
"ids" => $a_ids
]
];
}

public function getXmlExportHeadDependencies(string $a_entity, string $a_target_release, array $a_ids): array
{
// always trigger container because of co-page(s)
Expand Down
6 changes: 6 additions & 0 deletions components/ILIAS/Folder/classes/class.ilFolderImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ public function importXmlRepresentation(string $a_entity, string $a_id, string $
$parser = new ilFolderXmlParser($this->folder, $a_xml);
$parser->start();
$a_mapping->addMapping('components/ILIAS/Folder', 'fold', $a_id, (string) $this->folder->getId());
$a_mapping->addMapping(
"components/ILIAS/Tracking",
"obj",
$a_id,
(string) $this->folder->getId()
);
} catch (ilSaxParserException $e) {
$GLOBALS['ilLog']->write(__METHOD__ . ': Parsing failed with message, "' . $e->getMessage() . '".');
}
Expand Down
6 changes: 6 additions & 0 deletions components/ILIAS/Forum/classes/class.ilForumExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ public function getXmlExportTailDependencies(string $a_entity, string $a_target_
];
}

$deps[] = [
"component" => "components/ILIAS/Tracking",
"entity" => "lpsettings",
"ids" => $a_ids
];

return $deps;
}

Expand Down
6 changes: 6 additions & 0 deletions components/ILIAS/Forum/classes/class.ilForumImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ public function importXmlRepresentation(string $a_entity, string $a_id, string $
$parser->startParsing();

$a_mapping->addMapping('components/ILIAS/Forum', 'frm', $a_id, (string) $newObj->getId());
$a_mapping->addMapping(
"components/ILIAS/Tracking",
"obj",
$a_id,
(string) $newObj->getId()
);
}

public function finalProcessing(ilImportMapping $a_mapping): void
Expand Down
7 changes: 6 additions & 1 deletion components/ILIAS/Group/classes/class.ilGroupImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,12 @@ public function importXmlRepresentation(
$a_id . ':0:grp',
$this->group->getId() . ':0:grp'
);

$a_mapping->addMapping(
"components/ILIAS/Tracking",
"obj",
$a_id,
(string) $this->group->getId()
);
} catch (ilSaxParserException | ilWebLinkXmlParserException $e) {
$GLOBALS['DIC']->logger()->grp()->warning('Parsing failed with message, "' . $e->getMessage() . '".');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@ public function importRecord(string $a_entity, array $a_types, array $a_rec, ilI
$a_rec["Id"] . ":0:htlm",
$newObj->getId() . ":0:htlm"
);
$a_mapping->addMapping(
"components/ILIAS/Tracking",
"obj",
(string) $a_rec["Id"],
(string) $newObj->getId()
);
break;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ public function getXmlExportTailDependencies(string $a_entity, string $a_target_
"ids" => $a_ids
];

$deps[] = [
"component" => "components/ILIAS/Tracking",
"entity" => "lpsettings",
"ids" => $a_ids
];
return $deps;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,12 @@ public function importRecord(
$newObj->update();
$newObj->updateInfo();
$a_mapping->addMapping("components/ILIAS/IndividualAssessment", "iass", $a_rec["id"], (string) $newObj->getId());
$a_mapping->addMapping(
"components/ILIAS/Tracking",
"obj",
(string) $a_rec["id"],
(string) $newObj->getId()
);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,12 @@ public function getXmlExportTailDependencies(string $a_entity, string $a_target_
"entity" => "common",
"ids" => $a_ids
];
$res[] = [
"component" => "components/ILIAS/Tracking",
"entity" => "lpsettings",
"ids" => $a_ids
];
}

return $res;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ public function test_getXmlExportTailDependencies_iass(): void
"entity" => "common",
"ids" => [12,13]
];
$expected[] = [
"component" => "components/ILIAS/Tracking",
"entity" => "lpsettings",
"ids" => [12,13]
];

$obj = new ilIndividualAssessmentExporter();
$result = $obj->getXmlExportTailDependencies("iass", "", [12,13]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ public function getXmlExportTailDependencies(
"ids" => $style_id
);
}
$deps[] = [
"component" => "components/ILIAS/Tracking",
"entity" => "lpsettings",
"ids" => $a_ids
];
}

return $deps;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,12 @@ public function importRecord(
$a_rec["Id"] . ":0:lm",
$newObj->getId() . ":0:lm"
);
$a_mapping->addMapping(
"components/ILIAS/Tracking",
"obj",
(string) $a_rec["Id"],
(string) $newObj->getId()
);
break;

case "lm_tree":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ public function getXmlExportTailDependencies(string $a_entity, string $a_target_
}
}

$res[] = [
"component" => "components/ILIAS/Tracking",
"entity" => "lpsettings",
"ids" => $a_ids
];

return $res;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ public function importXmlRepresentation(string $a_entity, string $a_id, string $
"lso:obj:" . $a_id,
(string) $this->obj->getId()
);
$a_mapping->addMapping(
"components/ILIAS/Tracking",
"obj",
(string) $a_id,
(string) $this->obj->getId()
);
}

public function finalProcessing(ilImportMapping $a_mapping): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,12 @@ public function importRecord(
$a_rec["Id"] . ":0:mcst",
$newObj->getId() . ":0:mcst"
);
$a_mapping->addMapping(
"components/ILIAS/Tracking",
"obj",
(string) $a_rec["Id"],
(string) $newObj->getId()
);
break;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ public function getXmlExportTailDependencies(
"ids" => $a_ids
];

$deps[] = [
"component" => "components/ILIAS/Tracking",
"entity" => "lpsettings",
"ids" => $a_ids
];

return $deps;
}
Expand Down
6 changes: 6 additions & 0 deletions components/ILIAS/Session/classes/class.ilSessionDataSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,12 @@ public function importRecord(string $a_entity, array $a_types, array $a_rec, ilI
$a_rec["Id"] . ":0:sess",
$newObj->getId() . ":0:sess"
);
$a_mapping->addMapping(
"components/ILIAS/Tracking",
"obj",
(string) $a_rec["Id"],
(string) $newObj->getId()
);
break;

case "sess_item":
Expand Down
5 changes: 5 additions & 0 deletions components/ILIAS/Session/classes/class.ilSessionExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ public function getXmlExportTailDependencies(string $a_entity, string $a_target_
"entity" => "tile",
"ids" => $a_ids);

$deps[] = [
"component" => "components/ILIAS/Tracking",
"entity" => "lpsettings",
"ids" => $a_ids
];
return $deps;
}

Expand Down
Loading
Loading