@@ 1445-1449 (lines=5) @@ | ||
1442 | \PhpOffice\PhpSpreadsheet\Settings::getLibXmlLoaderOptions() |
|
1443 | ); |
|
1444 | $drawings = []; |
|
1445 | foreach ($relsVML->Relationship as $ele) { |
|
1446 | if ($ele['Type'] == 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image') { |
|
1447 | $drawings[(string) $ele['Id']] = self::dirAdd($vmlRelationship, $ele['Target']); |
|
1448 | } |
|
1449 | } |
|
1450 | ||
1451 | // Fetch VML document |
|
1452 | $vmlDrawing = simplexml_load_string( |
|
@@ 1503-1507 (lines=5) @@ | ||
1500 | \PhpOffice\PhpSpreadsheet\Settings::getLibXmlLoaderOptions() |
|
1501 | ); |
|
1502 | $drawings = []; |
|
1503 | foreach ($relsWorksheet->Relationship as $ele) { |
|
1504 | if ($ele['Type'] == 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing') { |
|
1505 | $drawings[(string) $ele['Id']] = self::dirAdd("$dir/$fileWorksheet", $ele['Target']); |
|
1506 | } |
|
1507 | } |
|
1508 | if ($xmlSheet->drawing && !$this->readDataOnly) { |
|
1509 | foreach ($xmlSheet->drawing as $drawing) { |
|
1510 | $fileDrawing = $drawings[(string) self::getArrayItem($drawing->attributes('http://schemas.openxmlformats.org/officeDocument/2006/relationships'), 'id')]; |