|
@@ 570-574 (lines=5) @@
|
| 567 |
|
foreach ($this->dat['records'][$k]['rels'] as $fieldname => $vR) { |
| 568 |
|
// For all file type relations: |
| 569 |
|
if ($vR['type'] === 'file') { |
| 570 |
|
foreach ($vR['newValueFiles'] as $key => $fI) { |
| 571 |
|
$this->export_addFile($fI, $k, $fieldname); |
| 572 |
|
// Remove the absolute reference to the file so it doesn't expose absolute paths from source server: |
| 573 |
|
unset($this->dat['records'][$k]['rels'][$fieldname]['newValueFiles'][$key]['ID_absFile']); |
| 574 |
|
} |
| 575 |
|
} |
| 576 |
|
// For all flex type relations: |
| 577 |
|
if ($vR['type'] === 'flex') { |
|
@@ 580-584 (lines=5) @@
|
| 577 |
|
if ($vR['type'] === 'flex') { |
| 578 |
|
if (is_array($vR['flexFormRels']['file'])) { |
| 579 |
|
foreach ($vR['flexFormRels']['file'] as $key => $subList) { |
| 580 |
|
foreach ($subList as $subKey => $fI) { |
| 581 |
|
$this->export_addFile($fI, $k, $fieldname); |
| 582 |
|
// Remove the absolute reference to the file so it doesn't expose absolute paths from source server: |
| 583 |
|
unset($this->dat['records'][$k]['rels'][$fieldname]['flexFormRels']['file'][$key][$subKey]['ID_absFile']); |
| 584 |
|
} |
| 585 |
|
} |
| 586 |
|
} |
| 587 |
|
// DB oriented soft references in flex form fields: |