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