Example #1
0
        $this->_sheets[] = array('name' => $rec_name, 'offset' => $rec_offset, 'sheetState' => $sheetState, 'sheetType' => $sheetType);
    }
    /**
	 * Read EXTERNALBOOK record
	 */
    private function _readExternalBook()
    {
        $length = self::_GetInt2d($this->_data, $this->_pos + 2);
        $recordData = substr($this->_data, $this->_pos + 4, $length);
        // move stream pointer to next record
        $this->_pos += 4 + $length;
        // offset within record data
        $offset = 0;
        // there are 4 types of records
        if (strlen($recordData) > 4) {
            // external reference
            // offset: 0; size: 2; number of sheet names ($nm)
            $nm = self::_GetInt2d($recordData, 0);
            $offset += 2;
            // offset: 2; size: var; encoded URL without sheet name (Unicode string, 16-bit length)