Box\Spout\Reader\XLSX\RowIterator::rewind PHP Метод

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

Initializes the XMLReader object that reads the associated sheet data. The XMLReader is configured to be safe from billion laughs attack.
public rewind ( ) : void
Результат void
    public function rewind()
    {
        $this->xmlReader->close();
        $sheetDataFilePath = 'zip://' . $this->filePath . '#' . $this->sheetDataXMLFilePath;
        if ($this->xmlReader->open($sheetDataFilePath) === false) {
            throw new IOException("Could not open \"{$this->sheetDataXMLFilePath}\".");
        }
        $this->numReadRows = 0;
        $this->lastRowIndexProcessed = 0;
        $this->nextRowIndexToBeProcessed = 0;
        $this->rowDataBuffer = null;
        $this->hasReachedEndOfFile = false;
        $this->numColumns = 0;
        $this->next();
    }