28 $this->mappings =
array();
30 $this->log->debug(
"ilImportMapping Construct this->mappings = array()");
40 $this->install_id = $a_val;
60 $this->install_url = $a_val;
80 $this->target_id = $a_target_id;
81 $this->log->debug(
"a_target_id=".$a_target_id);
101 function addMapping($a_comp, $a_entity, $a_old_id, $a_new_id)
103 $this->mappings[$a_comp][$a_entity][$a_old_id] = $a_new_id;
104 $this->log->debug(
"ADD MAPPING this->mappings = ", $this->mappings);
118 $this->log->debug(
"a_comp = $a_comp, a_entity = $a_entity , a_old_id = $a_old_id");
120 if(!isset ($this->mappings[$a_comp])
or !isset ($this->mappings[$a_comp][$a_entity]))
124 if (isset($this->mappings[$a_comp][$a_entity][$a_old_id]))
126 return $this->mappings[$a_comp][$a_entity][$a_old_id];
151 if (isset($this->mappings[$a_comp][$a_entity]))
153 return $this->mappings[$a_comp][$a_entity];
getMapping($a_comp, $a_entity, $a_old_id)
Get a mapping.
getAllMappings()
Get mapping.
setInstallUrl($a_val)
Set Installation Url.
setInstallId($a_val)
Set Installation ID.
getInstallUrl()
Get Installation Url.
setTargetId($a_target_id)
set target id
__construct()
Constructor.
addMapping($a_comp, $a_entity, $a_old_id, $a_new_id)
Add mapping.
getTargetId()
get target id
Create styles array
The data for the language used.
getInstallId()
Get Installation ID.
getMappingsOfEntity($a_comp, $a_entity)
Get mappings for entity.
static getLogger($a_component_id)
Get component logger.