39 if(isset($this->codeIndex[$data[
'SYS_CODE']]))
42 if($data[
'TYPE_CODE'] ==
'REGION')
43 $this->regionCodeIndex[$data[
'SYS_CODE']] = $this->
formatCode($this->exportOffset);
45 $this->codeIndex[$data[
'SYS_CODE']] = $this->
formatCode($this->exportOffset);
47 $data[
'CODE'] = $this->codeIndex[$data[
'SYS_CODE']];
48 $data[
'PARENT_CODE'] = strlen($data[
'PARENT_SYS_CODE']) ? $this->codeIndex[$data[
'PARENT_SYS_CODE']] :
'';
50 unset($data[
'PARENT_SYS_CODE']);
52 if(is_array($data[
'LANGNAMES']))
53 $data[
'LANGNAMES'] = serialize($data[
'LANGNAMES']);
55 if(is_array($data[
'EXTERNALS']))
56 $data[
'EXTERNALS'] = serialize($data[
'EXTERNALS']);
58 $this->exportOffset++;
60 $this->inserter->insert($data);