Update listWorksheetNames() and listWorksheetInfo() to accept ChartSheet information
This commit is contained in:
parent
c66baa44ea
commit
e02f25bf48
|
|
@ -226,7 +226,10 @@ class Xlsx extends BaseReader
|
||||||
$worksheets = [];
|
$worksheets = [];
|
||||||
foreach ($relsWorkbook->Relationship as $elex) {
|
foreach ($relsWorkbook->Relationship as $elex) {
|
||||||
$ele = self::getAttributes($elex);
|
$ele = self::getAttributes($elex);
|
||||||
if ((string) $ele['Type'] === "$namespace/worksheet") {
|
if (
|
||||||
|
((string) $ele['Type'] === "$namespace/worksheet") ||
|
||||||
|
((string) $ele['Type'] === "$namespace/chartsheet")
|
||||||
|
) {
|
||||||
$worksheets[(string) $ele['Id']] = $ele['Target'];
|
$worksheets[(string) $ele['Id']] = $ele['Target'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue