@@ 1368-1372 (lines=5) @@ | ||
1365 | // Fetch linked images |
|
1366 | $relsVML = simplexml_load_string($this->_getFromZipArchive($zip, dirname($vmlRelationship) . '/_rels/' . basename($vmlRelationship) . '.rels' )); //~ http://schemas.openxmlformats.org/package/2006/relationships"); |
|
1367 | $drawings = array(); |
|
1368 | foreach ($relsVML->Relationship as $ele) { |
|
1369 | if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image") { |
|
1370 | $drawings[(string) $ele["Id"]] = self::dir_add($vmlRelationship, $ele["Target"]); |
|
1371 | } |
|
1372 | } |
|
1373 | ||
1374 | // Fetch VML document |
|
1375 | $vmlDrawing = simplexml_load_string($this->_getFromZipArchive($zip, $vmlRelationship)); |
|
@@ 1414-1418 (lines=5) @@ | ||
1411 | if ($zip->locateName(dirname("$dir/$fileWorksheet") . "/_rels/" . basename($fileWorksheet) . ".rels")) { |
|
1412 | $relsWorksheet = simplexml_load_string($this->_getFromZipArchive($zip, dirname("$dir/$fileWorksheet") . "/_rels/" . basename($fileWorksheet) . ".rels") ); //~ http://schemas.openxmlformats.org/package/2006/relationships"); |
|
1413 | $drawings = array(); |
|
1414 | foreach ($relsWorksheet->Relationship as $ele) { |
|
1415 | if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing") { |
|
1416 | $drawings[(string) $ele["Id"]] = self::dir_add("$dir/$fileWorksheet", $ele["Target"]); |
|
1417 | } |
|
1418 | } |
|
1419 | if ($xmlSheet->drawing && !$this->_readDataOnly) { |
|
1420 | foreach ($xmlSheet->drawing as $drawing) { |
|
1421 | $fileDrawing = $drawings[(string) self::array_item($drawing->attributes("http://schemas.openxmlformats.org/officeDocument/2006/relationships"), "id")]; |