You are here

private function PHPExcel_Reader_Excel5::_readBlank 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::_readBlank()

* Read BLANK record

1 call to PHPExcel_Reader_Excel5::_readBlank()
PHPExcel_Reader_Excel5::load in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php
* Loads PHPExcel from file * *

File

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

Class

PHPExcel_Reader_Excel5
PHPExcel_Reader_Excel5

Code

private function _readBlank() {
  $length = self::_GetInt2d($this->_data, $this->_pos + 2);
  $recordData = $this
    ->_readRecordData($this->_data, $this->_pos + 4, $length);

  // move stream pointer to next record
  $this->_pos += 4 + $length;

  // offset: 0; size: 2; row index
  $row = self::_GetInt2d($recordData, 0);

  // offset: 2; size: 2; col index
  $col = self::_GetInt2d($recordData, 2);
  $columnString = PHPExcel_Cell::stringFromColumnIndex($col);

  // Read cell?
  if ($this
    ->getReadFilter() !== NULL && $this
    ->getReadFilter()
    ->readCell($columnString, $row + 1, $this->_phpSheet
    ->getTitle())) {

    // offset: 4; size: 2; XF index
    $xfIndex = self::_GetInt2d($recordData, 4);

    // add style information
    if (!$this->_readDataOnly) {
      $this->_phpSheet
        ->getCell($columnString . ($row + 1))
        ->setXfIndex($this->_mapCellXfIndex[$xfIndex]);
    }
  }
}