28 public function init(): void
31 $this->ds->setDSPrefix(
"ds");
32 $this->config = $this->
getImport()->getConfig(
"components/ILIAS/Glossary");
41 if ($a_entity ==
"glo") {
43 if ($new_id = $a_mapping->
getMapping(
'components/ILIAS/Container',
'objs', $a_id)) {
50 $GLOBALS[
'ilLog']->write(__METHOD__ .
': Using XML file ' . $xml_file);
53 if (file_exists($xml_file)) {
76 foreach ($maps as $old => $new) {
77 if ($old !=
"new_id" && (
int) $old > 0) {
79 $new_tax_ids = $a_mapping->
getMapping(
"components/ILIAS/Taxonomy",
"tax_usage_of_obj", $old);
80 if (!is_null($new_tax_ids)) {
81 $tax_ids = explode(
":", $new_tax_ids);
82 foreach ($tax_ids as $tid) {
90 foreach ($advmdco as
$id => $order) {
92 $field_glo_id =
$id[0];
94 if ($field_glo_id == $old) {
96 $new_local_id = $a_mapping->
getMapping(
"components/ILIAS/AdvancedMetaData",
"lfld", $field_id);
98 $field_id = $new_local_id;
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
finalProcessing(ilImportMapping $a_mapping)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getMapping(string $a_comp, string $a_entity, string $a_old_id)
getMappingsOfEntity(string $a_comp, string $a_entity)
exportedFromSameInstallation()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Import configuration class parent class.
static saveUsage(int $a_tax_id, int $a_obj_id)
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
importXmlRepresentation(string $a_entity, string $a_id, string $a_xml, ilImportMapping $a_mapping)