19        $this->ds->setDSPrefix(
"ds");
 
   20        $this->config = $this->
getImport()->getConfig(
"Modules/Glossary");
 
   31        if ($a_entity == 
"glo") {
 
   33            if ($new_id = $a_mapping->getMapping(
'Services/Container', 
'objs', $a_id)) {
 
   40            $GLOBALS[
'ilLog']->write(__METHOD__ . 
': Using XML file ' . $xml_file);
 
   43            if (file_exists($xml_file)) {
 
   44                if (!is_object($newObj)) {
 
   47                    $newObj->setType(
"glo");
 
   49                    $newObj->create(
true);
 
   58                $contParser->startParsing();
 
   63                $term_map = $contParser->getGlossaryTermMap();
 
   64                foreach ($term_map as $k => $v) {
 
   65                    $a_mapping->addMapping(
 
   73                    $a_mapping->addMapping(
 
   80                    $a_mapping->addMapping(
 
   81                        "Services/AdvancedMetaData",
 
   88                $a_mapping->addMapping(
"Modules/Glossary", 
"glo", $a_id, $newObj->getId());
 
   89                $a_mapping->addMapping(
"Services/AdvancedMetaData", 
"parent", $a_id, $newObj->getId());
 
   91                $this->current_glo = $newObj;
 
  118        $maps = $a_mapping->getMappingsOfEntity(
"Modules/Glossary", 
"glo");
 
  119        foreach ($maps as $old => $new) {
 
  120            if ($old != 
"new_id" && (
int) $old > 0) {
 
  122                $new_tax_ids = $a_mapping->getMapping(
"Services/Taxonomy", 
"tax_usage_of_obj", $old);
 
  123                if ($new_tax_ids !== 
false) {
 
  124                    $tax_ids = explode(
":", $new_tax_ids);
 
  125                    foreach ($tax_ids as $tid) {
 
  132                    $advmdco = $a_mapping->getMappingsOfEntity(
"Modules/Glossary", 
"advmd_col_order");
 
  133                    foreach ($advmdco as $id => $order) {
 
  134                        $id = explode(
":", $id);
 
  135                        $field_glo_id = $id[0];
 
  137                        if ($field_glo_id == $old) {
 
  139                            $new_local_id = $a_mapping->getMapping(
"Services/AdvancedMetaData", 
"lfld", $field_id);
 
  141                                $field_id = $new_local_id;
 
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
An exception for terminatinating execution or to throw for unit testing.
Manifest parser for ILIAS standard export files.
Importer class for files.
finalProcessing($a_mapping)
Final processing.
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import XML.
static saveUsage($a_tax_id, $a_obj_id)
Save Usage.
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
static _writeImportId($a_obj_id, $a_import_id)
write import id to db (static)
getSchemaVersion()
Get schema version.
getImportDirectory()
Get import directory.
exportedFromSameInstallation()
Is exporting and importing installation identical?