@@ 88-94 (lines=7) @@ | ||
85 | ||
86 | $worksheetNames = []; |
|
87 | while ($xml->read()) { |
|
88 | if ($xml->name == 'gnm:SheetName' && $xml->nodeType == XMLReader::ELEMENT) { |
|
89 | $xml->read(); // Move onto the value node |
|
90 | $worksheetNames[] = (string) $xml->value; |
|
91 | } elseif ($xml->name == 'gnm:Sheets') { |
|
92 | // break out of the loop once we've got our sheet names rather than parse the entire file |
|
93 | break; |
|
94 | } |
|
95 | } |
|
96 | ||
97 | return $worksheetNames; |
|
@@ 134-138 (lines=5) @@ | ||
131 | $xml->read(); // Move onto the value node |
|
132 | $tmpInfo['lastColumnIndex'] = (int) $xml->value; |
|
133 | $tmpInfo['totalColumns'] = (int) $xml->value + 1; |
|
134 | } elseif ($xml->name == 'gnm:MaxRow' && $xml->nodeType == XMLReader::ELEMENT) { |
|
135 | $xml->read(); // Move onto the value node |
|
136 | $tmpInfo['totalRows'] = (int) $xml->value + 1; |
|
137 | ||
138 | break; |
|
139 | } |
|
140 | } |
|
141 | $tmpInfo['lastColumnLetter'] = Cell::stringFromColumnIndex($tmpInfo['lastColumnIndex']); |