@@ 1434-1438 (lines=5) @@ | ||
1431 | \PhpOffice\PhpSpreadsheet\Settings::getLibXmlLoaderOptions() |
|
1432 | ); |
|
1433 | $drawings = []; |
|
1434 | foreach ($relsVML->Relationship as $ele) { |
|
1435 | if ($ele['Type'] == 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image') { |
|
1436 | $drawings[(string) $ele['Id']] = self::dirAdd($vmlRelationship, $ele['Target']); |
|
1437 | } |
|
1438 | } |
|
1439 | ||
1440 | // Fetch VML document |
|
1441 | $vmlDrawing = simplexml_load_string( |
|
@@ 1492-1496 (lines=5) @@ | ||
1489 | \PhpOffice\PhpSpreadsheet\Settings::getLibXmlLoaderOptions() |
|
1490 | ); |
|
1491 | $drawings = []; |
|
1492 | foreach ($relsWorksheet->Relationship as $ele) { |
|
1493 | if ($ele['Type'] == 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing') { |
|
1494 | $drawings[(string) $ele['Id']] = self::dirAdd("$dir/$fileWorksheet", $ele['Target']); |
|
1495 | } |
|
1496 | } |
|
1497 | if ($xmlSheet->drawing && !$this->readDataOnly) { |
|
1498 | foreach ($xmlSheet->drawing as $drawing) { |
|
1499 | $fileDrawing = $drawings[(string) self::getArrayItem($drawing->attributes('http://schemas.openxmlformats.org/officeDocument/2006/relationships'), 'id')]; |