You are here

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

* Read EXTERNNAME record.

1 call to PHPExcel_Reader_Excel5::_readExternName()
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 2653

Class

PHPExcel_Reader_Excel5
PHPExcel_Reader_Excel5

Code

private function _readExternName() {
  $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;

  // external sheet references provided for named cells
  if ($this->_version == self::XLS_BIFF8) {

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

    // offset: 2; size: 2;
    // offset: 4; size: 2; not used
    // offset: 6; size: var
    $nameString = self::_readUnicodeStringShort(substr($recordData, 6));

    // offset: var; size: var; formula data
    $offset = 6 + $nameString['size'];
    $formula = $this
      ->_getFormulaFromStructure(substr($recordData, $offset));
    $this->_externalNames[] = array(
      'name' => $nameString['value'],
      'formula' => $formula,
    );
  }
}