28 public function init(): void
31 $this->ds->setDSPrefix(
"ds");
32 $this->config = $this->
getImport()->getConfig(
"Modules/Glossary");
41 if ($a_entity ==
"glo") {
43 if ($new_id = $a_mapping->
getMapping(
'Services/Container',
'objs', $a_id)) {
50 $GLOBALS[
'ilLog']->write(__METHOD__ .
': Using XML file ' . $xml_file);
53 if (file_exists($xml_file)) {
77 foreach ($maps as $old => $new) {
78 if ($old !=
"new_id" && (
int) $old > 0) {
80 $new_tax_ids = $a_mapping->
getMapping(
"Services/Taxonomy",
"tax_usage_of_obj", $old);
81 if ($new_tax_ids !==
false) {
82 $tax_ids = explode(
":", $new_tax_ids);
83 foreach ($tax_ids as $tid) {
91 foreach ($advmdco as
$id => $order) {
93 $field_glo_id =
$id[0];
95 if ($field_glo_id == $old) {
97 $new_local_id = $a_mapping->
getMapping(
"Services/AdvancedMetaData",
"lfld", $field_id);
99 $field_id = $new_local_id;
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
finalProcessing(ilImportMapping $a_mapping)
Manifest parser for ILIAS standard export files.
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...
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...