You are here

function PHPExcel_Writer_Excel5_Parser::_getSheetIndex in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Parser.php \PHPExcel_Writer_Excel5_Parser::_getSheetIndex()

* Look up the index that corresponds to an external sheet name. The hash of * sheet names is updated by the addworksheet() method of the * PHPExcel_Writer_Excel5_Workbook class. * * @access private *

Parameters

string $sheet_name Sheet name: * @return integer The sheet index, -1 if the sheet was not found

2 calls to PHPExcel_Writer_Excel5_Parser::_getSheetIndex()
PHPExcel_Writer_Excel5_Parser::_getRefIndex in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Parser.php
* Look up the REF index that corresponds to an external sheet name * (or range). If it doesn't exist yet add it to the workbook's references * array. It assumes all sheet names given must exist. * * @access private *
PHPExcel_Writer_Excel5_Parser::_packExtRef in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Parser.php
* Convert the sheet name part of an external reference, for example "Sheet1" or * "Sheet1:Sheet2", to a packed structure. * * @access private *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Parser.php, line 909

Class

PHPExcel_Writer_Excel5_Parser
PHPExcel_Writer_Excel5_Parser

Code

function _getSheetIndex($sheet_name) {
  if (!isset($this->_ext_sheets[$sheet_name])) {
    return -1;
  }
  else {
    return $this->_ext_sheets[$sheet_name];
  }
}