You are here

private function PHPExcel_Reader_Excel5::_readBIFF8CellRangeAddressList in Loft Data Grids 7.2

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

* Read BIFF8 cell range address list * section 2.5.15 * *

Parameters

string $subData: * @return array

3 calls to PHPExcel_Reader_Excel5::_readBIFF8CellRangeAddressList()
PHPExcel_Reader_Excel5::_createFormulaFromTokens in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php
* Take array of tokens together with additional data for formula and return human readable formula * *
PHPExcel_Reader_Excel5::_readDataValidation in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php
* Read DATAVALIDATION record
PHPExcel_Reader_Excel5::_readMergedCells in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5.php
* MERGEDCELLS * * This record contains the addresses of merged cell ranges * in the current sheet. * * -- "OpenOffice.org's Documentation of the Microsoft * Excel File Format"

File

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

Class

PHPExcel_Reader_Excel5
PHPExcel_Reader_Excel5

Code

private function _readBIFF8CellRangeAddressList($subData) {
  $cellRangeAddresses = array();

  // offset: 0; size: 2; number of the following cell range addresses
  $nm = self::_GetInt2d($subData, 0);
  $offset = 2;

  // offset: 2; size: 8 * $nm; list of $nm (fixed) cell range addresses
  for ($i = 0; $i < $nm; ++$i) {
    $cellRangeAddresses[] = $this
      ->_readBIFF8CellRangeAddressFixed(substr($subData, $offset, 8));
    $offset += 8;
  }
  return array(
    'size' => 2 + 8 * $nm,
    'cellRangeAddresses' => $cellRangeAddresses,
  );
}