Akeneo\Component\SpreadsheetParser\Xlsx\SharedStrings::readNext PHP Method

readNext() protected method

Reads the next value in the file
protected readNext ( )
    protected function readNext()
    {
        $xml = $this->getXMLReader();
        while ($xml->read()) {
            if (\XMLReader::ELEMENT === $xml->nodeType) {
                switch ($xml->name) {
                    case 'si':
                        $this->currentIndex++;
                        break;
                    case 't':
                        $this->values[$this->currentIndex] = $xml->readString();
                        return;
                }
            }
        }
        $this->valid = false;
        $this->closeXMLReader();
    }
SharedStrings