public function PHPExcel::addNamedRange in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel.php \PHPExcel::addNamedRange()
Add named range
Parameters
PHPExcel_NamedRange $namedRange:
Return value
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel.php, line 778
Class
- PHPExcel
- PHPExcel
Code
public function addNamedRange(PHPExcel_NamedRange $namedRange) {
if ($namedRange
->getScope() == null) {
// global scope
$this->_namedRanges[$namedRange
->getName()] = $namedRange;
}
else {
// local scope
$this->_namedRanges[$namedRange
->getScope()
->getTitle() . '!' . $namedRange
->getName()] = $namedRange;
}
return true;
}