public function PHPExcel_NamedRange::__construct in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/NamedRange.php \PHPExcel_NamedRange::__construct()
Create a new NamedRange
Parameters
string $pName:
PHPExcel_Worksheet $pWorksheet:
string $pRange:
bool $pLocalOnly:
PHPExcel_Worksheet|null $pScope Scope. Only applies when $pLocalOnly = true. Null for global scope.:
Throws
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ NamedRange.php, line 83
Class
- PHPExcel_NamedRange
- PHPExcel_NamedRange
Code
public function __construct($pName = null, PHPExcel_Worksheet $pWorksheet, $pRange = 'A1', $pLocalOnly = false, $pScope = null) {
// Validate data
if ($pName === NULL || $pWorksheet === NULL || $pRange === NULL) {
throw new PHPExcel_Exception('Parameters can not be null.');
}
// Set local members
$this->_name = $pName;
$this->_worksheet = $pWorksheet;
$this->_range = $pRange;
$this->_localOnly = $pLocalOnly;
$this->_scope = $pLocalOnly == true ? $pScope == null ? $pWorksheet : $pScope : null;
}