You are here

private function PHPExcel_Reader_Excel5::_getSplicedRecordData in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php \PHPExcel_Reader_Excel5::_getSplicedRecordData()

* Reads a record from current position in data stream and continues reading data as long as CONTINUE * records are found. Splices the record data pieces and returns the combined string as if record data * is in one piece. * Moves to next current position in data stream to start of next record different from a CONtINUE record * *

Return value

array

6 calls to PHPExcel_Reader_Excel5::_getSplicedRecordData()
PHPExcel_Reader_Excel5::_readContinue in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php
* Read a free CONTINUE record. Free CONTINUE record may be a camouflaged MSODRAWING record * When MSODRAWING data on a sheet exceeds 8224 bytes, CONTINUE records are used instead. Undocumented. * In this case, we must treat the CONTINUE record as…
PHPExcel_Reader_Excel5::_readImData in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php
* Read IMDATA record
PHPExcel_Reader_Excel5::_readMsoDrawing in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php
* Read MSODRAWING record
PHPExcel_Reader_Excel5::_readMsoDrawingGroup in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php
* Read MSODRAWINGGROUP record
PHPExcel_Reader_Excel5::_readSst in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php
* SST - Shared String Table * * This record contains a list of all strings used anywhere * in the workbook. Each string occurs only once. The * workbook uses indexes into the list to reference the * strings. * *…

... See full list

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php, line 5175

Class

PHPExcel_Reader_Excel5
PHPExcel_Reader_Excel5

Code

private function _getSplicedRecordData() {
  $data = '';
  $spliceOffsets = array();
  $i = 0;
  $spliceOffsets[0] = 0;
  do {
    ++$i;

    // offset: 0; size: 2; identifier
    $identifier = self::_GetInt2d($this->_data, $this->_pos);

    // offset: 2; size: 2; length
    $length = self::_GetInt2d($this->_data, $this->_pos + 2);
    $data .= $this
      ->_readRecordData($this->_data, $this->_pos + 4, $length);
    $spliceOffsets[$i] = $spliceOffsets[$i - 1] + $length;
    $this->_pos += 4 + $length;
    $nextIdentifier = self::_GetInt2d($this->_data, $this->_pos);
  } while ($nextIdentifier == self::XLS_Type_CONTINUE);
  $splicedData = array(
    'recordData' => $data,
    'spliceOffsets' => $spliceOffsets,
  );
  return $splicedData;
}