public function PHPExcel::getSheetByCodeName in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel.php \PHPExcel::getSheetByCodeName()
* Get sheet by code name. Warning : sheet don't have always a code name ! * *
Parameters
string $pName Sheet name: * @return PHPExcel_Worksheet
1 call to PHPExcel::getSheetByCodeName()
- PHPExcel::sheetCodeNameExists in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel.php - Check if a sheet with a specified code name already exists
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel.php, line 342
Class
- PHPExcel
- PHPExcel
Code
public function getSheetByCodeName($pName = '') {
$worksheetCount = count($this->_workSheetCollection);
for ($i = 0; $i < $worksheetCount; ++$i) {
if ($this->_workSheetCollection[$i]
->getCodeName() == $pName) {
return $this->_workSheetCollection[$i];
}
}
return null;
}