Box\Spout\Reader\ODS\SheetIterator::rewind PHP Метод

rewind() публичный Метод

Rewind the Iterator to the first element
public rewind ( ) : void
Результат void
    public function rewind()
    {
        $this->xmlReader->close();
        if ($this->xmlReader->openFileInZip($this->filePath, self::CONTENT_XML_FILE_PATH) === false) {
            $contentXmlFilePath = $this->filePath . '#' . self::CONTENT_XML_FILE_PATH;
            throw new IOException("Could not open \"{$contentXmlFilePath}\".");
        }
        try {
            $this->hasFoundSheet = $this->xmlReader->readUntilNodeFound(self::XML_NODE_TABLE);
        } catch (XMLProcessingException $exception) {
            throw new IOException("The content.xml file is invalid and cannot be read. [{$exception->getMessage()}]");
        }
        $this->currentSheetIndex = 0;
    }