121 $index = $this->pool->getItemsCount();
122 $this->pool->addItem($index, $location);
125 if($locationId = $location->
getId())
128 $this->idMap[$tmpIndex] = $index;
135 $this->externalIdMap[$tmpIndex] = $index;
138 $this->isItemChanged =
true;
149 $languageId = $location->getLanguageId();
151 if($locationId = $location->getId())
155 if(isset($this->idMap[$tmpIndex]))
157 $index = $this->idMap[$tmpIndex];
158 unset($this->idMap[$tmpIndex]);
162 if($externalId = $location->getExternalId())
164 $sourceCode = $location->getSourceCode();
167 if(isset($this->externalIdMap[$tmpIndex]))
171 $index = $this->externalIdMap[$tmpIndex];
174 unset($this->externalIdMap[$tmpIndex]);
180 $this->pool->deleteItem($index);
183 $this->isItemChanged =
true;